From da83e3f2f69416de66fe92389e16996bc5a7e194 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 13 Dec 2020 14:49:34 +0100
Subject: [PATCH 01/78] coverity CID 215803 Dereference after null check

---
 src/study.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/study.c b/src/study.c
index e41d9185d..e529c2c31 100644
--- a/src/study.c
+++ b/src/study.c
@@ -658,7 +658,7 @@ int study_cmd(unit * u, order * ord)
         ADDMSG(&u->faction->msgs, msg_message("studycost",
             "unit region cost skill", u, u->region, money, sk));
     }
-    if (a != NULL) {
+    if (teach != NULL) {
         if (teach->teachers) {
             msg_teachers(teach->teachers, u, sk);
         }

From e97f80ad3cdfbb8e6fc17a7d91955cb39de88acc Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 17 Dec 2020 18:55:00 +0100
Subject: [PATCH 02/78] eliminate some high-level warnings

---
 src/move.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/move.c b/src/move.c
index 4cf3b7301..a847e293d 100644
--- a/src/move.c
+++ b/src/move.c
@@ -508,7 +508,7 @@ static double overload(const region * r, ship * sh)
         double ovl;
 
         getshipweight(sh, &n, &p);
-        ovl = n / (double)(sh->type->cargo * sh->number);
+        ovl = n / (double)sh->type->cargo * sh->number;
         if (mcabins) {
             ovl = fmax(ovl, p / (double)mcabins);
         }
@@ -939,7 +939,7 @@ static unit *bewegung_blockiert_von(unit * reisender, region * r)
             if ((u->faction == reisender->faction) || (ucontact(u, reisender)) || (alliedunit(u, reisender->faction, HELP_GUARD)))
                 guard_count = guard_count - u->number;
             else if (sk >= stealth) {
-                double prob_u = (sk - stealth) * skill_prob;
+                double prob_u = skill_prob * ((double)sk - stealth);
                 guard_count += u->number;
                 /* amulet counts at most once */
                 prob_u += fmin(1, fmin(u->number, i_get(u->items, ramulet->itype))) * amulet_prob;
@@ -1452,7 +1452,7 @@ static void var_create_regions(arg_regions *dst, const region_list * begin, int
 {
     const region_list *rsrc;
     int i;
-
+    assert(size > 0);
     dst->nregions = size;
     dst->regions = (region **) malloc(sizeof(region *) * (size_t)size);
     assert_alloc(dst->regions);
@@ -1642,7 +1642,9 @@ static const region_list *travel_route(unit * u,
 
 static bool ship_ready(const region * r, unit * u, order * ord)
 {
-    unit *cap = u->ship ? ship_owner(u->ship) : NULL;
+    unit* cap;
+    assert(u && u->ship);
+    cap = u->ship ? ship_owner(u->ship) : NULL;
     if (u != cap) {
         cmistake(u, ord, 146, MSG_MOVE);
         return false;

From 0bbadf2a66b745d81d03f6f732f1d6c349503390 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 17 Dec 2020 19:13:11 +0100
Subject: [PATCH 03/78] https://bugs.eressea.de/view.php?id=2718 Better error
 messages for drifting ship.

---
 res/translations/messages.de.po |  6 +++++
 res/translations/messages.en.po |  6 +++++
 src/move.c                      | 28 +++++++++++++++--------
 src/move.test.c                 | 40 +++++++++++++++++++++++++++++----
 4 files changed, 67 insertions(+), 13 deletions(-)

diff --git a/res/translations/messages.de.po b/res/translations/messages.de.po
index 0ac3c477a..537454fef 100644
--- a/res/translations/messages.de.po
+++ b/res/translations/messages.de.po
@@ -1161,6 +1161,12 @@ msgid "spyreport_faction"
 msgstr "\"$unit($target) gehört der Partei $faction($faction) an.\""
 
 msgid "ship_drift"
+msgstr "\"Die $ship($ship) treibt nach $direction($dir).\""
+
+msgid "ship_drift_overload"
+msgstr "\"Die $ship($ship) ist überladen und treibt nach $direction($dir).\""
+
+msgid "ship_drift_nocrew"
 msgstr "\"Die $ship($ship) hat zu wenig Segler und treibt nach $direction($dir).\""
 
 msgid "error_max_magicians"
diff --git a/res/translations/messages.en.po b/res/translations/messages.en.po
index 61f5a6010..8da97fba2 100644
--- a/res/translations/messages.en.po
+++ b/res/translations/messages.en.po
@@ -1161,6 +1161,12 @@ msgid "spyreport_faction"
 msgstr "\"$unit($target) belongs to $faction($faction).\""
 
 msgid "ship_drift"
+msgstr "\"The ship $ship($ship) drifts to the $direction($dir).\""
+
+msgid "ship_drift_overload"
+msgstr "\"The ship $ship($ship) is too heavily loaded and drifts to the $direction($dir).\""
+
+msgid "ship_drift_nocrew"
 msgstr "\"The ship $ship($ship) needs more sailors and drifts to the $direction($dir).\""
 
 msgid "error_max_magicians"
diff --git a/src/move.c b/src/move.c
index a847e293d..9480e3463 100644
--- a/src/move.c
+++ b/src/move.c
@@ -813,12 +813,13 @@ static void drifting_ships(region * r)
     if (fval(r->terrain, SEA_REGION)) {
         ship **shp = &r->ships;
         while (*shp) {
-            ship *sh = *shp;
-            region *rnext = NULL;
-            region_list *route = NULL;
-            unit *firstu = r->units, *lastu = NULL;
+            ship* sh = *shp;
+            region* rnext = NULL;
+            region_list* route = NULL;
+            unit* firstu = r->units, * lastu = NULL;
             direction_t dir = NODIRECTION;
             double ovl;
+            const char* reason = "ship_drift";
 
             if (sh->type->fishing > 0) {
                 sh->flags |= SF_FISHING;
@@ -833,11 +834,21 @@ static void drifting_ships(region * r)
             /* Kapitaen da? Beschaedigt? Genuegend Matrosen?
              * Genuegend leicht? Dann ist alles OK. */
 
-            if (ship_finished(sh) && ship_crewed(sh, ship_owner(sh)) && cansail(r, sh)) {
-                shp = &sh->next;
-                continue;
+            if (ship_finished(sh)) {
+                if (!ship_crewed(sh, ship_owner(sh))) {
+                    reason = "ship_drift_nocrew";
+                }
+                else if (!cansail(r, sh)) {
+                    reason = "ship_drift_overload";
+                }
+                else {
+                    /* no problems, don't drift */
+                    shp = &sh->next;
+                    continue;
+                }
             }
 
+            fset(sh, SF_DRIFTED);
             ovl = overload(r, sh);
             if (ovl < overload_start()) {
                 /* Auswahl einer Richtung: Zuerst auf Land, dann
@@ -849,11 +860,10 @@ static void drifting_ships(region * r)
             }
 
             if (rnext && firstu) {
-                message *msg = msg_message("ship_drift", "ship dir", sh, dir);
+                message *msg = msg_message(reason, "ship dir", sh, dir);
                 msg_to_passengers(sh, &firstu, &lastu, msg);
             }
 
-            fset(sh, SF_DRIFTED);
             if (ovl >= overload_start()) {
                 damage_ship(sh, damage_overload(ovl));
                 msg_to_passengers(sh, &firstu, &lastu, msg_message("massive_overload", "ship", sh));
diff --git a/src/move.test.c b/src/move.test.c
index cc0cafc1f..8309a8154 100644
--- a/src/move.test.c
+++ b/src/move.test.c
@@ -293,6 +293,10 @@ void setup_drift (struct drift_fixture *fix) {
 
     mt_create_va(mt_new("ship_drift", NULL),
         "ship:ship", "dir:int", MT_NEW_END);
+    mt_create_va(mt_new("ship_drift_nocrew", NULL),
+        "ship:ship", "dir:int", MT_NEW_END);
+    mt_create_va(mt_new("ship_drift_overload", NULL),
+        "ship:ship", "dir:int", MT_NEW_END);
     mt_create_va(mt_new("shipsink", NULL),
         "ship:ship", MT_NEW_END);
     mt_create_va(mt_new("massive_overload", NULL),
@@ -323,8 +327,24 @@ static void test_ship_empty(CuTest *tc) {
 
     movement();
     CuAssertPtrEquals(tc, fix.sh->region, findregion(0, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
     CuAssertIntEquals(tc, 2, ship_damage_percent(fix.sh));
-    CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "ship_drift"));
+
+    test_teardown();
+}
+
+static void test_ship_no_crew(CuTest *tc) {
+    struct drift_fixture fix;
+
+    test_setup();
+    setup_drift(&fix);
+    set_level(fix.u, SK_SAILING, 0);
+
+    movement();
+    CuAssertPtrEquals(tc, fix.sh->region, findregion(0, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
+    CuAssertIntEquals(tc, 2, ship_damage_percent(fix.sh));
+    CuAssertPtrNotNull(tc, test_find_messagetype(fix.f->msgs, "ship_drift_nocrew"));
 
     test_teardown();
 }
@@ -340,6 +360,7 @@ static void test_no_drift_damage(CuTest *tc) {
     config_set("rules.ship.damage_drift", "0.0");
     movement();
     CuAssertPtrEquals(tc, fix.sh->region, findregion(0, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
     CuAssertIntEquals(tc, 0, ship_damage_percent(fix.sh));
     CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "ship_drift"));
 
@@ -355,8 +376,9 @@ static void test_ship_normal_overload(CuTest *tc) {
     fix.u->number = 21;
     movement();
     CuAssertPtrEquals(tc, fix.u->region, findregion(0, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
     CuAssertIntEquals(tc, 2, ship_damage_percent(fix.sh));
-    CuAssertPtrNotNull(tc, test_find_messagetype(fix.f->msgs, "ship_drift"));
+    CuAssertPtrNotNull(tc, test_find_messagetype(fix.f->msgs, "ship_drift_overload"));
 
     test_teardown();
 }
@@ -370,13 +392,16 @@ static void test_ship_big_overload(CuTest *tc) {
     fix.u->number = 22;
     movement();
     CuAssertPtrEquals(tc, fix.u->region, findregion(-1, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
     CuAssertIntEquals(tc, 5, ship_damage_percent(fix.sh));
+    CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "ship_drift_overload"));
+    CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "ship_drift"));
     CuAssertPtrNotNull(tc, test_find_messagetype(fix.f->msgs, "massive_overload"));
 
     test_teardown();
 }
 
-static void test_ship_no_real_overload(CuTest *tc) {
+static void test_ship_small_overload(CuTest *tc) {
     struct drift_fixture fix;
 
     test_setup();
@@ -386,7 +411,9 @@ static void test_ship_no_real_overload(CuTest *tc) {
     damage_ship(fix.sh, .80);
     movement();
     CuAssertPtrEquals(tc, fix.u->region, findregion(0, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
     CuAssertIntEquals(tc, 82, ship_damage_percent(fix.sh));
+    CuAssertPtrNotNull(tc, test_find_messagetype(fix.f->msgs, "ship_drift_overload"));
     CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "massive_overload"));
 
     test_teardown();
@@ -400,7 +427,11 @@ static void test_ship_ridiculous_overload(CuTest *tc) {
 
     fix.u->number = 500;
     movement();
+    CuAssertPtrEquals(tc, fix.u->region, findregion(-1, 0));
+    CuAssertIntEquals(tc, SF_DRIFTED, fix.sh->flags & SF_DRIFTED);
     CuAssertIntEquals(tc, 37, ship_damage_percent(fix.sh));
+    CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "ship_drift_overload"));
+    CuAssertPtrEquals(tc, NULL, test_find_messagetype(fix.f->msgs, "ship_drift"));
     CuAssertPtrNotNull(tc, test_find_messagetype(fix.f->msgs, "massive_overload"));
 
     test_teardown();
@@ -755,9 +786,10 @@ CuSuite *get_move_suite(void)
     SUITE_ADD_TEST(suite, test_age_trails);
     SUITE_ADD_TEST(suite, test_ship_no_overload);
     SUITE_ADD_TEST(suite, test_ship_empty);
+    SUITE_ADD_TEST(suite, test_ship_no_crew);
     SUITE_ADD_TEST(suite, test_no_drift_damage);
     SUITE_ADD_TEST(suite, test_ship_normal_overload);
-    SUITE_ADD_TEST(suite, test_ship_no_real_overload);
+    SUITE_ADD_TEST(suite, test_ship_small_overload);
     SUITE_ADD_TEST(suite, test_ship_big_overload);
     SUITE_ADD_TEST(suite, test_ship_ridiculous_overload);
     SUITE_ADD_TEST(suite, test_ship_ridiculous_overload_bad);

From f4acff67e4fa82133d01a5089e97c8ab3e9ce954 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 2 Jan 2021 20:15:19 +0100
Subject: [PATCH 04/78] https://bugs.eressea.de/view.php?id=2720

report study costs to the correct unit
---
 src/automate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/automate.c b/src/automate.c
index 24657f893..e3f5b656a 100644
--- a/src/automate.c
+++ b/src/automate.c
@@ -216,7 +216,7 @@ void do_autostudy(region *r)
                     if (money > 0) {
                         use_pooled(u, get_resourcetype(R_SILVER), GET_DEFAULT, money);
                         ADDMSG(&u->faction->msgs, msg_message("studycost",
-                            "unit region cost skill", u, u->region, money, skill));
+                            "unit region cost skill", scholars[i].u, r, money, skill));
                     }
                 }
             }

From fb294d91185f6e61ce7fe8f8992c46a50b5da879 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 2 Jan 2021 20:16:20 +0100
Subject: [PATCH 05/78] add a debug option, -D

usually do not need to save the game when debugging
---
 src/kernel/save.c | 5 ++++-
 src/kernel/save.h | 2 +-
 src/main.c        | 4 ++++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/kernel/save.c b/src/kernel/save.c
index c1bf3eaa3..e99ad2612 100644
--- a/src/kernel/save.c
+++ b/src/kernel/save.c
@@ -81,7 +81,7 @@
 #define MAXPERSISTENT 128
 
 /* exported symbols symbols */
-int firstx = 0, firsty = 0;
+int g_writegame = 1;
 
 static void read_alliances(gamedata *data)
 {
@@ -1719,6 +1719,9 @@ int writegame(const char *filename)
     stream strm;
     FILE *F;
 
+    if (g_writegame == 0) {
+        return -1;
+    }
     create_directories();
     path_join(datapath(), filename, path, sizeof(path));
     /* make sure we don't overwrite an existing file (hard links) */
diff --git a/src/kernel/save.h b/src/kernel/save.h
index 8c000e911..267430a40 100644
--- a/src/kernel/save.h
+++ b/src/kernel/save.h
@@ -23,7 +23,7 @@ extern "C" {
      * dass hier ein Fehler (fehlende ") vorliegt */
 
     /* TODO: is this *really* still in use? */
-    extern int enc_gamedata;
+    extern int g_writegame;
 
     int readgame(const char *filename);
     int writegame(const char *filename);
diff --git a/src/main.c b/src/main.c
index 9cf76f262..b937c80fa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,6 +6,7 @@
 #include <kernel/config.h>
 #include <kernel/messages.h>
 #include <kernel/version.h>
+#include <kernel/save.h>
 
 #include <util/language.h>
 #include <util/log.h>
@@ -196,6 +197,9 @@ static int parse_args(int argc, char **argv)
         else {
             const char *arg;
             switch (argi[1]) {
+            case 'D':
+                g_writegame = 0;
+                break;
             case 'c':
                 i = get_arg(argc, argv, 2, i, &arg, 0);
                 config_set("config.path", arg);

From af2dadfc8e5382ef339c4aff1e4d57270f417782 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 7 Jan 2021 20:59:25 +0100
Subject: [PATCH 06/78] https://bugs.eressea.de/view.php?id=2719

fix shapeshifted units without a timer
do not transfer shapeshift spell when giving to a new unit.
---
 src/give.c            | 11 ++++++++---
 src/kernel/gamedata.h |  3 ++-
 src/kernel/save.c     | 46 ++++++++++++++++++++++++++++++++++---------
 src/spy.c             |  2 +-
 4 files changed, 48 insertions(+), 14 deletions(-)

diff --git a/src/give.c b/src/give.c
index df1d64640..6e3e53a9f 100644
--- a/src/give.c
+++ b/src/give.c
@@ -530,9 +530,14 @@ message * give_men(int n, unit * u, unit * u2, struct order *ord)
         }
 
         if (u2->number == 0) {
-            set_racename(&u2->attribs, get_racename(u->attribs));
-            u_setrace(u2, u_race(u));
-            u2->irace = u->irace;
+            const race* rc = u_race(u);
+            if (rc->flags & RCF_SHAPESHIFT) {
+                set_racename(&u2->attribs, get_racename(u->attribs));
+            }
+            u_setrace(u2, rc);
+            if (rc == get_race(RC_DAEMON)) {
+                u2->irace = u->irace;
+            }
             if (fval(u, UFL_HERO)) {
                 fset(u2, UFL_HERO);
             }
diff --git a/src/kernel/gamedata.h b/src/kernel/gamedata.h
index 4e553fa43..f2b9238c1 100644
--- a/src/kernel/gamedata.h
+++ b/src/kernel/gamedata.h
@@ -48,8 +48,9 @@
 #define SHIP_NUMBER_VERSION 370 /* ships have a number */
 #define FIX_SHAPESHIFT_VERSION 371 /* shapeshifting demons */
 #define FIX_SEAROADS_VERSION 372 /* removing roads in ocean regions */
+#define FIX_SHAPESHIFT_SPELL_VERSION 373 /* shapeshift spell, bug 2719 */
 
-#define RELEASE_VERSION FIX_SEAROADS_VERSION /* current datafile */
+#define RELEASE_VERSION FIX_SHAPESHIFT_SPELL_VERSION /* current datafile */
 #define MIN_VERSION UIDHASH_VERSION      /* minimal datafile we support */
 #define MAX_VERSION RELEASE_VERSION /* change this if we can need to read the future datafile, and we can do so */
 
diff --git a/src/kernel/save.c b/src/kernel/save.c
index e99ad2612..6a55aeb36 100644
--- a/src/kernel/save.c
+++ b/src/kernel/save.c
@@ -35,6 +35,7 @@
 #include <attributes/attributes.h>
 #include <attributes/key.h>
 #include <attributes/racename.h>
+#include <triggers/changerace.h>
 #include <triggers/timeout.h>
 #include <triggers/shock.h>
 
@@ -444,10 +445,12 @@ unit *read_unit(gamedata *data)
     u_setrace(u, rc);
 
     READ_TOK(data->store, rname, sizeof(rname));
-    if (rname[0])
+    if (rname[0]) {
         u->irace = rc_find(rname);
-    else
+    }
+    else {
         u->irace = NULL;
+    }
 
     READ_INT(data->store, &bn);
     READ_INT(data->store, &sn);
@@ -524,14 +527,39 @@ unit *read_unit(gamedata *data)
         u->hp = u->number;
     }
     read_attribs(data, &u->attribs, u);
-    if (rc_demon && data->version < FIX_SHAPESHIFT_VERSION) {
+    if (rc_demon) {
         if (u_race(u) == rc_demon) {
-            const char *zRace = get_racename(u->attribs);
-            if (zRace) {
-                const struct race *rc = rc_find(zRace);
-                if (rc) {
-                    set_racename(&u->attribs, NULL);
-                    u->irace = rc;
+            if (data->version < FIX_SHAPESHIFT_VERSION) {
+                const char* zRace = get_racename(u->attribs);
+                if (zRace) {
+                    const struct race* rc = rc_find(zRace);
+                    if (rc) {
+                        set_racename(&u->attribs, NULL);
+                            u->irace = rc;
+                    }
+                }
+            }
+        }
+        else {
+            if (data->version < FIX_SHAPESHIFT_SPELL_VERSION) {
+                if (u->irace) {
+                    /* Einheit ist rassengetarnt, aber hat sie einen changerace timer? */
+                    trigger** trigs = get_triggers(u->attribs, "timer");
+                    if (trigs) {
+                        trigger* t = *trigs;
+                        while (t != NULL) {
+                            if (t->type == &tt_changerace) {
+                                break;
+                            }
+                            t = t->next;
+                        }
+                        if (t == NULL) {
+                            u->irace = NULL;
+                        }
+                    }
+                    else {
+                        u->irace = NULL;
+                    }
                 }
             }
         }
diff --git a/src/spy.c b/src/spy.c
index 530607a37..063adfca7 100644
--- a/src/spy.c
+++ b/src/spy.c
@@ -218,7 +218,7 @@ static void stealth_race(unit *u, const char *s) {
         }
 
         /* Schablonen k�nnen sich als alles m�gliche tarnen */
-        if (u_race(u)->flags & RCF_SHAPESHIFT) {
+        else if (u_race(u)->flags & RCF_SHAPESHIFT) {
             u->irace = trace;
             set_racename(&u->attribs, NULL);
         }

From f09bed10b7af094d9e0201a9f174e3161232eb77 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 7 Jan 2021 21:05:23 +0100
Subject: [PATCH 07/78] =?UTF-8?q?personen=20mit=20racename=20k=C3=B6nnen?=
 =?UTF-8?q?=20eh=20nicht=20=C3=BCbergeben=20werden,=20code=20kann=20man=20?=
 =?UTF-8?q?sich=20sparen.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/give.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/give.c b/src/give.c
index 6e3e53a9f..bf9bba95e 100644
--- a/src/give.c
+++ b/src/give.c
@@ -531,9 +531,6 @@ message * give_men(int n, unit * u, unit * u2, struct order *ord)
 
         if (u2->number == 0) {
             const race* rc = u_race(u);
-            if (rc->flags & RCF_SHAPESHIFT) {
-                set_racename(&u2->attribs, get_racename(u->attribs));
-            }
             u_setrace(u2, rc);
             if (rc == get_race(RC_DAEMON)) {
                 u2->irace = u->irace;

From 8ef95e67295225eff621327e3b3bc4fc3feb1860 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 7 Jan 2021 21:53:34 +0100
Subject: [PATCH 08/78] https://bugs.eressea.de/view.php?id=2716 Bei FOLGE
 Schiff muss das Zile nicht in der gleichen Region sein!

---
 src/move.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/move.c b/src/move.c
index 9480e3463..bc2871366 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2572,6 +2572,12 @@ void follow_cmds(unit * u)
 
                 if (id > 0) {
                     u2 = findunit(id);
+                    if (!u2 || u2->region != r || !cansee(u->faction, r, u2, 0)) {
+                        ADDMSG(&u->faction->msgs, msg_message("unitnotfound_id",
+                            "unit region command id", u, r, ord, itoa36(id)));
+                        return;
+                    }
+
                 }
             }
             else if (p == P_SHIP) {
@@ -2600,13 +2606,6 @@ void follow_cmds(unit * u)
             }
             if (u2) {
                 bool moving = false;
-                if (u2->region != r || !cansee(u->faction, r, u2, 0)) {
-                    /* FIXME: u2 sollte hier keine TEMP Einheit sein. */
-                    ADDMSG(&u->faction->msgs, msg_message("unitnotfound_id",
-                        "unit region command id", u, r, ord, itoa36(u2->no)));
-                    return;
-                }
-
                 switch (getkeyword(u2->thisorder)) {
                 case K_MOVE:
                 case K_ROUTE:

From 31f589e76f58d82052d0b231ee2dd1f7842716ee Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Fri, 8 Jan 2021 19:44:20 +0100
Subject: [PATCH 09/78] https://bugs.eressea.de/view.php?id=2716 improved
 messages when following a ship.

---
 res/core/messages.xml           | 12 ++++++++++++
 res/translations/messages.de.po |  6 ++++++
 res/translations/messages.en.po |  6 ++++++
 src/move.c                      | 25 ++++++++++++++++++++++++-
 4 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/res/core/messages.xml b/res/core/messages.xml
index 754af8100..de3fad07b 100644
--- a/res/core/messages.xml
+++ b/res/core/messages.xml
@@ -2216,6 +2216,18 @@
       <arg name="unit" type="unit"/>
     </type>
   </message>
+  <message name="followdetect_ship" section="movement">
+    <type>
+      <arg name="follower" type="ship"/>
+      <arg name="ship" type="ship"/>
+    </type>
+  </message>
+  <message name="followfail_ship" section="movement">
+    <type>
+      <arg name="follower" type="ship"/>
+      <arg name="ship" type="ship"/>
+    </type>
+  </message>
   <message name="moveblocked" section="errors">
     <type>
       <arg name="unit" type="unit"/>
diff --git a/res/translations/messages.de.po b/res/translations/messages.de.po
index 537454fef..85522b480 100644
--- a/res/translations/messages.de.po
+++ b/res/translations/messages.de.po
@@ -2603,6 +2603,12 @@ msgstr "\"$unit($follower) konnte $unit($unit) nicht folgen.\""
 msgid "followdetect"
 msgstr "\"$unit($follower) ist $unit($unit) gefolgt.\""
 
+msgid "followfail_ship"
+msgstr "\"Die $ship($follower) konnte die $ship($ship) nicht einholen.\""
+
+msgid "followdetect_ship"
+msgstr "\"Die $ship($ship) wurde von $ship($follower) verfolgt.\""
+
 msgid "unitnotfound_id"
 msgstr "\"$unit($unit) in $region($region): '$order($command)' - Einheit $id wurde nicht gefunden.\""
 
diff --git a/res/translations/messages.en.po b/res/translations/messages.en.po
index 8da97fba2..f64f8a278 100644
--- a/res/translations/messages.en.po
+++ b/res/translations/messages.en.po
@@ -2597,6 +2597,12 @@ msgstr "\"$unit($mage) makes $unit($target) appear as $race($race,$unit.size($ta
 msgid "error248"
 msgstr "\"$unit($unit) in $region($region): '$order($command)' - The faction has to be 10 turns old.\""
 
+msgid "followfail_ship"
+msgstr "\"$ship($follower) could not catch up to $ship($ship).\""
+
+msgid "followdetect_ship"
+msgstr "\"$ship($follower) followed $ship($ship).\""
+
 msgid "followfail"
 msgstr "\"$unit($follower) could not follow $unit($unit).\""
 
diff --git a/src/move.c b/src/move.c
index bc2871366..5f4c42c3e 100644
--- a/src/move.c
+++ b/src/move.c
@@ -897,6 +897,29 @@ static bool present(region * r, unit * u)
     return (u && u->region == r);
 }
 
+static void caught_target_ship(region* r, unit* u)
+{
+    attrib* a = a_find(u->attribs, &at_follow);
+
+    /* Verfolgungen melden */
+    /* Misserfolgsmeldung, oder bei erfolgreichem Verfolgen unter
+     * Umstaenden eine Warnung. */
+
+    if (a) {
+        unit* target = (unit*)a->data.v;
+
+        if (target == u || !present(r, target)) {
+            ADDMSG(&u->faction->msgs, msg_message("followfail_ship",
+                "ship follower", target->ship, u->ship));
+        }
+        else if (!alliedunit(target, u->faction, HELP_ALL)
+            && cansee(target->faction, r, u, 0)) {
+            ADDMSG(&target->faction->msgs, msg_message("followdetect_ship",
+                "ship follower", target->ship, u->ship));
+        }
+    }
+}
+
 static void caught_target(region * r, unit * u)
 {
     attrib *a = a_find(u->attribs, &at_follow);
@@ -1971,7 +1994,7 @@ static void sail(unit * u, order * ord, bool drifting)
 
         /* Verfolgungen melden */
         if (fval(u, UFL_FOLLOWING)) {
-            caught_target(current_point, u);
+            caught_target_ship(current_point, u);
         }
 
         move_ship(sh, starting_point, current_point, route);

From 88e0af287ea74d741efc8a9a7badb7e68b62b941 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Fri, 8 Jan 2021 19:52:43 +0100
Subject: [PATCH 10/78] https://bugs.eressea.de/view.php?id=2713 spelling fix:
 caravanserai

---
 res/translations/messages.en.po | 2 +-
 res/translations/strings.en.po  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/res/translations/messages.en.po b/res/translations/messages.en.po
index f64f8a278..1ff6a3981 100644
--- a/res/translations/messages.en.po
+++ b/res/translations/messages.en.po
@@ -1818,7 +1818,7 @@ msgid "error243"
 msgstr "\"$unit($unit) in $region($region): '$order($command)' - You did not specify a valid race.\""
 
 msgid "error133"
-msgstr "\"$unit($unit) in $region($region): '$order($command)' - You must build a caravansary before building roads through deserts.\""
+msgstr "\"$unit($unit) in $region($region): '$order($command)' - You must build a caravanserai before building roads through deserts.\""
 
 msgid "changepasswd"
 msgstr "\"The password of this faction is '$value'.\""
diff --git a/res/translations/strings.en.po b/res/translations/strings.en.po
index f9880de6d..6d5c8bdaf 100644
--- a/res/translations/strings.en.po
+++ b/res/translations/strings.en.po
@@ -1318,7 +1318,7 @@ msgid "peasantblood"
 msgstr "peasant blood"
 
 msgid "caravan"
-msgstr "caravanserei"
+msgstr "caravanserai"
 
 msgctxt "race"
 msgid "human"

From d03face3c16b6a2706d2b043393140deb8cb54be Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 16 Jan 2021 22:11:33 +0100
Subject: [PATCH 11/78] simplicate and add more lightness

---
 src/move.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/move.c b/src/move.c
index 5f4c42c3e..0da6e17e0 100644
--- a/src/move.c
+++ b/src/move.c
@@ -892,11 +892,6 @@ static void drifting_ships(region * r)
     }
 }
 
-static bool present(region * r, unit * u)
-{
-    return (u && u->region == r);
-}
-
 static void caught_target_ship(region* r, unit* u)
 {
     attrib* a = a_find(u->attribs, &at_follow);
@@ -908,7 +903,7 @@ static void caught_target_ship(region* r, unit* u)
     if (a) {
         unit* target = (unit*)a->data.v;
 
-        if (target == u || !present(r, target)) {
+        if (target == u || r != target->region) {
             ADDMSG(&u->faction->msgs, msg_message("followfail_ship",
                 "ship follower", target->ship, u->ship));
         }
@@ -931,7 +926,7 @@ static void caught_target(region * r, unit * u)
     if (a) {
         unit *target = (unit *)a->data.v;
 
-        if (target == u || !present(r, target)) {
+        if (target == u || r != target->region) {
             ADDMSG(&u->faction->msgs, msg_message("followfail", "unit follower",
                 target, u));
         }

From cc5e062b68a7686b42c06aa394f9cf9507c1e5d4 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Tue, 9 Feb 2021 21:07:53 +0100
Subject: [PATCH 12/78] https://bugs.eressea.de/view.php?id=2724 Magieresistenz
 reparieren.

---
 res/e3a/spells.xml     |  6 +++---
 res/eressea/spells.xml | 10 +++++-----
 src/exparse.c          |  3 ++-
 src/magic.c            | 10 +++++-----
 src/magic.h            |  8 ++++----
 5 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/res/e3a/spells.xml b/res/e3a/spells.xml
index 64172390f..7373f40b1 100644
--- a/res/e3a/spells.xml
+++ b/res/e3a/spells.xml
@@ -436,7 +436,7 @@
     <resource name="dragonblood" amount="1" cost="fixed"/><!-- Drachenblut -->
   </spell>
 
-  <spell name="auratransfer" rank="1" syntax="aura" parameters="ui" ship="true">
+  <spell name="auratransfer" rank="1" syntax="aura" parameters="ui" noresist="true" ship="true">
     <!-- Auratransfer -->
     <resource name="aura" amount="1" cost="fixed"/>
   </spell>
@@ -523,12 +523,12 @@
   <spell name="ironkeeper" rank="5" far="true" variable="true">
     <resource name="aura" amount="3" cost="level"/>
   </spell>
-  <spell name="airship" rank="5" parameters="s" ship="true">
+  <spell name="airship" rank="5" parameters="s" noresist="true" ship="true">
     <resource name="aura" amount="10" cost="fixed"/>
     <resource name="h12" amount="1" cost="fixed"/>
     <resource name="h20" amount="1" cost="fixed"/>
   </spell>
-  <spell name="sound_out" rank="5" parameters="ur" los="true">
+  <spell name="sound_out" rank="5" parameters="ur" noresist="true" los="true">
     <resource name="aura" amount="4" cost="fixed"/>
     <resource name="money" amount="100" cost="fixed"/>
   </spell>
diff --git a/res/eressea/spells.xml b/res/eressea/spells.xml
index a56b147ef..2c6eeb942 100644
--- a/res/eressea/spells.xml
+++ b/res/eressea/spells.xml
@@ -93,7 +93,7 @@
   <spell name="transferauratraum" rank="1" syntax="aura" parameters="ui" ship="true">
     <resource name="aura" amount="2" cost="fixed"/>
   </spell>
-  <spell name="auratransfer" rank="1" syntax="aura" parameters="ui" ship="true">
+  <spell name="auratransfer" rank="1" syntax="aura" parameters="ui" noresist="true" ship="true">
     <resource name="aura" amount="1" cost="fixed"/>
   </spell>
   <spell name="stonegolem" rank="4" variable="true">
@@ -173,7 +173,7 @@
   <spell name="goodwinds" rank="5" parameters="s" ship="true" variable="true">
     <resource name="aura" amount="1" cost="level"/>
   </spell>
-  <spell name="airship" rank="5" parameters="s" ship="true">
+  <spell name="airship" rank="5" parameters="s" noresist="true" ship="true">
     <resource name="aura" amount="10" cost="fixed"/>
     <resource name="h12" amount="1" cost="fixed"/>
     <resource name="h20" amount="1" cost="fixed"/>
@@ -192,7 +192,7 @@
     <resource name="h7" amount="3" cost="fixed"/>
     <resource name="money" amount="50" cost="fixed"/>
   </spell>
-  <spell name="enterastral" rank="7" parameters="u+" variable="true">
+  <spell name="enterastral" rank="7" parameters="u+" noresist="true" variable="true">
     <resource name="aura" amount="2" cost="level"/>
   </spell>
   <spell name="leaveastral" rank="7" parameters="ru+" variable="true">
@@ -214,13 +214,13 @@
   <spell name="view_reality" rank="5">
     <resource name="aura" amount="40" cost="fixed"/>
   </spell>
-  <spell name="astral_disruption" rank="4" variable="true">
+  <spell name="astral_disruption" rank="4" noresist="true" variable="true">
     <resource name="aura" amount="140" cost="fixed"/>
   </spell>
   <spell name="seduction" rank="5" parameters="u" los="true">
     <resource name="aura" amount="12" cost="fixed"/>
   </spell>
-  <spell name="sound_out" rank="5" parameters="ur" los="true">
+  <spell name="sound_out" rank="5" parameters="ur" noresist="true" los="true">
     <resource name="aura" amount="4" cost="fixed"/>
     <resource name="money" amount="100" cost="fixed"/>
   </spell>
diff --git a/src/exparse.c b/src/exparse.c
index bfe8708d7..715b5f4c4 100644
--- a/src/exparse.c
+++ b/src/exparse.c
@@ -375,7 +375,8 @@ static int ncomponents;
 static void start_spells(parseinfo *pi, const XML_Char *el, const XML_Char **attr) {
     const char *flag_names[] = {
         "far", "variable", "ocean", "ship", "los", 
-        "unittarget", "shiptarget", "buildingtarget", "regiontarget", "globaltarget", NULL };
+        "unittarget", "shiptarget", "buildingtarget", "regiontarget", "globaltarget", 
+        "noresist", NULL };
 
     if (xml_strequal(el, "resource")) {
         spell_component *spc;
diff --git a/src/magic.c b/src/magic.c
index 9fe1ed6aa..7064df368 100644
--- a/src/magic.c
+++ b/src/magic.c
@@ -1664,7 +1664,7 @@ verify_targets(castorder * co, int *invalid, int *resist, int *success)
             case SPP_UNIT:
                 u = spobj->data.u;
 
-                if ((sp->sptyp & TESTRESISTANCE)
+                if (((sp->sptyp & NORESISTANCE) == 0)
                     && target_resists_magic(caster, u, TYP_UNIT, 0)) {
                     /* Fehlermeldung */
                     spobj->data.i = u->no;
@@ -1681,7 +1681,7 @@ verify_targets(castorder * co, int *invalid, int *resist, int *success)
             case SPP_BUILDING:
                 b = spobj->data.b;
 
-                if ((sp->sptyp & TESTRESISTANCE)
+                if (((sp->sptyp & NORESISTANCE) == 0)
                     && target_resists_magic(caster, b, TYP_BUILDING, 0)) {  /* Fehlermeldung */
                     spobj->data.i = b->no;
                     spobj->flag = TARGET_RESISTS;
@@ -1696,7 +1696,7 @@ verify_targets(castorder * co, int *invalid, int *resist, int *success)
             case SPP_SHIP:
                 sh = spobj->data.sh;
 
-                if ((sp->sptyp & TESTRESISTANCE)
+                if (((sp->sptyp & NORESISTANCE) == 0)
                     && target_resists_magic(caster, sh, TYP_SHIP, 0)) {     /* Fehlermeldung */
                     spobj->data.i = sh->no;
                     spobj->flag = TARGET_RESISTS;
@@ -1713,7 +1713,7 @@ verify_targets(castorder * co, int *invalid, int *resist, int *success)
                    nicht target_r ueberprueft. */
                 tr = spobj->data.r;
 
-                if ((sp->sptyp & TESTRESISTANCE)
+                if (((sp->sptyp & NORESISTANCE) == 0)
                     && target_resists_magic(caster, tr, TYP_REGION, 0)) {   /* Fehlermeldung */
                     spobj->flag = TARGET_RESISTS;
                     ++*resist;
@@ -1752,7 +1752,7 @@ verify_targets(castorder * co, int *invalid, int *resist, int *success)
             sa->param[0] = spobj;
             co->par = sa;
 
-            if ((sp->sptyp & TESTRESISTANCE)) {
+            if (((sp->sptyp & NORESISTANCE) == 0)) {
                 if (target_resists_magic(caster, target_r, TYP_REGION, 0)) {
                     /* Fehlermeldung */
                     ADDMSG(&caster->faction->msgs, msg_message("spellregionresists",
diff --git a/src/magic.h b/src/magic.h
index 1eeefabed..339b66cf3 100644
--- a/src/magic.h
+++ b/src/magic.h
@@ -134,14 +134,14 @@ extern "C" {
 #define BUILDINGSPELL   (1<<7)  /* ZAUBER .. <Gebaeude-Nr> [<Gebaeude-Nr> ..] */
 #define REGIONSPELL     (1<<8)  /* wirkt auf struct region */
 #define GLOBALTARGET    (1<<9) /* Ziel kann ausserhalb der region sein */
+#define NORESISTANCE    (1<<10) /* Zielobjekte nicht auf Magieresistenz pruefen. */
 
-#define PRECOMBATSPELL	(1<<10)  /* PRAEKAMPFZAUBER .. */
-#define COMBATSPELL     (1<<11)  /* KAMPFZAUBER .. */
-#define POSTCOMBATSPELL	(1<<12)  /* POSTKAMPFZAUBER .. */
+#define PRECOMBATSPELL	(1<<11)  /* PRAEKAMPFZAUBER .. */
+#define COMBATSPELL     (1<<12)  /* KAMPFZAUBER .. */
+#define POSTCOMBATSPELL	(1<<13)  /* POSTKAMPFZAUBER .. */
 #define ISCOMBATSPELL   (PRECOMBATSPELL|COMBATSPELL|POSTCOMBATSPELL)
 
 
-#define TESTRESISTANCE  (1<<13) /* Zielobjekte auf Magieresistenz pruefen. not used in XML? */
 #define NOTFAMILIARCAST (1<<14) /* not used by XML? */
 #define ANYTARGET       (UNITSPELL|REGIONSPELL|BUILDINGSPELL|SHIPSPELL) /* wirkt auf alle objekttypen (unit, ship, building, region) */
 

From 8fbcf3f3798c69eebbc523271d9cb067bec4d542 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 11 Feb 2021 15:03:41 +0100
Subject: [PATCH 13/78] =?UTF-8?q?Neue=20Option=20f=C3=BCr=20schnelleres=20?=
 =?UTF-8?q?Samenwachstum.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/laws.c | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/src/laws.c b/src/laws.c
index aadd4784b..3fdbc1117 100644
--- a/src/laws.c
+++ b/src/laws.c
@@ -598,15 +598,27 @@ static int cap_int(int i, int imin, int imax) {
     return imin;
 }
 
+static bool
+increased_growth(const region* r, const struct race *rc_elf) {
+    const unit* u;
+    for (u = r->units; u; u = u->next) {
+        if (u_race(u) != rc_elf) {
+            return false;
+        }
+    }
+    return true;
+}
+
 static void
-growing_trees(region * r, const season_t current_season, const season_t last_weeks_season)
+growing_trees(region * r, const season_t current_season, const season_t last_weeks_season, int rules)
 {
     int grownup_trees, i, seeds, sprout;
     attrib *a;
     double seedchance = config_get_flt("rules.treeseeds.chance", 0.01F) * RESOURCE_QUANTITY;
 
     if (current_season == SEASON_SUMMER || current_season == SEASON_AUTUMN) {
-        int mp, elves = count_race(r, get_race(RC_ELF));
+        const struct race* rc_elf = get_race(RC_ELF);
+        int mp, elves = count_race(r, rc_elf);
         direction_t d;
 
         a = a_find(r->attribs, &at_germs);
@@ -644,6 +656,12 @@ growing_trees(region * r, const season_t current_season, const season_t last_wee
                 ++seeds;
             }
             if (seeds > 0) {
+                if (rules > 2) {
+                    if (increased_growth(r, rc_elf)) {
+                        /* in empty regions, plant twice the seeds */
+                        seeds += seeds;
+                    }
+                }
                 seeds += rtrees(r, 0);
                 rsettrees(r, 0, seeds);
             }
@@ -803,7 +821,7 @@ void nmr_warnings(void)
 void demographics(void)
 {
     region *r;
-    int plant_rules = config_get_int("rules.grow.formula", 2);
+    int plant_rules = config_get_int("rules.grow.formula", 3);
     int horse_rules = config_get_int("rules.horses.growth", 1);
     int peasant_rules = config_get_int("rules.peasants.growth", 1);
     const struct building_type *bt_harbour = bt_find("harbour");
@@ -850,13 +868,13 @@ void demographics(void)
                 if (horse_rules > 0) {
                     horses(r);
                 }
-                if (plant_rules == 2) { /* E2 */
-                    growing_trees(r, current_season, last_weeks_season);
-                    growing_herbs(r, current_season, last_weeks_season);
-                }
-                else if (plant_rules==1) { /* E3 */
+                if (plant_rules==1) { /* E3 */
                     growing_trees_e3(r, current_season, last_weeks_season);
                 }
+                else { /* E2 */
+                    growing_trees(r, current_season, last_weeks_season, plant_rules);
+                    growing_herbs(r, current_season, last_weeks_season);
+                }
             }
 
             update_resources(r);

From 8d286d5e2358734a56f4da5a222e4475443c616d Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Fri, 12 Feb 2021 19:40:07 +0100
Subject: [PATCH 14/78] fix disabling of tree growth.

---
 scripts/tests/e2/e2features.lua | 2 +-
 src/laws.c                      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/tests/e2/e2features.lua b/scripts/tests/e2/e2features.lua
index 356e496e7..caf020073 100644
--- a/scripts/tests/e2/e2features.lua
+++ b/scripts/tests/e2/e2features.lua
@@ -9,6 +9,7 @@ end
 function setup()
     eressea.free_game()
     eressea.settings.set("nmr.timeout", "0")
+    eressea.settings.set("rules.grow.formula", "0")
     eressea.settings.set("rules.food.flags", "4")
     eressea.settings.set("rules.ship.storms", "0")
     eressea.settings.set("rules.encounters", "0")
@@ -88,7 +89,6 @@ function test_herbalism()
     local f = faction.create("human")
     local u = unit.create(f, r, 1)
 
-    eressea.settings.set("rules.grow.formula", 0) -- plants do not grow
     u:add_item("money", u.number * 100)
     u:set_skill("herbalism", 5)
     r:set_resource("seed", 100)
diff --git a/src/laws.c b/src/laws.c
index 3fdbc1117..7f515e4ae 100644
--- a/src/laws.c
+++ b/src/laws.c
@@ -871,7 +871,7 @@ void demographics(void)
                 if (plant_rules==1) { /* E3 */
                     growing_trees_e3(r, current_season, last_weeks_season);
                 }
-                else { /* E2 */
+                else if (plant_rules) { /* E2 */
                     growing_trees(r, current_season, last_weeks_season, plant_rules);
                     growing_herbs(r, current_season, last_weeks_season);
                 }

From b756fde006104467e15e4376b95a5c367bada156 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Fri, 12 Feb 2021 20:15:32 +0100
Subject: [PATCH 15/78] spells must deal with resisting targets, or sigsegv
 will happen

---
 src/spells.c | 157 ++++++++++++++++++++++++++++++++-------------------
 1 file changed, 100 insertions(+), 57 deletions(-)

diff --git a/src/spells.c b/src/spells.c
index aee808c3a..d5a2ed8be 100644
--- a/src/spells.c
+++ b/src/spells.c
@@ -723,15 +723,15 @@ static int sp_transferaura(castorder * co)
     struct sc_mage *scm_dst, *scm_src = get_mage(mage);
 
     assert(scm_src);
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     /* Wieviel Transferieren? */
     aura = pa->param[1]->data.i;
     u = pa->param[0]->data.u;
@@ -805,8 +805,13 @@ static int sp_goodwinds(castorder * co)
     ship *sh;
     unit *u;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+    
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     sh = pa->param[0]->data.sh;
@@ -958,8 +963,13 @@ static int sp_blessstonecircle(castorder * co)
     spellparameter *p = co->par;
     message *msg;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (p->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+    
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (p->param[0]->flag == TARGET_NOTFOUND)
+    if (p->param[0]->flag)
         return 0;
 
     b = p->param[0]->data.b;
@@ -1297,7 +1307,7 @@ static int sp_rosthauch(castorder * co)
 
         if (force <= 0)
             break;
-        if (pa->param[n]->flag & (TARGET_RESISTS | TARGET_NOTFOUND))
+        if (pa->param[n]->flag)
             continue;
 
         for (; iweapon != NULL; iweapon = iweapon->next) {
@@ -1387,8 +1397,7 @@ static int sp_kaelteschutz(castorder * co)
         if (force < 1)
             break;
 
-        if (pa->param[n]->flag == TARGET_RESISTS
-            || pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         u = pa->param[n]->data.u;
@@ -1440,15 +1449,15 @@ static int sp_sparkle(castorder * co)
     int duration = cast_level + 1;
     double effect;
 
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     u = pa->param[0]->data.u;
     effect = (float)(rng_int() % 0xffffff);
     create_curse(caster, &u->attribs, &ct_sparkle, (float)cast_level,
@@ -1785,7 +1794,7 @@ static int sp_treewalkenter(castorder * co)
         unit *u = pa->param[n]->data.u;
         spllprm *param = pa->param[n];
 
-        if (param->flag & (TARGET_RESISTS | TARGET_NOTFOUND)) {
+        if (param->flag) {
             continue;
         }
 
@@ -1913,8 +1922,7 @@ static int sp_treewalkexit(castorder * co)
 
     /* fuer jede Einheit in der Kommandozeile */
     for (n = 1; n < pa->length; n++) {
-        if (pa->param[n]->flag == TARGET_RESISTS
-            || pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         u = pa->param[n]->data.u;
@@ -2222,8 +2230,7 @@ static int sp_stormwinds(castorder * co)
         if (force <= 0)
             break;
 
-        if (pa->param[n]->flag == TARGET_RESISTS
-            || pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         sh = pa->param[n]->data.sh;
@@ -2491,8 +2498,13 @@ static int sp_fumblecurse(castorder * co)
     curse *c;
     spellparameter *pa = co->par;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;
@@ -2733,8 +2745,7 @@ static int sp_unholypower(castorder * co)
         const race *target_race;
         unit *u;
 
-        if (pa->param[i]->flag == TARGET_RESISTS
-            || pa->param[i]->flag == TARGET_NOTFOUND)
+        if (pa->param[i]->flag)
             continue;
 
         u = pa->param[i]->data.u;
@@ -3405,15 +3416,15 @@ static int sp_analysesong_unit(castorder * co)
     double force = co->force;
     spellparameter *pa = co->par;
 
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     u = pa->param[0]->data.u;
 
     magicanalyse_unit(u, mage, force);
@@ -3492,8 +3503,13 @@ static int sp_charmingsong(castorder * co)
     int resist_bonus = 0;
     int tb = 0;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;
@@ -3745,8 +3761,13 @@ static int sp_migranten(castorder * co)
     int max_force = (int) co->force;
     spellparameter *pa = co->par;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return co->level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;        /* Zieleinheit */
@@ -4030,8 +4051,13 @@ static int sp_pump(castorder * co)
     spellparameter *pa = co->par;
     int cast_level = co->level;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;        /* Zieleinheit */
@@ -4092,8 +4118,13 @@ static int sp_seduce(castorder * co)
     int cast_level = co->level;
     double force = co->force;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND) {
+    if (pa->param[0]->flag) {
         return 0;
     }
 
@@ -4183,8 +4214,13 @@ static int sp_calm_monster(castorder * co)
     double effect;
     message *msg;
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;        /* Zieleinheit */
@@ -4238,8 +4274,13 @@ static int sp_headache(castorder * co)
 
     target = pa->param[0]->data.u;        /* Zieleinheit */
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (target->number == 0 || pa->param[0]->flag == TARGET_NOTFOUND)
+    if (target->number == 0 || pa->param[0]->flag)
         return 0;
 
     /* finde das groesste Talent: */
@@ -4480,15 +4521,15 @@ int sp_illusionary_shapeshift(castorder * co)
     spellparameter *pa = co->par;
     const race *irace;
 
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     u = pa->param[0]->data.u;
 
     rc = findrace(pa->param[1]->data.xs, mage->faction->locale);
@@ -4538,15 +4579,15 @@ int sp_analysedream(castorder * co)
     int cast_level = co->level;
     spellparameter *pa = co->par;
 
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     u = pa->param[0]->data.u;
     magicanalyse_unit(u, mage, cast_level);
 
@@ -4666,15 +4707,15 @@ int sp_dreamreading(castorder * co)
     double power = co->force;
     message *msg;
 
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     u = pa->param[0]->data.u;
 
     /* Illusionen und Untote abfangen. */
@@ -4724,8 +4765,7 @@ int sp_sweetdreams(castorder * co)
         if (opfer < 1)
             break;
 
-        if (pa->param[n]->flag == TARGET_RESISTS ||
-            pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         /* Zieleinheit */
@@ -4851,8 +4891,13 @@ int sp_itemcloak(castorder * co)
     double power = co->force;
     int duration = (int)fmax(2.0, power + 1);      /* works in the report, and ageing this round would kill it if it's <=1 */
 
+    /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
+     * abbrechen aber kosten lassen */
+    if (pa->param[0]->flag == TARGET_RESISTS)
+        return cast_level;
+
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     /* Zieleinheit */
@@ -4901,8 +4946,7 @@ int sp_resist_magic_bonus(castorder * co)
         if (victims < 1)
             break;
 
-        if (pa->param[n]->flag == TARGET_RESISTS
-            || pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         u = pa->param[n]->data.u;
@@ -4975,7 +5019,7 @@ int sp_enterastral(castorder * co)
 
     /* fuer jede Einheit in der Kommandozeile */
     for (n = 0; n < pa->length; n++) {
-        if (pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
         u = pa->param[n]->data.u;
 
@@ -5318,7 +5362,7 @@ int sp_fetchastral(castorder * co)
         int w;
         message *m;
 
-        if (pa->param[n]->flag & TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         if (u->region != ro) {
@@ -5360,7 +5404,7 @@ int sp_fetchastral(castorder * co)
         }
 
         if (!ucontact(u, mage)) {
-            if (power > 12 && !(pa->param[n]->flag & TARGET_RESISTS)) {
+            if (power > 12 && !(pa->param[n]->flag == TARGET_RESISTS)) {
                 ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order,
                     "feedback_no_contact_no_resist", "target", u));
                 ADDMSG(&u->faction->msgs, msg_message("send_astral", "unit target",
@@ -5680,15 +5724,15 @@ int sp_permtransfer(castorder * co)
     const spell *sp = co->sp;
     message *msg;
 
-    /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
-        return 0;
-
     /* wenn Ziel gefunden, dieses aber Magieresistent war, Zauber
      * abbrechen aber kosten lassen */
     if (pa->param[0]->flag == TARGET_RESISTS)
         return cast_level;
 
+    /* wenn kein Ziel gefunden, Zauber abbrechen */
+    if (pa->param[0]->flag)
+        return 0;
+
     tu = pa->param[0]->data.u;
     aura = pa->param[1]->data.i;
 
@@ -6020,8 +6064,7 @@ int sp_speed2(castorder * co)
         if (maxmen < 1)
             break;
 
-        if (pa->param[n]->flag == TARGET_RESISTS
-            || pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         u = pa->param[n]->data.u;

From 33332aedb443ca9ad3c51aa7ed3c655875f0c74e Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Fri, 12 Feb 2021 21:10:41 +0100
Subject: [PATCH 16/78] stop using the tolua-5.3 repository, the 5.2 works up
 to lua 5.4

---
 s/cmake-init | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/s/cmake-init b/s/cmake-init
index 8b9c95085..167ec2fd6 100755
--- a/s/cmake-init
+++ b/s/cmake-init
@@ -78,22 +78,21 @@ fi
 
 DEST=$(dirname $ROOT)/server
 
-LUA_VERSION="5.2"
+TOLUA_VERSION="5.2"
 LUA_INCLUDE=/usr/include
 LUA_DIR=/usr
-if [ -d /usr/local/include/lua5.3 ]; then
-   LUA_VERSION="5.3"
-   LUA_INCLUDE=/usr/local/include/lua5.3
+if [ -d /usr/local/include/lua ]; then
+   TOLUA_VERSION="5.2"
+   LUA_INCLUDE=/usr/local/include/lua
 elif [ -d /usr/include/lua5.2 ]; then
-   export LUA_DIR=/usr
-   LUA_VERSION="5.2"
+   TOLUA_VERSION="5.2"
    LUA_INCLUDE=/usr/include/lua5.2
 elif [ -d /usr/include/lua5.1 ]; then
-   LUA_VERSION="5.1"
+   TOLUA_VERSION="5.1"
    LUA_INCLUDE=/usr/include/lua5.1
 elif [ -d /usr/local/include/lua5.1 ]; then
-   export LUA_DIR=/usr/local
-   LUA_VERSION="5.1"
+   LUA_DIR=/usr/local
+   TOLUA_VERSION="5.1"
    LUA_INCLUDE=/usr/local/include/lua5.1
 fi
 
@@ -116,8 +115,8 @@ if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
  echo "tolua is not installed, building from source"
  cd $ROOT
  if [ ! -d tolua/include ]; then
-  echo "fetching tolua ${LUA_VERSION} from github..."
-  git clone https://github.com/ennorehling/tolua-${LUA_VERSION}.git tolua
+  echo "fetching tolua ${TOLUA_VERSION} from github..."
+  git clone https://github.com/ennorehling/tolua-${TOLUA_VERSION}.git tolua
  fi
  echo "building tolua..."
  cd tolua

From 31a3f10e8fccab7241957396134eb561b43e9693 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Fri, 12 Feb 2021 21:15:12 +0100
Subject: [PATCH 17/78] latest versions do not complain about cmake min version

---
 cJSON   | 2 +-
 clibs   | 2 +-
 storage | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cJSON b/cJSON
index 8df81fb49..460207f9c 160000
--- a/cJSON
+++ b/cJSON
@@ -1 +1 @@
-Subproject commit 8df81fb497cc48b089a57fcdc3a9933540ebc7c9
+Subproject commit 460207f9c09d501a2e302e5313b2f67dca0d6d63
diff --git a/clibs b/clibs
index 484fbf23e..48ddc013f 160000
--- a/clibs
+++ b/clibs
@@ -1 +1 @@
-Subproject commit 484fbf23e34f6844f1c4e3f685bb6c53cadf5bfe
+Subproject commit 48ddc013ffc2e7afb33b348bb605443896e55a28
diff --git a/storage b/storage
index 0ef4b39e3..1f558529f 160000
--- a/storage
+++ b/storage
@@ -1 +1 @@
-Subproject commit 0ef4b39e39d8146d6ca323500a285c53843db988
+Subproject commit 1f558529f7393c743c346a679d050d5f4ed19f14

From 117edad7e4ea6d49c5342fd62d41317114fb71b6 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 11:53:49 +0100
Subject: [PATCH 18/78] more astral spell magic resist fixes

---
 scripts/tests/e2/astral.lua |  1 +
 src/spells.c                | 14 +++++++-------
 src/spells/flyingship.c     |  2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/scripts/tests/e2/astral.lua b/scripts/tests/e2/astral.lua
index 20e53cb73..6434b04b5 100644
--- a/scripts/tests/e2/astral.lua
+++ b/scripts/tests/e2/astral.lua
@@ -13,6 +13,7 @@ function setup()
     eressea.settings.set("NewbieImmunity", "0")
     eressea.settings.set("rules.food.flags", "4")
     eressea.settings.set("rules.peasants.growth.factor", "0")
+    eressea.settings.set("magic.resist.enable", "0")
     eressea.settings.set("magic.fumble.enable", "0")
     eressea.settings.set("magic.regeneration.enable", "0")
 end
diff --git a/src/spells.c b/src/spells.c
index d5a2ed8be..0433eefa2 100644
--- a/src/spells.c
+++ b/src/spells.c
@@ -5135,7 +5135,7 @@ int sp_pullastral(castorder * co)
     /* fuer jede Einheit in der Kommandozeile */
     for (n = 1; n < pa->length; n++) {
         spllprm *spobj = pa->param[n];
-        if (spobj->flag == TARGET_NOTFOUND)
+        if (spobj->flag)
             continue;
 
         u = spobj->data.u;
@@ -5262,7 +5262,7 @@ int sp_leaveastral(castorder * co)
 
     /* fuer jede Einheit in der Kommandozeile */
     for (n = 1; n < pa->length; n++) {
-        if (pa->param[n]->flag == TARGET_NOTFOUND)
+        if (pa->param[n]->flag)
             continue;
 
         u = pa->param[n]->data.u;
@@ -5659,7 +5659,7 @@ static int sp_eternizewall(castorder * co)
     message *msg;
 
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     b = pa->param[0]->data.b;
@@ -5782,7 +5782,7 @@ int sp_movecastle(castorder * co)
     message *msg;
 
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     b = pa->param[0]->data.b;
@@ -5867,7 +5867,7 @@ int sp_stealaura(castorder * co)
     struct sc_mage *scm;
 
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     /* Zieleinheit */
@@ -6271,7 +6271,7 @@ static int sp_babbler(castorder * co)
     message *msg;
 
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;
@@ -6317,7 +6317,7 @@ static int sp_readmind(castorder * co)
     spellparameter *pa = co->par;
 
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
 
     target = pa->param[0]->data.u;
diff --git a/src/spells/flyingship.c b/src/spells/flyingship.c
index 3bf9b61b1..7262e1189 100644
--- a/src/spells/flyingship.c
+++ b/src/spells/flyingship.c
@@ -53,7 +53,7 @@ int sp_flying_ship(castorder * co)
     pa = co->par;
 
     /* wenn kein Ziel gefunden, Zauber abbrechen */
-    if (pa->param[0]->flag == TARGET_NOTFOUND)
+    if (pa->param[0]->flag)
         return 0;
     sh = pa->param[0]->data.sh;
     if (sh->number > 1 || sh->type->construction->maxsize > 50) {

From 70ccef02aeaf7fff471d06e4ef9242422a489d05 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 11:23:36 +0100
Subject: [PATCH 19/78] use vcpkg packages on windows make cmake files smarter

---
 CMakeLists.txt                     | 16 ++------
 cmake/Modules/FindBerkeleyDB.cmake | 50 ------------------------
 cmake/Modules/FindReadline.cmake   | 47 ----------------------
 cmake/Modules/FindSQLite3.cmake    | 63 ------------------------------
 src/CMakeLists.txt                 | 18 ++++-----
 src/config.pkg.c                   |  2 +-
 src/eressea.pkg.c                  |  2 +-
 vs2019-build.bat                   |  4 +-
 8 files changed, 17 insertions(+), 185 deletions(-)
 delete mode 100644 cmake/Modules/FindBerkeleyDB.cmake
 delete mode 100644 cmake/Modules/FindReadline.cmake
 delete mode 100644 cmake/Modules/FindSQLite3.cmake

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 23796c6c0..19aa5ab52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,24 +36,14 @@ CHECK_FUNCTION_EXISTS(strlcat HAVE_STRLCAT)
 endif (HAVE_LIBBSD)
 endif (MSVC)
 
-find_package (Readline)
-
-if (ERESSEA_DB STREQUAL "db")
-find_package (BerkeleyDB REQUIRED QUIET)
-else()
-find_package (SQLite3 REQUIRED QUIET)
-endif()
+find_package (SQLite3 REQUIRED)
 
 find_package(EXPAT REQUIRED)
 find_package (ToLua REQUIRED)
 if (TOLUA_FOUND)
-if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.3")
-find_package (Lua 5.3 REQUIRED)
-elseif (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
+if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
 find_package (Lua 5.2 REQUIRED)
-elseif (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.3")
-find_package ( Lua 5.3 REQUIRED)
-else ()
+else()
 find_package (Lua51 REQUIRED)
 endif()
 endif(TOLUA_FOUND)
diff --git a/cmake/Modules/FindBerkeleyDB.cmake b/cmake/Modules/FindBerkeleyDB.cmake
deleted file mode 100644
index 88b0621fe..000000000
--- a/cmake/Modules/FindBerkeleyDB.cmake
+++ /dev/null
@@ -1,50 +0,0 @@
-# -*- cmake -*-
-
-# - Find BerkeleyDB
-# Find the BerkeleyDB includes and library
-# This module defines
-#  DB_INCLUDE_DIR, where to find db.h, etc.
-#  DB_LIBRARIES, the libraries needed to use BerkeleyDB.
-#  DB_FOUND, If false, do not try to use BerkeleyDB.
-# also defined, but not for general use are
-#  DB_LIBRARY, where to find the BerkeleyDB library.
-
-FIND_PATH(DB_INCLUDE_DIR db.h
-  /usr/local/include/db4
-  /usr/local/include
-  /usr/include/db4
-  /usr/include
-  )
-
-SET(DB_NAMES ${DB_NAMES} db)
-FIND_LIBRARY(DB_LIBRARY
-  NAMES ${DB_NAMES}
-  PATHS /usr/lib /usr/local/lib
-  )
-
-IF (DB_LIBRARY AND DB_INCLUDE_DIR)
-  SET(DB_LIBRARIES ${DB_LIBRARY})
-  SET(DB_FOUND "YES")
-ELSE (DB_LIBRARY AND DB_INCLUDE_DIR)
-  SET(DB_FOUND "NO")
-ENDIF (DB_LIBRARY AND DB_INCLUDE_DIR)
-
-
-IF (DB_FOUND)
-  IF (NOT DB_FIND_QUIETLY)
-    MESSAGE(STATUS "Found BerkeleyDB: ${DB_LIBRARIES}")
-  ENDIF (NOT DB_FIND_QUIETLY)
-ELSE (DB_FOUND)
-  IF (DB_FIND_REQUIRED)
-    MESSAGE(FATAL_ERROR "Could not find BerkeleyDB library")
-  ENDIF (DB_FIND_REQUIRED)
-ENDIF (DB_FOUND)
-
-# Deprecated declarations.
-SET (NATIVE_DB_INCLUDE_PATH ${DB_INCLUDE_DIR} )
-GET_FILENAME_COMPONENT (NATIVE_DB_LIB_PATH ${DB_LIBRARY} PATH)
-
-MARK_AS_ADVANCED(
-  DB_LIBRARY
-  DB_INCLUDE_DIR
-  )
diff --git a/cmake/Modules/FindReadline.cmake b/cmake/Modules/FindReadline.cmake
deleted file mode 100644
index bb73fee7f..000000000
--- a/cmake/Modules/FindReadline.cmake
+++ /dev/null
@@ -1,47 +0,0 @@
-# - Try to find readline include dirs and libraries 
-#
-# Usage of this module as follows:
-#
-#     find_package(Readline)
-#
-# Variables used by this module, they can change the default behaviour and need
-# to be set before calling find_package:
-#
-#  READLINE_ROOT_DIR         Set this variable to the root installation of
-#                            readline if the module has problems finding the
-#                            proper installation path.
-#
-# Variables defined by this module:
-#
-#  READLINE_FOUND            System has readline, include and lib dirs found
-#  READLINE_INCLUDE_DIR      The readline include directories. 
-#  READLINE_LIBRARY          The readline library.
-
-find_path(READLINE_ROOT_DIR
-    NAMES include/readline/readline.h
-)
-
-find_path(READLINE_INCLUDE_DIR
-    NAMES readline/readline.h
-    HINTS ${READLINE_ROOT_DIR}/include
-)
-
-find_library(READLINE_LIBRARY
-    NAMES readline
-    HINTS ${READLINE_ROOT_DIR}/lib
-)
-
-if(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND Ncurses_LIBRARY)
-  set(READLINE_FOUND TRUE)
-else(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND Ncurses_LIBRARY)
-  FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
-  include(FindPackageHandleStandardArgs)
-  FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_INCLUDE_DIR READLINE_LIBRARY )
-  MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)
-endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND Ncurses_LIBRARY)
-
-mark_as_advanced(
-    READLINE_ROOT_DIR
-    READLINE_INCLUDE_DIR
-    READLINE_LIBRARY
-)
diff --git a/cmake/Modules/FindSQLite3.cmake b/cmake/Modules/FindSQLite3.cmake
deleted file mode 100644
index 910b05cea..000000000
--- a/cmake/Modules/FindSQLite3.cmake
+++ /dev/null
@@ -1,63 +0,0 @@
-# - Try to find the SQLite3 library
-# Once done this will define
-#
-#  SQLITE3_FOUND - System has SQLite3
-#  SQLITE3_INCLUDE_DIR - The SQLite3 include directory
-#  SQLITE3_LIBRARIES - The libraries needed to use SQLite3
-#  SQLITE3_DEFINITIONS - Compiler switches required for using SQLite3
-#  SQLITE3_EXECUTABLE - The SQLite3 command line shell
-#  SQLITE3_VERSION_STRING - the version of SQLite3 found (since CMake 2.8.8)
-
-#=============================================================================
-# Copyright 2006-2009 Kitware, Inc.
-# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
-#
-# Distributed under the OSI-approved BSD License (the "License");
-# see accompanying file Copyright.txt for details.
-#
-# This software is distributed WITHOUT ANY WARRANTY; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the License for more information.
-#=============================================================================
-# (To distribute this file outside of CMake, substitute the full
-#  License text for the above reference.)
-
-# use pkg-config to get the directories and then use these values
-# in the find_path() and find_library() calls
-find_package(PkgConfig QUIET)
-PKG_CHECK_MODULES(PC_SQLITE QUIET sqlite3)
-set(SQLITE3_DEFINITIONS ${PC_SQLITE_CFLAGS_OTHER})
-
-find_path(SQLITE3_INCLUDE_DIR NAMES sqlite3.h
-   HINTS
-   ${PC_SQLITE_INCLUDEDIR}
-   ${PC_SQLITE_INCLUDE_DIRS}
-   )
-
-find_library(SQLITE3_LIBRARIES NAMES sqlite3
-   HINTS
-   ${PC_SQLITE_LIBDIR}
-   ${PC_SQLITE_LIBRARY_DIRS}
-   )
-
-find_program(SQLITE3_EXECUTABLE sqlite3)
-
-if(PC_SQLITE_VERSION)
-    set(SQLITE3_VERSION_STRING ${PC_SQLITE_VERSION})
-elseif(SQLITE3_INCLUDE_DIR AND EXISTS "${SQLITE3_INCLUDE_DIR}/sqlite3.h")
-    file(STRINGS "${SQLITE3_INCLUDE_DIR}/sqlite3.h" sqlite3_version_str
-         REGEX "^#define[\t ]+SQLITE_VERSION[\t ]+\".*\"")
-
-    string(REGEX REPLACE "^#define[\t ]+SQLITE_VERSION[\t ]+\"([^\"]*)\".*" "\\1"
-           SQLITE3_VERSION_STRING "${sqlite3_version_str}")
-    unset(sqlite3_version_str)
-endif()
-
-# handle the QUIETLY and REQUIRED arguments and set SQLITE3_FOUND to TRUE if
-# all listed variables are TRUE
-include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(SQLite3
-                                  REQUIRED_VARS SQLITE3_LIBRARIES SQLITE3_INCLUDE_DIR
-                                  VERSION_VAR SQLITE3_VERSION_STRING)
-
-mark_as_advanced(SQLITE3_INCLUDE_DIR SQLITE3_LIBRARIES SQLITE3_EXECUTABLE)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 48e665529..6744847e0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -301,32 +301,32 @@ if (HAVE_LIBBSD)
 target_link_libraries(parser bsd)
 endif (HAVE_LIBBSD)
 
-if (SQLITE3_FOUND)
-include_directories (${SQLITE3_INCLUDE_DIR})
-target_link_libraries(eressea ${SQLITE3_LIBRARIES})
-target_link_libraries(test_eressea ${SQLITE3_LIBRARIES})
+if (SQLite3_FOUND)
+target_include_directories (game PRIVATE ${SQLite3_INCLUDE_DIRS})
+target_link_libraries(eressea ${SQLite3_LIBRARIES})
+target_link_libraries(test_eressea ${SQLite3_LIBRARIES})
 add_definitions(-DUSE_SQLITE)
 elseif (DB_FOUND)
-include_directories (${DB_INCLUDE_DIR})
+#include_directories (${DB_INCLUDE_DIR})
 target_link_libraries(eressea ${DB_LIBRARIES})
 target_link_libraries(test_eressea ${DB_LIBRARIES})
 add_definitions(-DUSE_DB)
-endif(SQLITE3_FOUND)
+endif(SQLite3_FOUND)
 
 if (READLINE_FOUND)
-include_directories (${READLINE_INCLUDE_DIR})
+#include_directories (${READLINE_INCLUDE_DIR})
 target_link_libraries(eressea ${READLINE_LIBRARY})
 add_definitions(-DUSE_READLINE)
 endif (READLINE_FOUND)
 
 if (CURSES_FOUND)
-include_directories (${CURSES_INCLUDE_DIR})
+target_include_directories (eressea ${CURSES_INCLUDE_DIRS})
 target_link_libraries(eressea ${CURSES_LIBRARIES})
 add_definitions(-DUSE_CURSES)
 endif(CURSES_FOUND)
 
 if (EXPAT_FOUND)
-include_directories (${EXPAT_INCLUDE_DIRS})
+target_include_directories (game PRIVATE ${EXPAT_INCLUDE_DIRS})
 target_link_libraries(eressea ${EXPAT_LIBRARIES})
 target_link_libraries(test_eressea ${EXPAT_LIBRARIES})
 endif (EXPAT_FOUND)
diff --git a/src/config.pkg.c b/src/config.pkg.c
index cc4bb6965..38e1f8785 100644
--- a/src/config.pkg.c
+++ b/src/config.pkg.c
@@ -2,7 +2,7 @@
 ** Lua binding: config
 */
 
-#include "tolua.h"
+#include <tolua.h>
 
 #ifndef __cplusplus
 #include <stdlib.h>
diff --git a/src/eressea.pkg.c b/src/eressea.pkg.c
index 289fc323a..9318d975d 100644
--- a/src/eressea.pkg.c
+++ b/src/eressea.pkg.c
@@ -2,7 +2,7 @@
 ** Lua binding: eressea
 */
 
-#include "tolua.h"
+#include <tolua.h>
 
 #ifndef __cplusplus
 #include <stdlib.h>
diff --git a/vs2019-build.bat b/vs2019-build.bat
index 299778303..107e6634c 100644
--- a/vs2019-build.bat
+++ b/vs2019-build.bat
@@ -8,6 +8,8 @@ REM CD ..
 REM SET ERESSEA=%CD%
 REM CD %SRCDIR%
 
+SET CMAKE_MODULES="%CMAKE_ROOT%\share\cmake-3.19\Modules;%SRCDIR%\cmake\Modules"
+
 IF exist build-vs%VSVERSION% goto HAVEDIR
 mkdir build-vs%VSVERSION%
 :HAVEDIR
@@ -15,5 +17,5 @@ cd build-vs%VSVERSION%
 IF NOT EXIST CMakeCache.txt GOTO NOCACHE
 DEL CMakeCache.txt
 :NOCACHE
-"%CMAKE_ROOT%\bin\cmake.exe" -A Win32 -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%SRCDIR%/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
+"%CMAKE_ROOT%\bin\cmake.exe" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -A Win32 -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%CMAKE_MODULES%" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
 PAUSE

From ebc8c3f1d21a16c2498f8a6efc16dd706ae8b6bf Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 11:48:11 +0100
Subject: [PATCH 20/78] add FindSQLite3 for older cmake versions

---
 cmake/Modules/FindSQLite3.cmake | 69 +++++++++++++++++++++++++++++++++
 src/CMakeLists.txt              |  2 +-
 2 files changed, 70 insertions(+), 1 deletion(-)
 create mode 100644 cmake/Modules/FindSQLite3.cmake

diff --git a/cmake/Modules/FindSQLite3.cmake b/cmake/Modules/FindSQLite3.cmake
new file mode 100644
index 000000000..58dfcef87
--- /dev/null
+++ b/cmake/Modules/FindSQLite3.cmake
@@ -0,0 +1,69 @@
+# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+#[=======================================================================[.rst:
+FindSQLite3
+-----------
+
+.. versionadded:: 3.14
+
+Find the SQLite libraries, v3
+
+IMPORTED targets
+^^^^^^^^^^^^^^^^
+
+This module defines the following :prop_tgt:`IMPORTED` target:
+
+``SQLite::SQLite3``
+
+Result variables
+^^^^^^^^^^^^^^^^
+
+This module will set the following variables if found:
+
+``SQLite3_INCLUDE_DIRS``
+  where to find sqlite3.h, etc.
+``SQLite3_LIBRARIES``
+  the libraries to link against to use SQLite3.
+``SQLite3_VERSION``
+  version of the SQLite3 library found
+``SQLite3_FOUND``
+  TRUE if found
+
+#]=======================================================================]
+
+# Look for the necessary header
+find_path(SQLite3_INCLUDE_DIR NAMES sqlite3.h)
+mark_as_advanced(SQLite3_INCLUDE_DIR)
+
+# Look for the necessary library
+find_library(SQLite3_LIBRARY NAMES sqlite3 sqlite)
+mark_as_advanced(SQLite3_LIBRARY)
+
+# Extract version information from the header file
+if(SQLite3_INCLUDE_DIR)
+    file(STRINGS ${SQLite3_INCLUDE_DIR}/sqlite3.h _ver_line
+         REGEX "^#define SQLITE_VERSION  *\"[0-9]+\\.[0-9]+\\.[0-9]+\""
+         LIMIT_COUNT 1)
+    string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+"
+           SQLite3_VERSION "${_ver_line}")
+    unset(_ver_line)
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(SQLite3
+    REQUIRED_VARS SQLite3_INCLUDE_DIR SQLite3_LIBRARY
+    VERSION_VAR SQLite3_VERSION)
+
+# Create the imported target
+if(SQLite3_FOUND)
+    set(SQLite3_INCLUDE_DIRS ${SQLite3_INCLUDE_DIR})
+    set(SQLite3_LIBRARIES ${SQLite3_LIBRARY})
+    if(NOT TARGET SQLite::SQLite3)
+        add_library(SQLite::SQLite3 UNKNOWN IMPORTED)
+        set_target_properties(SQLite::SQLite3 PROPERTIES
+            IMPORTED_LOCATION             "${SQLite3_LIBRARY}"
+            INTERFACE_INCLUDE_DIRECTORIES "${SQLite3_INCLUDE_DIR}")
+    endif()
+endif()
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6744847e0..b9273c11f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -320,7 +320,7 @@ add_definitions(-DUSE_READLINE)
 endif (READLINE_FOUND)
 
 if (CURSES_FOUND)
-target_include_directories (eressea ${CURSES_INCLUDE_DIRS})
+target_include_directories (eressea PRIVATE ${CURSES_INCLUDE_DIRS})
 target_link_libraries(eressea ${CURSES_LIBRARIES})
 add_definitions(-DUSE_CURSES)
 endif(CURSES_FOUND)

From ba3b9ae6d3f7f2e97e957ecca5bf3f1525ce4448 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 12:10:47 +0100
Subject: [PATCH 21/78] use pdcurses from vcpkg if available

---
 CMakeLists.txt   | 7 +++++--
 vs2019-build.bat | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19aa5ab52..c1100e551 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ if (MSVC)
 find_package (PDCurses)
 set (CURSES_FOUND ${PDCURSES_FOUND})
 set (CURSES_LIBRARIES ${PDCURSES_LIBRARY})
-set (CURSES_INCLUDE_DIR ${PDCURSES_INCLUDE_DIR})
+set (CURSES_INCLUDE_DIRS ${PDCURSES_INCLUDE_DIR})
 set (HAVE_STRDUP 0)
 set (HAVE_STRLCAT 0)
 set (HAVE_LIBBSD 0)
@@ -20,7 +20,6 @@ set (HAVE_EXECINFO_H 0)
 include (MSVC)
 else (MSVC)
 
-find_package (Curses)
 include (CheckIncludeFile)
 CHECK_INCLUDE_FILE(signal.h HAVE_SIGNAL_H)
 CHECK_INCLUDE_FILE(execinfo.h HAVE_EXECINFO_H)
@@ -36,6 +35,10 @@ CHECK_FUNCTION_EXISTS(strlcat HAVE_STRLCAT)
 endif (HAVE_LIBBSD)
 endif (MSVC)
 
+if (NOT CURSES_FOUND)
+find_package (Curses)
+endif (NOT CURSES_FOUND)
+
 find_package (SQLite3 REQUIRED)
 
 find_package(EXPAT REQUIRED)
diff --git a/vs2019-build.bat b/vs2019-build.bat
index 107e6634c..82733c683 100644
--- a/vs2019-build.bat
+++ b/vs2019-build.bat
@@ -8,7 +8,7 @@ REM CD ..
 REM SET ERESSEA=%CD%
 REM CD %SRCDIR%
 
-SET CMAKE_MODULES="%CMAKE_ROOT%\share\cmake-3.19\Modules;%SRCDIR%\cmake\Modules"
+SET CMAKE_MODULES="%CMAKE_ROOT%\share\cmake-3.19\Modules"
 
 IF exist build-vs%VSVERSION% goto HAVEDIR
 mkdir build-vs%VSVERSION%

From b6fff5cb5a50448fd4b46d16d4fcca5347975516 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 12:15:00 +0100
Subject: [PATCH 22/78] run tests where we can clean up after them

---
 s/runtests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/s/runtests b/s/runtests
index 2c8049098..5fd1a9b02 100755
--- a/s/runtests
+++ b/s/runtests
@@ -21,8 +21,8 @@ if [ ! -e $ROOT/$BUILD ]; then
   exit
 fi
 
-$UNIT_TESTS
 cd $ROOT/tests
+$UNIT_TESTS
 $RUN_TESTS -v1 ../scripts/run-tests.lua
 $RUN_TESTS -v1 ../scripts/run-tests-e2.lua
 $RUN_TESTS -v1 ../scripts/run-tests-e3.lua

From 0d2b3a76b775023dca5569eef6aa16b8a114874d Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Sat, 13 Feb 2021 13:32:24 +0100
Subject: [PATCH 23/78] fix compilation with Lua 5.4 (LUA_QL no longer exists)

---
 src/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/console.c b/src/console.c
index f134b2164..11e0e1f81 100644
--- a/src/console.c
+++ b/src/console.c
@@ -227,7 +227,7 @@ static void dotty(lua_State * L)
             lua_insert(L, 1);
             if (lua_pcall(L, lua_gettop(L) - 1, 0, 0) != 0)
                 l_message(progname, lua_pushfstring(L,
-                "error calling " LUA_QL("print") " (%s)", lua_tostring(L, -1)));
+                "error calling 'print' (%s)", lua_tostring(L, -1)));
         }
     }
     lua_settop(L, 0);             /* clear stack */

From d850b28d8586fa360349b8ba2dc6e63270b69e25 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Sat, 13 Feb 2021 13:55:36 +0100
Subject: [PATCH 24/78] we do not use dlmalloc

---
 .gitmodules | 6 ------
 dlmalloc    | 1 -
 iniparser   | 1 -
 3 files changed, 8 deletions(-)
 delete mode 160000 dlmalloc
 delete mode 160000 iniparser

diff --git a/.gitmodules b/.gitmodules
index f76a3af9c..7a89a17be 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,9 +1,3 @@
-[submodule "dlmalloc"]
-	path = dlmalloc
-	url = https://github.com/ennorehling/dlmalloc.git
-[submodule "iniparser"]
-	path = iniparser
-	url = https://github.com/ennorehling/iniparser.git
 [submodule "cJSON"]
 	path = cJSON
 	url = https://github.com/ennorehling/cJSON.git
diff --git a/dlmalloc b/dlmalloc
deleted file mode 160000
index f1446c47c..000000000
--- a/dlmalloc
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit f1446c47ca1774ae84bf86a28502e91daf6b421a
diff --git a/iniparser b/iniparser
deleted file mode 160000
index 31d42782e..000000000
--- a/iniparser
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 31d42782e2713591da4c1a7db1aca4937137e352

From fb3047beb52111465d053e55df841b07cffe0f78 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Sat, 13 Feb 2021 14:36:45 +0100
Subject: [PATCH 25/78] add cmake support for iniparser package

---
 CMakeLists.txt                    |  5 ++-
 cmake/Modules/FindIniParser.cmake | 59 +++++++++++++++++++++++++++++++
 src/CMakeLists.txt                |  6 ++++
 3 files changed, 67 insertions(+), 3 deletions(-)
 create mode 100644 cmake/Modules/FindIniParser.cmake

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1100e551..b9c5c7818 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,8 +40,8 @@ find_package (Curses)
 endif (NOT CURSES_FOUND)
 
 find_package (SQLite3 REQUIRED)
-
-find_package(EXPAT REQUIRED)
+find_package (IniParser REQUIRED)
+find_package (EXPAT REQUIRED)
 find_package (ToLua REQUIRED)
 if (TOLUA_FOUND)
 if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
@@ -55,7 +55,6 @@ enable_testing()
 
 add_subdirectory (cJSON)
 add_subdirectory (storage)
-add_subdirectory (iniparser)
 add_subdirectory (clibs)
 add_subdirectory (process)
 add_subdirectory (src eressea)
diff --git a/cmake/Modules/FindIniParser.cmake b/cmake/Modules/FindIniParser.cmake
new file mode 100644
index 000000000..0f976429d
--- /dev/null
+++ b/cmake/Modules/FindIniParser.cmake
@@ -0,0 +1,59 @@
+# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+#[=======================================================================[.rst:
+FindIniParser
+-----------
+
+.. versionadded:: 3.20
+
+Find the IniParser libraries, v3
+
+IMPORTED targets
+^^^^^^^^^^^^^^^^
+
+This module defines the following :prop_tgt:`IMPORTED` target:
+
+``Devillard::IniParser``
+
+Result variables
+^^^^^^^^^^^^^^^^
+
+This module will set the following variables if found:
+
+``IniParser_INCLUDE_DIRS``
+  where to find sqlite3.h, etc.
+``IniParser_LIBRARIES``
+  the libraries to link against to use IniParser.
+``IniParser_VERSION``
+  version of the IniParser library found
+``IniParser_FOUND``
+  TRUE if found
+
+#]=======================================================================]
+
+# Look for the necessary header
+find_path(IniParser_INCLUDE_DIR iniparser.h)
+mark_as_advanced(IniParser_INCLUDE_DIR)
+
+# Look for the necessary library
+find_library(IniParser_LIBRARY iniparser)
+mark_as_advanced(IniParser_LIBRARY)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(IniParser
+    REQUIRED_VARS IniParser_INCLUDE_DIR IniParser_LIBRARY
+    VERSION_VAR IniParser_VERSION)
+
+# Create the imported target
+if(IniParser_FOUND)
+    set(IniParser_INCLUDE_DIRS ${IniParser_INCLUDE_DIR})
+    set(IniParser_LIBRARIES ${IniParser_LIBRARY})
+    if(NOT TARGET Devillard::IniParser)
+        add_library(Devillard::IniParser UNKNOWN IMPORTED)
+        set_target_properties(Devillard::IniParser PROPERTIES
+            IMPORTED_LOCATION             "${IniParser_LIBRARY}"
+            INTERFACE_INCLUDE_DIRECTORIES "${IniParser_INCLUDE_DIR}")
+    endif()
+endif()
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b9273c11f..3ec49bf09 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -301,6 +301,12 @@ if (HAVE_LIBBSD)
 target_link_libraries(parser bsd)
 endif (HAVE_LIBBSD)
 
+if (IniParser_FOUND)
+target_include_directories(game PUBLIC ${IniParser_INCLUDE_DIRS})
+target_link_libraries(eressea ${IniParser_LIBRARIES})
+target_link_libraries(test_eressea ${IniParser_LIBRARIES})
+endif (IniParser_FOUND)
+
 if (SQLite3_FOUND)
 target_include_directories (game PRIVATE ${SQLite3_INCLUDE_DIRS})
 target_link_libraries(eressea ${SQLite3_LIBRARIES})

From f78d6672589c85d4dd843f6f2d9492b51804a5eb Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 14:46:10 +0100
Subject: [PATCH 26/78] find iniparser.h when installed in subdirectory

---
 cmake/Modules/FindIniParser.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/Modules/FindIniParser.cmake b/cmake/Modules/FindIniParser.cmake
index 0f976429d..7c390fbc8 100644
--- a/cmake/Modules/FindIniParser.cmake
+++ b/cmake/Modules/FindIniParser.cmake
@@ -33,7 +33,7 @@ This module will set the following variables if found:
 #]=======================================================================]
 
 # Look for the necessary header
-find_path(IniParser_INCLUDE_DIR iniparser.h)
+find_path(IniParser_INCLUDE_DIR iniparser.h PATH_SUFFIXES iniparser)
 mark_as_advanced(IniParser_INCLUDE_DIR)
 
 # Look for the necessary library

From b0093868b390f89818ad41ac97011332379b4c77 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 15:10:48 +0100
Subject: [PATCH 27/78] eliminate cJSON submodule

---
 .gitmodules                    |  3 --
 CMakeLists.txt                 |  2 +-
 cJSON                          |  1 -
 cmake/Modules/FindCJSON.cmake  | 59 ++++++++++++++++++++++++++++++++++
 src/CMakeLists.txt             | 12 +++----
 src/json.c                     |  3 +-
 src/util/crypto/CMakeLists.txt |  2 +-
 7 files changed, 67 insertions(+), 15 deletions(-)
 delete mode 160000 cJSON
 create mode 100644 cmake/Modules/FindCJSON.cmake

diff --git a/.gitmodules b/.gitmodules
index 7a89a17be..306652a59 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
-[submodule "cJSON"]
-	path = cJSON
-	url = https://github.com/ennorehling/cJSON.git
 [submodule "storage"]
 	path = storage
 	url = https://github.com/ennorehling/storage.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b9c5c7818..4447944f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,7 @@ endif (NOT CURSES_FOUND)
 
 find_package (SQLite3 REQUIRED)
 find_package (IniParser REQUIRED)
+find_package (CJSON REQUIRED)
 find_package (EXPAT REQUIRED)
 find_package (ToLua REQUIRED)
 if (TOLUA_FOUND)
@@ -53,7 +54,6 @@ endif(TOLUA_FOUND)
 
 enable_testing()
 
-add_subdirectory (cJSON)
 add_subdirectory (storage)
 add_subdirectory (clibs)
 add_subdirectory (process)
diff --git a/cJSON b/cJSON
deleted file mode 160000
index 460207f9c..000000000
--- a/cJSON
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 460207f9c09d501a2e302e5313b2f67dca0d6d63
diff --git a/cmake/Modules/FindCJSON.cmake b/cmake/Modules/FindCJSON.cmake
new file mode 100644
index 000000000..83b924930
--- /dev/null
+++ b/cmake/Modules/FindCJSON.cmake
@@ -0,0 +1,59 @@
+# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+#[=======================================================================[.rst:
+FindCJSON
+-----------
+
+.. versionadded:: 3.20
+
+Find the cJSON libraries, v3
+
+IMPORTED targets
+^^^^^^^^^^^^^^^^
+
+This module defines the following :prop_tgt:`IMPORTED` target:
+
+``DaveGamble::CJSON``
+
+Result variables
+^^^^^^^^^^^^^^^^
+
+This module will set the following variables if found:
+
+``CJSON_INCLUDE_DIRS``
+  where to find sqlite3.h, etc.
+``CJSON_LIBRARIES``
+  the libraries to link against to use CJSON.
+``CJSON_VERSION``
+  version of the CJSON library found
+``CJSON_FOUND``
+  TRUE if found
+
+#]=======================================================================]
+
+# Look for the necessary header
+find_path(CJSON_INCLUDE_DIR cJSON.h PATH_SUFFIXES cjson)
+mark_as_advanced(CJSON_INCLUDE_DIR)
+
+# Look for the necessary library
+find_library(CJSON_LIBRARY cjson)
+mark_as_advanced(CJSON_LIBRARY)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(CJSON
+    REQUIRED_VARS CJSON_INCLUDE_DIR CJSON_LIBRARY
+    VERSION_VAR CJSON_VERSION)
+
+# Create the imported target
+if(CJSON_FOUND)
+    set(CJSON_INCLUDE_DIRS ${CJSON_INCLUDE_DIR})
+    set(CJSON_LIBRARIES ${CJSON_LIBRARY})
+    if(NOT TARGET DaveGamble::CJSON)
+        add_library(DaveGamble::CJSON UNKNOWN IMPORTED)
+        set_target_properties(DaveGamble::CJSON PROPERTIES
+            IMPORTED_LOCATION             "${CJSON_LIBRARY}"
+            INTERFACE_INCLUDE_DIRECTORIES "${CJSON_INCLUDE_DIR}")
+    endif()
+endif()
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3ec49bf09..afb619f8c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,7 +1,6 @@
 project (server C)
 
 include_directories (${CMAKE_CURRENT_SOURCE_DIR})
-include_directories (${CJSON_INCLUDE_DIR})
 include_directories (${CRYPTO_INCLUDE_DIR})
 include_directories (${CLIBS_INCLUDE_DIR})
 include_directories (${STORAGE_INCLUDE_DIR})
@@ -209,7 +208,7 @@ target_link_libraries(eressea
   ${LUA_LIBRARIES}
   ${STORAGE_LIBRARIES}
   ${CJSON_LIBRARIES}
-  ${INIPARSER_LIBRARIES}
+  ${IniParser_LIBRARIES}
 )
 
 set(TESTS_SRC
@@ -268,7 +267,7 @@ target_link_libraries(test_eressea
   ${CLIBS_LIBRARIES}
   ${STORAGE_LIBRARIES}
   ${CJSON_LIBRARIES}
-  ${INIPARSER_LIBRARIES}
+  ${IniParser_LIBRARIES}
   )
 
 add_test(server test_eressea)
@@ -301,11 +300,8 @@ if (HAVE_LIBBSD)
 target_link_libraries(parser bsd)
 endif (HAVE_LIBBSD)
 
-if (IniParser_FOUND)
-target_include_directories(game PUBLIC ${IniParser_INCLUDE_DIRS})
-target_link_libraries(eressea ${IniParser_LIBRARIES})
-target_link_libraries(test_eressea ${IniParser_LIBRARIES})
-endif (IniParser_FOUND)
+target_include_directories (game PUBLIC ${CJSON_INCLUDE_DIRS})
+target_include_directories (game PUBLIC ${IniParser_INCLUDE_DIRS})
 
 if (SQLite3_FOUND)
 target_include_directories (game PRIVATE ${SQLite3_INCLUDE_DIRS})
diff --git a/src/json.c b/src/json.c
index 127d74f70..f25970af0 100644
--- a/src/json.c
+++ b/src/json.c
@@ -9,7 +9,8 @@
 #include <kernel/faction.h>
 #include <kernel/terrain.h>
 #include <stream.h>
-#include "cJSON.h"
+
+#include <cJSON.h>
 
 #include <string.h>
 #include <stdlib.h>
diff --git a/src/util/crypto/CMakeLists.txt b/src/util/crypto/CMakeLists.txt
index 9a82ff926..735dabc0a 100644
--- a/src/util/crypto/CMakeLists.txt
+++ b/src/util/crypto/CMakeLists.txt
@@ -13,7 +13,7 @@ SET (LIB_SRC
 )
 ADD_LIBRARY (crypto ${LIB_SRC})
 
-set (CRYPTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "cJSON headers")
+set (CRYPTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "crypto headers")
 set (CRYPTO_LIBRARIES crypto CACHE INTERNAL "crypto libraries")
 
 IF(WIN32)

From 0b2049151af44142175a07bbbea1f48aa425605d Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 15:12:13 +0100
Subject: [PATCH 28/78] update package list

---
 README.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 4be1c324e..aba766a60 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,8 @@ Debian-based Linux system, this is the apt-get command to
 install all of them:
 
     sudo apt-get install git cmake gcc make luarocks libxml2-dev \
-        liblua5.2-dev libtolua-dev libncurses5-dev libsqlite3-dev
+        liblua5.2-dev libtolua-dev libncurses5-dev libsqlite3-dev \
+        libcjson-dev libiniparser-dev
 
 # How to check out and build the Eressea server
 

From 73b2895306a0743b3366d8f3656f3f1438af4baa Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 15:15:32 +0100
Subject: [PATCH 29/78] fix travis build

---
 .travis.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index b702efaab..d6bf54606 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,8 @@ addons:
       - libncurses5-dev
       - libsqlite3-dev
       - libexpat1-dev
+      - libiniparser-dev
+      - libcjson-dev
       - valgrind
       - cppcheck
       - shellcheck

From d1ec2bbb5ccd7d00d5d8e6afce0514b568ec5aed Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 20:48:19 +0100
Subject: [PATCH 30/78] tolua creates sources that abuse the LUALIB_API
 defines.

Manually fixing the generated files so they don't try to declare dllimports.
---
 src/CMakeLists.txt |  8 ++++----
 src/config.pkg.c   |  8 ++++----
 src/console.c      |  2 +-
 src/eressea.pkg.c  |  8 ++++----
 src/game.pkg.c     |  8 ++++----
 src/locale.pkg.c   |  8 ++++----
 src/log.pkg.c      |  8 ++++----
 src/process.pkg.c  | 13 ++++---------
 src/settings.pkg.c |  8 ++++----
 9 files changed, 33 insertions(+), 38 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index afb619f8c..6307fde41 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -307,24 +307,24 @@ if (SQLite3_FOUND)
 target_include_directories (game PRIVATE ${SQLite3_INCLUDE_DIRS})
 target_link_libraries(eressea ${SQLite3_LIBRARIES})
 target_link_libraries(test_eressea ${SQLite3_LIBRARIES})
-add_definitions(-DUSE_SQLITE)
+add_compile_definitions(game PRIVATE USE_SQLITE)
 elseif (DB_FOUND)
 #include_directories (${DB_INCLUDE_DIR})
 target_link_libraries(eressea ${DB_LIBRARIES})
 target_link_libraries(test_eressea ${DB_LIBRARIES})
-add_definitions(-DUSE_DB)
+add_compile_definitions(game PRIVATE USE_DB)
 endif(SQLite3_FOUND)
 
 if (READLINE_FOUND)
 #include_directories (${READLINE_INCLUDE_DIR})
 target_link_libraries(eressea ${READLINE_LIBRARY})
-add_definitions(-DUSE_READLINE)
+add_compile_definitions(eressea PRIVATE DUSE_READLINE)
 endif (READLINE_FOUND)
 
 if (CURSES_FOUND)
 target_include_directories (eressea PRIVATE ${CURSES_INCLUDE_DIRS})
 target_link_libraries(eressea ${CURSES_LIBRARIES})
-add_definitions(-DUSE_CURSES)
+add_compile_definitions(eressea PRIVATE USE_CURSES)
 endif(CURSES_FOUND)
 
 if (EXPAT_FOUND)
diff --git a/src/config.pkg.c b/src/config.pkg.c
index 38e1f8785..585ec2a55 100644
--- a/src/config.pkg.c
+++ b/src/config.pkg.c
@@ -15,8 +15,8 @@
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_config_open (lua_State* tolua_S);
-LUALIB_API int luaopen_config (lua_State* tolua_S);
+int tolua_config_open (lua_State* tolua_S);
+int luaopen_config (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_config
@@ -108,7 +108,7 @@ static int tolua_config_eressea_config_parse00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_config (lua_State* tolua_S)
+int luaopen_config (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -127,7 +127,7 @@ LUALIB_API int luaopen_config (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_config_open (lua_State* tolua_S)
+int tolua_config_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_config);
  lua_pushstring(tolua_S, "config");
diff --git a/src/console.c b/src/console.c
index 11e0e1f81..a13dc3982 100644
--- a/src/console.c
+++ b/src/console.c
@@ -199,7 +199,7 @@ static int loadline(lua_State * L)
     if (!pushline(L, 1))
         return -1;                  /* no input */
     for (;;) {                    /* repeat until gets a complete line */
-        status = luaL_loadbuffer(L, lua_tostring(L, 1), lua_strlen(L, 1), "=stdin");
+        status = luaL_loadbuffer(L, lua_tostring(L, 1), (size_t)lua_strlen(L, 1), "=stdin");
         if (!incomplete(L, status))
             break;                    /* cannot try to add lines? */
         if (!pushline(L, 0))        /* no more input? */
diff --git a/src/eressea.pkg.c b/src/eressea.pkg.c
index 9318d975d..2a41eac38 100644
--- a/src/eressea.pkg.c
+++ b/src/eressea.pkg.c
@@ -15,8 +15,8 @@
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_eressea_open (lua_State* tolua_S);
-LUALIB_API int luaopen_eressea (lua_State* tolua_S);
+int tolua_eressea_open (lua_State* tolua_S);
+int luaopen_eressea (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_eressea
@@ -190,7 +190,7 @@ static int tolua_eressea_eressea_import00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_eressea (lua_State* tolua_S)
+int luaopen_eressea (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -209,7 +209,7 @@ LUALIB_API int luaopen_eressea (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_eressea_open (lua_State* tolua_S)
+int tolua_eressea_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_eressea);
  lua_pushstring(tolua_S, "eressea");
diff --git a/src/game.pkg.c b/src/game.pkg.c
index 30671021d..7fc23b0b0 100644
--- a/src/game.pkg.c
+++ b/src/game.pkg.c
@@ -15,8 +15,8 @@
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_game_open (lua_State* tolua_S);
-LUALIB_API int luaopen_game (lua_State* tolua_S);
+int tolua_game_open (lua_State* tolua_S);
+int luaopen_game (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_game
@@ -162,7 +162,7 @@ static int tolua_game_eressea_game_import00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_game (lua_State* tolua_S)
+int luaopen_game (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -183,7 +183,7 @@ LUALIB_API int luaopen_game (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_game_open (lua_State* tolua_S)
+int tolua_game_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_game);
  lua_pushstring(tolua_S, "game");
diff --git a/src/locale.pkg.c b/src/locale.pkg.c
index 1792b742e..01d83c681 100644
--- a/src/locale.pkg.c
+++ b/src/locale.pkg.c
@@ -15,8 +15,8 @@
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_locale_open (lua_State* tolua_S);
-LUALIB_API int luaopen_locale (lua_State* tolua_S);
+int tolua_locale_open (lua_State* tolua_S);
+int luaopen_locale (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_locale
@@ -142,7 +142,7 @@ static int tolua_locale_eressea_locale_direction00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_locale (lua_State* tolua_S)
+int luaopen_locale (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -162,7 +162,7 @@ LUALIB_API int luaopen_locale (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_locale_open (lua_State* tolua_S)
+int tolua_locale_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_locale);
  lua_pushstring(tolua_S, "locale");
diff --git a/src/log.pkg.c b/src/log.pkg.c
index 4303a5c2d..92e405751 100644
--- a/src/log.pkg.c
+++ b/src/log.pkg.c
@@ -15,8 +15,8 @@
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_log_open (lua_State* tolua_S);
-LUALIB_API int luaopen_log (lua_State* tolua_S);
+int tolua_log_open (lua_State* tolua_S);
+int luaopen_log (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_log
@@ -132,7 +132,7 @@ static int tolua_log_eressea_log_info00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_log (lua_State* tolua_S)
+int luaopen_log (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -152,7 +152,7 @@ LUALIB_API int luaopen_log (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_log_open (lua_State* tolua_S)
+int tolua_log_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_log);
  lua_pushstring(tolua_S, "log");
diff --git a/src/process.pkg.c b/src/process.pkg.c
index 3e818f7ce..f739528b7 100644
--- a/src/process.pkg.c
+++ b/src/process.pkg.c
@@ -7,16 +7,11 @@
 #ifndef __cplusplus
 #include <stdlib.h>
 #endif
-#ifdef __cplusplus
- extern "C" int tolua_bnd_takeownership (lua_State* L); // from tolua_map.c
-#else
- int tolua_bnd_takeownership (lua_State* L); /* from tolua_map.c */
-#endif
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_process_open (lua_State* tolua_S);
-LUALIB_API int luaopen_process (lua_State* tolua_S);
+int tolua_process_open (lua_State* tolua_S);
+int luaopen_process (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_process
@@ -942,7 +937,7 @@ static int tolua_process_eressea_process_set_default00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_process (lua_State* tolua_S)
+int luaopen_process (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -996,7 +991,7 @@ LUALIB_API int luaopen_process (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_process_open (lua_State* tolua_S)
+int tolua_process_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_process);
  lua_pushstring(tolua_S, "process");
diff --git a/src/settings.pkg.c b/src/settings.pkg.c
index 79ea280cb..fbb3d242d 100644
--- a/src/settings.pkg.c
+++ b/src/settings.pkg.c
@@ -15,8 +15,8 @@
 #include <string.h>
 
 /* Exported function */
-TOLUA_API int tolua_settings_open (lua_State* tolua_S);
-LUALIB_API int luaopen_settings (lua_State* tolua_S);
+int tolua_settings_open (lua_State* tolua_S);
+int luaopen_settings (lua_State* tolua_S);
 
 #undef tolua_reg_types
 #define tolua_reg_types tolua_reg_types_settings
@@ -83,7 +83,7 @@ static int tolua_settings_eressea_settings_get00(lua_State* tolua_S)
 }
 
 /* Open lib function */
-LUALIB_API int luaopen_settings (lua_State* tolua_S)
+int luaopen_settings (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
@@ -101,7 +101,7 @@ LUALIB_API int luaopen_settings (lua_State* tolua_S)
  return 1;
 }
 /* Open tolua function */
-TOLUA_API int tolua_settings_open (lua_State* tolua_S)
+int tolua_settings_open (lua_State* tolua_S)
 {
  lua_pushcfunction(tolua_S, luaopen_settings);
  lua_pushstring(tolua_S, "settings");

From a67246ba86f32bbf66c0cf0497450ab0637b7ae1 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 13 Feb 2021 18:43:20 +0100
Subject: [PATCH 31/78] there is only one repository for tolua now

---
 s/cmake-init | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/s/cmake-init b/s/cmake-init
index 167ec2fd6..0fe4735c9 100755
--- a/s/cmake-init
+++ b/s/cmake-init
@@ -78,21 +78,16 @@ fi
 
 DEST=$(dirname $ROOT)/server
 
-TOLUA_VERSION="5.2"
 LUA_INCLUDE=/usr/include
 LUA_DIR=/usr
 if [ -d /usr/local/include/lua ]; then
-   TOLUA_VERSION="5.2"
    LUA_INCLUDE=/usr/local/include/lua
 elif [ -d /usr/include/lua5.2 ]; then
-   TOLUA_VERSION="5.2"
    LUA_INCLUDE=/usr/include/lua5.2
 elif [ -d /usr/include/lua5.1 ]; then
-   TOLUA_VERSION="5.1"
    LUA_INCLUDE=/usr/include/lua5.1
 elif [ -d /usr/local/include/lua5.1 ]; then
    LUA_DIR=/usr/local
-   TOLUA_VERSION="5.1"
    LUA_INCLUDE=/usr/local/include/lua5.1
 fi
 
@@ -115,8 +110,8 @@ if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
  echo "tolua is not installed, building from source"
  cd $ROOT
  if [ ! -d tolua/include ]; then
-  echo "fetching tolua ${TOLUA_VERSION} from github..."
-  git clone https://github.com/ennorehling/tolua-${TOLUA_VERSION}.git tolua
+  echo "fetching tolua from github..."
+  git clone https://github.com/ennorehling/tolua.git tolua
  fi
  echo "building tolua..."
  cd tolua

From 7fae809aa0d2cb7ad029ce71d7837fca578dd4bd Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Sun, 14 Feb 2021 09:09:09 +0100
Subject: [PATCH 32/78] update tolua repo if needed

---
 s/cmake-init | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/s/cmake-init b/s/cmake-init
index 0fe4735c9..91600cc13 100755
--- a/s/cmake-init
+++ b/s/cmake-init
@@ -107,20 +107,22 @@ HEREDOC
 
 path="$(which tolua)"
 if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
- echo "tolua is not installed, building from source"
- cd $ROOT
- if [ ! -d tolua/include ]; then
-  echo "fetching tolua from github..."
-  git clone https://github.com/ennorehling/tolua.git tolua
- fi
- echo "building tolua..."
+echo "tolua is not installed, building from source"
+cd $ROOT
+if [ ! -d tolua/include ]; then
+ echo "fetching tolua from github..."
+ git clone https://github.com/ennorehling/tolua.git tolua
  cd tolua
- make
- cd -
+else
+ cd tolua
+ git pull --rebase
+fi
+echo "building tolua..."
+make
+cd -
 cat >> $BUILD/config.cmake <<TOLUA
 SET(PC_TOLUA_DIR "$ROOT/tolua" CACHE PATH "tolua root")
 TOLUA
-
 else
  echo "tolua is $path"
 fi

From db402c4e2c2a91a38a5de57de27f7c49002d6849 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 11:05:28 +0100
Subject: [PATCH 33/78] include custom version of tolua as a submodule.

change how libm and libbsd are detected.
---
 .gitignore                    |  1 -
 .gitmodules                   |  3 ++
 CMakeLists.txt                | 24 ++++++------
 cmake/Modules/FindToLua.cmake | 73 -----------------------------------
 src/CMakeLists.txt            | 10 ++++-
 tolua                         |  1 +
 6 files changed, 25 insertions(+), 87 deletions(-)
 delete mode 100644 cmake/Modules/FindToLua.cmake
 create mode 160000 tolua

diff --git a/.gitignore b/.gitignore
index 1edc125c6..5b1e405be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-tolua/
 .vscode/
 *.orig
 eressea.ini
diff --git a/.gitmodules b/.gitmodules
index 306652a59..4c0b4a9ae 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -5,3 +5,6 @@
 [submodule "clibs"]
 	path = clibs
 	url = https://github.com/ennorehling/clibs
+[submodule "tolua"]
+	path = tolua
+	url = https://github.com/ennorehling/tolua.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4447944f6..eae4f2a88 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.9)
 if (WIN32)
-FILE(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH )
-FILE(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH )
+file(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH )
+file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH )
 endif(WIN32)
 
 project (eressea-server C)
@@ -21,17 +21,19 @@ include (MSVC)
 else (MSVC)
 
 include (CheckIncludeFile)
-CHECK_INCLUDE_FILE(signal.h HAVE_SIGNAL_H)
-CHECK_INCLUDE_FILE(execinfo.h HAVE_EXECINFO_H)
-CHECK_INCLUDE_FILE(bsd/string.h HAVE_LIBBSD)
+check_include_file(signal.h HAVE_SIGNAL_H)
+check_include_file(execinfo.h HAVE_EXECINFO_H)
+
+include (CheckLibraryExists)
+check_library_exists(m sin "" HAVE_LIBM)
+check_library_exists(bsd strlcat "" HAVE_LIBBSD)
 
 include (CheckFunctionExists)
-CHECK_FUNCTION_EXISTS(strdup HAVE_STRDUP)
+check_function_exists(strdup HAVE_STRDUP)
+check_function_exists(strlcat HAVE_STRLCAT)
+
 if (HAVE_LIBBSD)
-include (CheckLibraryExists)
-CHECK_LIBRARY_EXISTS(bsd strlcat "bsd/string.h" HAVE_STRLCAT)
-else (HAVE_LIBBSD)
-CHECK_FUNCTION_EXISTS(strlcat HAVE_STRLCAT)
+  set (HAVE_STRLCAT 1)
 endif (HAVE_LIBBSD)
 endif (MSVC)
 
@@ -43,7 +45,6 @@ find_package (SQLite3 REQUIRED)
 find_package (IniParser REQUIRED)
 find_package (CJSON REQUIRED)
 find_package (EXPAT REQUIRED)
-find_package (ToLua REQUIRED)
 if (TOLUA_FOUND)
 if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
 find_package (Lua 5.2 REQUIRED)
@@ -54,6 +55,7 @@ endif(TOLUA_FOUND)
 
 enable_testing()
 
+add_subdirectory (tolua)
 add_subdirectory (storage)
 add_subdirectory (clibs)
 add_subdirectory (process)
diff --git a/cmake/Modules/FindToLua.cmake b/cmake/Modules/FindToLua.cmake
deleted file mode 100644
index 92732981b..000000000
--- a/cmake/Modules/FindToLua.cmake
+++ /dev/null
@@ -1,73 +0,0 @@
-# - Try to find the ToLua library
-# Once done this will define
-#
-#  TOLUA_FOUND - System has ToLua
-#  TOLUA_INCLUDE_DIR - The ToLua include directory
-#  TOLUA_LIBRARIES - The libraries needed to use ToLua
-#  TOLUA_DEFINITIONS - Compiler switches required for using ToLua
-#  TOLUA_EXECUTABLE - The ToLua command line shell
-#  TOLUA_VERSION_STRING - the version of ToLua found (since CMake 2.8.8)
-
-#=============================================================================
-# Copyright 2006-2009 Kitware, Inc.
-# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
-#
-# Distributed under the OSI-approved BSD License (the "License");
-# see accompanying file Copyright.txt for details.
-#
-# This software is distributed WITHOUT ANY WARRANTY; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the License for more information.
-#=============================================================================
-# (To distribute this file outside of CMake, substitute the full
-#  License text for the above reference.)
-
-# use pkg-config to get the directories and then use these values
-# in the find_path() and find_library() calls
-find_package(PkgConfig QUIET)
-PKG_CHECK_MODULES(PC_TOLUA QUIET ToLua)
-set(TOLUA_DEFINITIONS ${PC_TOLUA_CFLAGS_OTHER})
-
-find_path(TOLUA_INCLUDE_DIR NAMES tolua.h
-   HINTS
-   ${PC_TOLUA_DIR}/include
-   ${PC_TOLUA_INCLUDEDIR}
-   ${PC_TOLUA_INCLUDE_DIRS}
-   )
-find_library(TOLUA_LIBRARY NAMES tolua
-   HINTS
-   ${PC_TOLUA_DIR}/lib
-   ${PC_TOLUA_LIBDIR}
-   ${PC_TOLUA_LIBRARY_DIRS}
-   )
-find_program(TOLUA_EXECUTABLE tolua
-   HINTS
-   ${PC_TOLUA_DIR}/bin
-   ${PC_TOLUA_LIBDIR}
-   ${PC_TOLUA_LIBRARY_DIRS}
-)
-
-SET( TOLUA_LIBRARIES "${TOLUA_LIBRARY}" CACHE STRING "ToLua Libraries")
-
-if(PC_TOLUA_VERSION)
-    set(TOLUA_VERSION_STRING ${PC_TOLUA_VERSION})
-elseif(TOLUA_INCLUDE_DIR AND EXISTS "${TOLUA_INCLUDE_DIR}/tolua.h")
-    file(STRINGS "${TOLUA_INCLUDE_DIR}/tolua.h" tolua_version_str
-         REGEX "^#define[\t ]+TOLUA_VERSION[\t ]+\".*\"")
-
-    string(REGEX REPLACE "^#define[\t ]+TOLUA_VERSION[\t ]+\"tolua ([^\"]*)\".*" "\\1"
-           TOLUA_VERSION_STRING "${tolua_version_str}")
-    unset(tolua_version_str)
-else(PC_TOLUA_VERSION)
-message(ERROR "TOLUA_VERSION_STRING cannot be determined")
-endif(PC_TOLUA_VERSION)
-
-# handle the QUIETLY and REQUIRED arguments and set TOLUA_FOUND to TRUE if
-# all listed variables are TRUE
-include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(ToLua
-                                  REQUIRED_VARS TOLUA_LIBRARY TOLUA_INCLUDE_DIR TOLUA_EXECUTABLE
-                                  VERSION_VAR TOLUA_VERSION_STRING)
-
-mark_as_advanced(TOLUA_INCLUDE_DIR TOLUA_LIBRARIES TOLUA_EXECUTABLE)
-
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6307fde41..398452769 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -191,12 +191,18 @@ target_link_libraries(parser
   ${CRYPTO_LIBRARIES}
   )
 
-
 add_executable(checker ${CHECK_SRC})
 target_link_libraries(checker parser)
 
+if (HAVE_LIBBSD)
+  set (EXTRA_LIBS ${EXTRA_LIBS} bsd)
+endif (HAVE_LIBBSD)
+if (HAVE_LIBM)
+  set (EXTRA_LIBS ${EXTRA_LIBS} m)
+endif (HAVE_LIBM)
+
 add_library(game ${ERESSEA_SRC})
-target_link_libraries(game parser version)
+target_link_libraries(game ${EXTRA_LIBS} parser version)
 
 add_executable(eressea ${SERVER_SRC})
 if (IWYU_PATH)
diff --git a/tolua b/tolua
new file mode 160000
index 000000000..e7e8a7c1a
--- /dev/null
+++ b/tolua
@@ -0,0 +1 @@
+Subproject commit e7e8a7c1aa70de807cce14d0e126b4ecad9d3b9a

From 4dd84d07ec82d85996c05bbc518508c98c537d03 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 11:09:28 +0100
Subject: [PATCH 34/78] build with lua 5.3

no need to depend on the old tolua package in apt
---
 .travis.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index d6bf54606..8737c3e58 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,8 +9,7 @@ addons:
     packages:
       - libbsd-dev
       - libdb-dev
-      - liblua5.1-dev
-      - libtolua-dev
+      - liblua5.3-dev
       - libncurses5-dev
       - libsqlite3-dev
       - libexpat1-dev

From 2f3cf7107a639713466c18588fd00c62c0f4aa57 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Sun, 14 Feb 2021 11:58:19 +0100
Subject: [PATCH 35/78] fix tolua include

---
 tolua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tolua b/tolua
index e7e8a7c1a..e054dd7b9 160000
--- a/tolua
+++ b/tolua
@@ -1 +1 @@
-Subproject commit e7e8a7c1aa70de807cce14d0e126b4ecad9d3b9a
+Subproject commit e054dd7b9280300828343e7007d083ab30b6531e

From 1d50bd19d2ec517b8ee62bbd4ccd946df631f7a2 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@servebolt.com>
Date: Sun, 14 Feb 2021 15:07:46 +0100
Subject: [PATCH 36/78] consider newer lua versions

---
 .travis.yml  | 1 +
 s/cmake-init | 4 ++++
 tolua        | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 8737c3e58..8d8ac72db 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
 sudo: false
 language: c
+dist: bionic
 compiler:
   - gcc
   - clang
diff --git a/s/cmake-init b/s/cmake-init
index 91600cc13..d119b148e 100755
--- a/s/cmake-init
+++ b/s/cmake-init
@@ -82,6 +82,10 @@ LUA_INCLUDE=/usr/include
 LUA_DIR=/usr
 if [ -d /usr/local/include/lua ]; then
    LUA_INCLUDE=/usr/local/include/lua
+elif [ -d /usr/include/lua5.4 ]; then
+   LUA_INCLUDE=/usr/include/lua5.4
+elif [ -d /usr/include/lua5.3 ]; then
+   LUA_INCLUDE=/usr/include/lua5.3
 elif [ -d /usr/include/lua5.2 ]; then
    LUA_INCLUDE=/usr/include/lua5.2
 elif [ -d /usr/include/lua5.1 ]; then
diff --git a/tolua b/tolua
index e054dd7b9..8a658c005 160000
--- a/tolua
+++ b/tolua
@@ -1 +1 @@
-Subproject commit e054dd7b9280300828343e7007d083ab30b6531e
+Subproject commit 8a658c00574f2e4889f2631be167b597b6f087e7

From 6b20d27762e05f02ba2cfc7a95d302cdddf41678 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 16:57:35 +0100
Subject: [PATCH 37/78] try building on ubuntu focal image

---
 .travis.yml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8d8ac72db..8d5e50027 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
 sudo: false
 language: c
-dist: bionic
+dist: focal
 compiler:
   - gcc
   - clang
@@ -22,6 +22,3 @@ addons:
       - luarocks
 os:
   - linux
-notifications:
-  slack:
-    secure: F89aXLWaE125PaJIlETv12jT4EfH6wLXJmGCPZzrN3OcLn2ahDWqjwuzR7lOEDf2nAISmeMPyDZMhEHXLNHAE5qP6lg9yliYQw5hzGmDK9m1xUq/pPEne/b2Y7K3my1mkRZ6n3asbHgSmBWAfCIk1JN8R5Rv+rmbLuWLc+zofts=

From b6b95f58edd0d30180faa88bc86e6c29c1b631e9 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 17:07:26 +0100
Subject: [PATCH 38/78] import the inifile builder from iniparser repo

---
 src/tools/inifile.c | 81 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
 create mode 100644 src/tools/inifile.c

diff --git a/src/tools/inifile.c b/src/tools/inifile.c
new file mode 100644
index 000000000..e8db63740
--- /dev/null
+++ b/src/tools/inifile.c
@@ -0,0 +1,81 @@
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <iniparser.h>
+
+const char *progname = "inifile";
+
+void usage(void) {
+    fprintf(stdout, "Usage: %s file.ini [add|del] <args>\n", progname);
+}
+
+int main(int argc, char ** argv) {
+    const char *inifile;
+    const char *command;
+    dictionary *ini;
+    FILE *F;
+
+    inifile = (argc<2) ? 0 : argv[1];
+    command = (argc<3) ? 0 : argv[2];
+
+    if (!inifile) {
+        fputs("Missing filename.\n", stderr);
+        usage();
+        return 1;
+    }
+    if (!command) {
+        fputs("Missing command.\n", stderr);
+        usage();
+        return 1;
+    }
+    ini = iniparser_load(inifile);
+    if (!ini) {
+        fprintf(stderr, "could not open %s.\n", inifile);
+        return 1;
+    }
+    if (strcmp(command, "add")==0) {
+        if (argc==4) {
+            iniparser_set(ini, argv[3], "");
+        }
+        else if (argc==5) {
+            iniparser_set(ini, argv[3], argv[4]);
+        }
+        else {
+            fputs("set needs one or two arguments.\n", stderr);
+            return 1;
+        }
+    }
+    else if (strcmp(command, "get")==0) {
+        const char * str;
+	if (argc==4) {
+            str = iniparser_getstring(ini, argv[3], "");
+        }
+        else if (argc==5) {
+            str = iniparser_getstring(ini, argv[3], argv[4]);
+        }
+        else {
+            fputs("set needs one or two arguments.\n", stderr);
+            return 1;
+        }
+	fprintf(stdout, "%s\n", str);
+    }
+    else if (strcmp(command, "del")==0) {
+        if (argc<4) {
+            fputs("del needs one argument.\n", stderr);
+            return 1;
+        }
+        iniparser_unset(ini, argv[3]);
+    } else {
+        fprintf(stderr, "unknown command %s.\n", command);
+        usage();
+        return 1;
+    }
+     
+    if ((F=fopen(inifile, "wt"))!=0) {
+        iniparser_dump_ini(ini, F);
+        fclose(F);
+    }
+    iniparser_freedict(ini);
+    return 0;
+}

From a59fdf87cb02fc5f082683c9d4b439ebb28fb650 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 18:27:24 +0100
Subject: [PATCH 39/78] separate stats and log

---
 src/automate.c          |  1 +
 src/battle.c            | 73 +++++++++++++++++-----------------
 src/main.c              | 17 ++++----
 src/monsters.c          | 25 ++++++------
 src/randenc.c           |  6 +--
 src/teleport.c          | 22 +++++------
 src/test_eressea.c      | 15 +++----
 src/tests.c             | 53 +++++++++++++------------
 src/util/CMakeLists.txt |  2 +
 src/util/log.c          | 87 ++---------------------------------------
 src/util/log.h          | 32 ++++++---------
 src/util/log.test.c     |  1 +
 src/util/stats.c        | 70 +++++++++++++++++++++++++++++++++
 src/util/stats.h        | 15 +++++++
 tolua                   |  2 +-
 15 files changed, 207 insertions(+), 214 deletions(-)
 create mode 100644 src/util/stats.c
 create mode 100644 src/util/stats.h

diff --git a/src/automate.c b/src/automate.c
index e3f5b656a..53ac074a7 100644
--- a/src/automate.c
+++ b/src/automate.c
@@ -11,6 +11,7 @@
 
 #include "util/keyword.h"
 #include "util/log.h"
+#include "util/stats.h"
 
 #include "automate.h"
 #include "laws.h"
diff --git a/src/battle.c b/src/battle.c
index 2d45c6df8..ff0544442 100644
--- a/src/battle.c
+++ b/src/battle.c
@@ -13,48 +13,49 @@
 #include "study.h"
 #include "spy.h"
 
-#include <spells/buildingcurse.h>
-#include <spells/regioncurse.h>
-#include <spells/unitcurse.h>
+#include "spells/buildingcurse.h"
+#include "spells/regioncurse.h"
+#include "spells/unitcurse.h"
 
-#include <kernel/ally.h>
-#include <kernel/alliance.h>
-#include <kernel/build.h>
-#include <kernel/building.h>
-#include <kernel/curse.h>
-#include <kernel/equipment.h>
-#include <kernel/faction.h>
-#include <kernel/group.h>
-#include <kernel/item.h>
-#include <kernel/messages.h>
-#include <kernel/order.h>
-#include <kernel/plane.h>
-#include <kernel/race.h>
-#include <kernel/region.h>
-#include <kernel/ship.h>
-#include <kernel/terrain.h>
-#include <kernel/unit.h>
-#include <kernel/spell.h>
+#include "kernel/ally.h"
+#include "kernel/alliance.h"
+#include "kernel/build.h"
+#include "kernel/building.h"
+#include "kernel/curse.h"
+#include "kernel/equipment.h"
+#include "kernel/faction.h"
+#include "kernel/group.h"
+#include "kernel/item.h"
+#include "kernel/messages.h"
+#include "kernel/order.h"
+#include "kernel/plane.h"
+#include "kernel/race.h"
+#include "kernel/region.h"
+#include "kernel/ship.h"
+#include "kernel/terrain.h"
+#include "kernel/unit.h"
+#include "kernel/spell.h"
 
-#include <reports.h>
+#include "reports.h"
 
 /* attributes includes */
-#include <attributes/key.h>
-#include <attributes/racename.h>
-#include <attributes/otherfaction.h>
+#include "attributes/key.h"
+#include "attributes/racename.h"
+#include "attributes/otherfaction.h"
 
 /* util includes */
-#include <util/assert.h>
-#include <kernel/attrib.h>
-#include <util/base36.h>
-#include <util/language.h>
-#include <util/lists.h>
-#include <util/log.h>
-#include <util/macros.h>
-#include <util/parser.h>
-#include <util/strings.h>
-#include <util/rand.h>
-#include <util/rng.h>
+#include "util/assert.h"
+#include "kernel/attrib.h"
+#include "util/base36.h"
+#include "util/language.h"
+#include "util/lists.h"
+#include "util/log.h"
+#include "util/macros.h"
+#include "util/parser.h"
+#include "util/strings.h"
+#include "util/stats.h"
+#include "util/rand.h"
+#include "util/rng.h"
 
 #include <selist.h>
 
diff --git a/src/main.c b/src/main.c
index b937c80fa..aa908b8ea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,3 @@
-#ifdef _MSC_VER
-#include <platform.h>
-#endif
-
 #include <kernel/calendar.h>
 #include <kernel/config.h>
 #include <kernel/messages.h>
@@ -10,6 +6,7 @@
 
 #include <util/language.h>
 #include <util/log.h>
+#include <util/stats.h>
 #include <util/path.h>
 #include <util/password.h>
 
@@ -142,9 +139,9 @@ static int get_arg(int argc, char **argv, size_t len, int index, const char **re
     return index;
 }
 
-static int verbosity_to_flags(int verbosity) {
+static int verbosity_to_flags(int value) {
     int flags = 0;
-    switch (verbosity) {
+    switch (value) {
     case 0:
         flags = 0;
         break;
@@ -167,7 +164,7 @@ static int verbosity_to_flags(int verbosity) {
 static int parse_args(int argc, char **argv)
 {
     int i;
-    int log_stderr, log_flags = 3;
+    int log_flags = 3;
 
     for (i = 1; i != argc; ++i) {
         char *argi = argv[i];
@@ -245,9 +242,9 @@ static int parse_args(int argc, char **argv)
     log_open(logfile, log_flags);
 
     /* also log to stderr: */
-    log_stderr = verbosity_to_flags(verbosity);
-    if (log_stderr) {
-        log_to_file(log_stderr | LOG_FLUSH | LOG_BRIEF, stderr);
+    log_flags = verbosity_to_flags(verbosity);
+    if (log_flags) {
+        log_to_file(log_flags | LOG_FLUSH | LOG_BRIEF, stderr);
     }
     return 0;
 }
diff --git a/src/monsters.c b/src/monsters.c
index 148e6f46d..058d98b9f 100644
--- a/src/monsters.c
+++ b/src/monsters.c
@@ -1,7 +1,3 @@
-#ifdef _MSC_VER
-#include <platform.h>
-#endif
-
 #include "monsters.h"
 
 #include "economy.h"
@@ -34,21 +30,22 @@
 #include "kernel/unit.h"
 
 /* util includes */
-#include <util/base36.h>
+#include "util/base36.h"
 #include "util/keyword.h"
 #include "util/language.h"
-#include <util/log.h>
-#include <util/rand.h>
-#include <util/rng.h>
-#include <util/strings.h>
+#include "util/log.h"
+#include "util/stats.h"
+#include "util/rand.h"
+#include "util/rng.h"
+#include "util/strings.h"
 
 /* attributes includes */
-#include <attributes/hate.h>
-#include <attributes/otherfaction.h>
-#include <attributes/stealth.h>
-#include <attributes/targetregion.h>
+#include "attributes/hate.h"
+#include "attributes/otherfaction.h"
+#include "attributes/stealth.h"
+#include "attributes/targetregion.h"
 
-#include <spells/regioncurse.h>
+#include "spells/regioncurse.h"
 
 #include <selist.h>
 
diff --git a/src/randenc.c b/src/randenc.c
index 5464f0063..56e53832e 100644
--- a/src/randenc.c
+++ b/src/randenc.c
@@ -1,7 +1,3 @@
-#ifdef _MSC_VER
-#include <platform.h>
-#endif
-
 #include "randenc.h"
 
 #include "chaos.h"
@@ -41,7 +37,7 @@
 #include "kernel/attrib.h"
 #include "util/language.h"
 #include "util/lists.h"
-#include "util/log.h"
+#include "util/stats.h"
 #include "util/rand.h"
 #include "util/message.h"
 #include "util/rng.h"
diff --git a/src/teleport.c b/src/teleport.c
index 067764946..486b7bd34 100644
--- a/src/teleport.c
+++ b/src/teleport.c
@@ -1,19 +1,19 @@
-#include <platform.h>
-#include <kernel/config.h>
 #include "teleport.h"
 
 /* kernel includes */
-#include <kernel/equipment.h>
-#include <kernel/unit.h>
-#include <kernel/region.h>
-#include <kernel/race.h>
-#include <kernel/terrain.h>
-#include <kernel/faction.h>
-#include <kernel/plane.h>
+#include "kernel/config.h"
+#include "kernel/equipment.h"
+#include "kernel/unit.h"
+#include "kernel/region.h"
+#include "kernel/race.h"
+#include "kernel/terrain.h"
+#include "kernel/faction.h"
+#include "kernel/plane.h"
 
 /* util includes */
-#include <util/log.h>
-#include <util/rng.h>
+#include "util/log.h"
+#include "util/stats.h"
+#include "util/rng.h"
 
 #include "skill.h"
 #include "monsters.h"
diff --git a/src/test_eressea.c b/src/test_eressea.c
index 452b847c5..b644bc771 100644
--- a/src/test_eressea.c
+++ b/src/test_eressea.c
@@ -1,14 +1,15 @@
-#include <platform.h>
-#include <eressea.h>
-#include <kernel/config.h>
+#include "eressea.h"
+#include "kernel/config.h"
+#include "util/log.h"
+#include "util/stats.h"
+#include "util/password.h"
+#include "util/strings.h"
+#include "util/variant.h"
+
 #include <CuTest.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <util/log.h>
-#include <util/password.h>
-#include <util/strings.h>
-#include <util/variant.h>
 
 #pragma warning(disable: 4210)
 
diff --git a/src/tests.c b/src/tests.c
index 9739591c8..7972b3adb 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -10,33 +10,34 @@
 #include "kernel/callbacks.h"
 #include "kernel/config.h"
 #include "kernel/alliance.h"
-#include <kernel/equipment.h>
-#include <kernel/messages.h>
-#include <kernel/plane.h>
-#include <kernel/region.h>
-#include <kernel/terrain.h>
-#include <kernel/terrainid.h>
-#include <kernel/item.h>
-#include <kernel/unit.h>
-#include <kernel/order.h>
-#include <kernel/race.h>
-#include <kernel/faction.h>
-#include <kernel/building.h>
-#include <kernel/ship.h>
-#include <kernel/spell.h>
-#include <kernel/spellbook.h>
-#include <kernel/terrain.h>
+#include "kernel/equipment.h"
+#include "kernel/messages.h"
+#include "kernel/plane.h"
+#include "kernel/region.h"
+#include "kernel/terrain.h"
+#include "kernel/terrainid.h"
+#include "kernel/item.h"
+#include "kernel/unit.h"
+#include "kernel/order.h"
+#include "kernel/race.h"
+#include "kernel/faction.h"
+#include "kernel/building.h"
+#include "kernel/ship.h"
+#include "kernel/spell.h"
+#include "kernel/spellbook.h"
+#include "kernel/terrain.h"
 
-#include <util/aliases.h>
-#include <util/functions.h>
-#include <util/keyword.h>
-#include <util/language.h>
-#include <util/lists.h>
-#include <util/message.h>
-#include <util/log.h>
-#include <util/param.h>
-#include <util/rand.h>
-#include <util/assert.h>
+#include "util/aliases.h"
+#include "util/functions.h"
+#include "util/keyword.h"
+#include "util/language.h"
+#include "util/lists.h"
+#include "util/message.h"
+#include "util/log.h"
+#include "util/stats.h"
+#include "util/param.h"
+#include "util/rand.h"
+#include "util/assert.h"
 
 #include <CuTest.h>
 
diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt
index 5a0b57e6b..261086307 100644
--- a/src/util/CMakeLists.txt
+++ b/src/util/CMakeLists.txt
@@ -13,6 +13,7 @@ keyword.test.c
 language.test.c
 # lists.test.c
 # log.test.c
+# stats.test.c
 message.test.c
 # nrmessage.test.c
 order_parser.test.c
@@ -42,6 +43,7 @@ keyword.c
 language.c
 lists.c
 log.c
+stats.c
 message.c
 mt19937ar.c
 nrmessage.c
diff --git a/src/util/log.c b/src/util/log.c
index 47bf09320..2d91240bb 100644
--- a/src/util/log.c
+++ b/src/util/log.c
@@ -1,4 +1,3 @@
-#include <platform.h>
 #include "log.h"
 
 #include "path.h"
@@ -181,6 +180,7 @@ static void log_stdio(void *data, int level, const char *module, const char *for
     const char *prefix = log_prefix(level);
     size_t len = strlen(format);
 
+    (void)module;
     fprintf(out, "%s: ", prefix);
 
     _log_write(out, codepage, format, args);
@@ -208,6 +208,9 @@ static void vlog(log_t *lg, int level, const char *format, va_list args) {
 
 static void log_write(int flags, const char *module, const char *format, va_list args) {
     log_t *lg;
+
+    (void)module;
+
     for (lg = loggers; lg; lg = lg->next) {
         int level = flags & LOG_LEVELS;
         if (lg->flags & level) {
@@ -263,14 +266,6 @@ void log_info(const char *format, ...)
     va_end(args);
 }
 
-void log_printf(FILE * io, const char *format, ...)
-{
-    va_list args;
-    va_start(args, format);
-    log_write(LOG_CPINFO, NULL, format, args);
-    va_end(args);
-}
-
 static FILE *logfile;
 
 void log_close(void)
@@ -309,77 +304,3 @@ int log_level(log_t * log, int flags)
     log->flags = flags;
     return old;
 }
-
-static critbit_tree stats = CRITBIT_TREE();
-
-int stats_count(const char *stat, int delta) {
-    void * match;
-    if (cb_find_prefix_str(&stats, stat, &match, 1, 0) == 0) {
-        size_t len;
-        char data[128];
-        len = cb_new_kv(stat, strlen(stat), &delta, sizeof(delta), data);
-        cb_insert(&stats, data, len);
-        return delta;
-    }
-    else {
-        int *num;
-        cb_get_kv_ex(match, (void **)&num);
-        return *num += delta;
-    }
-}
-
-#if 0
-#define STATS_BATCH 8
-void stats_walk(const char *prefix, void(*callback)(const char *, int, void *), void *udata) {
-    void *match[STATS_BATCH];
-    int n, off = 0;
-    do {
-        int i;
-        n = cb_find_prefix_str(&stats, prefix, match, STATS_BATCH, off);
-        if (n == 0) {
-            break;
-        }
-        off += n;
-        for (i = 0; i != n; ++i) {
-            const void *kv = match[i];
-            int *num;
-            cb_get_kv_ex(kv, &(void *)num);
-            callback(kv, *num, udata);
-        }
-    } while (n == STATS_BATCH);
-}
-#else
-
-struct walk_data {
-    int (*callback)(const char *, int, void *);
-    void *udata;
-};
-
-static int walk_cb(void * match, const void * key, size_t keylen, void *udata) {
-    struct walk_data *data = (struct walk_data *)udata;
-    int *num;
-    cb_get_kv_ex(match, (void **)&num);
-    return data->callback((const char*)match, *num, data->udata);
-}
-
-int stats_walk(const char *prefix, int (*callback)(const char *, int, void *), void *udata) {
-    struct walk_data data;
-    data.callback = callback;
-    data.udata = udata;
-    return cb_foreach(&stats, prefix, strlen(prefix), walk_cb, &data);
-}
-#endif
-
-static int write_cb(const char *key, int val, void *udata) {
-    FILE * F = (FILE *)udata;
-    fprintf(F, "%s: %d\n", (const char *)key, val);
-    return 0;
-}
-
-void stats_write(FILE *F, const char *prefix) {
-    stats_walk(prefix, write_cb, F);
-}
-
-void stats_close(void) {
-    cb_clear(&stats);
-}
diff --git a/src/util/log.h b/src/util/log.h
index ce254c406..7d8b2634b 100644
--- a/src/util/log.h
+++ b/src/util/log.h
@@ -1,11 +1,20 @@
-#ifndef H_UTIL_LOG
-#define H_UTIL_LOG
+#pragma once
 #ifdef __cplusplus
 extern "C" {
 #endif
 #include <stdio.h>
 #include <stdarg.h>
 
+#define LOG_CPERROR    0x01
+#define LOG_CPWARNING  0x02
+#define LOG_CPINFO     0x04
+#define LOG_CPDEBUG    0x08
+#define LOG_LEVELS     0x0F
+#define LOG_FLUSH      0x10
+#define LOG_BRIEF      0x20
+
+#define ERRNO_CHECK() errno_check(__FILE__, __LINE__)
+
     struct log_t;
 
     typedef void(*log_fun)(void *data, int level, const char *module, const char *format, va_list args);
@@ -22,29 +31,10 @@ extern "C" {
     void log_warning(const char *format, ...);
     void log_debug(const char *format, ...);
     void log_info(const char *format, ...);
-    void log_printf(FILE * ios, const char *format, ...);
 
     void errno_check(const char *file, int line);
 
-    int stats_count(const char *stat, int delta);
-    void stats_write(FILE *F, const char *prefix);
-    int stats_walk(const char *prefix, int (*callback)(const char *key, int val, void * udata), void *udata);
-    void stats_close(void);
-
-#define ERRNO_CHECK() errno_check(__FILE__, __LINE__)
-
-    
-#define LOG_CPERROR    0x01
-#define LOG_CPWARNING  0x02
-#define LOG_CPINFO     0x04
-#define LOG_CPDEBUG    0x08
-#define LOG_LEVELS     0x0F
-#define LOG_FLUSH      0x10
-#define LOG_BRIEF      0x20
-
-
     extern int log_stderr;
 #ifdef __cplusplus
 }
 #endif
-#endif
diff --git a/src/util/log.test.c b/src/util/log.test.c
index 928ba5660..527776d4b 100644
--- a/src/util/log.test.c
+++ b/src/util/log.test.c
@@ -3,6 +3,7 @@
 #endif
 
 #include "log.h"
+#include "stats.h"
 #include "macros.h"
 
 #include <CuTest.h>
diff --git a/src/util/stats.c b/src/util/stats.c
new file mode 100644
index 000000000..c203907ec
--- /dev/null
+++ b/src/util/stats.c
@@ -0,0 +1,70 @@
+#include "log.h"
+
+#include "path.h"
+#include "strings.h"
+#include "unicode.h"
+
+#include <critbit.h>
+
+#include <assert.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <stdarg.h>
+#include <time.h>
+
+static critbit_tree stats = CRITBIT_TREE();
+
+int stats_count(const char* stat, int delta) {
+    void* match;
+    if (cb_find_prefix_str(&stats, stat, &match, 1, 0) == 0) {
+        size_t len;
+        char data[128];
+        len = cb_new_kv(stat, strlen(stat), &delta, sizeof(delta), data);
+        cb_insert(&stats, data, len);
+        return delta;
+    }
+    else {
+        int* num;
+        cb_get_kv_ex(match, (void**)&num);
+        return *num += delta;
+    }
+}
+
+struct walk_data {
+    int (*callback)(const char*, int, void*);
+    void* udata;
+};
+
+static int walk_cb(void* match, const void* key, size_t keylen, void* udata) {
+    struct walk_data* data = (struct walk_data*)udata;
+    int* num;
+
+    (void)key;
+    (void)keylen;
+    cb_get_kv_ex(match, (void**)&num);
+    return data->callback((const char*)match, *num, data->udata);
+}
+
+int stats_walk(const char* prefix, int (*callback)(const char*, int, void*), void* udata) {
+    struct walk_data data;
+    data.callback = callback;
+    data.udata = udata;
+    return cb_foreach(&stats, prefix, strlen(prefix), walk_cb, &data);
+}
+
+static int write_cb(const char* key, int val, void* udata) {
+    FILE* F = (FILE*)udata;
+    fprintf(F, "%s: %d\n", (const char*)key, val);
+    return 0;
+}
+
+void stats_write(FILE* F, const char* prefix) {
+    stats_walk(prefix, write_cb, F);
+}
+
+void stats_close(void) {
+    cb_clear(&stats);
+}
diff --git a/src/util/stats.h b/src/util/stats.h
new file mode 100644
index 000000000..d1a574d00
--- /dev/null
+++ b/src/util/stats.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include <stdio.h>
+
+    int stats_count(const char *stat, int delta);
+    void stats_write(FILE *F, const char *prefix);
+    int stats_walk(const char *prefix, int (*callback)(const char *key, int val, void * udata), void *udata);
+    void stats_close(void);
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/tolua b/tolua
index 8a658c005..c36200dae 160000
--- a/tolua
+++ b/tolua
@@ -1 +1 @@
-Subproject commit 8a658c00574f2e4889f2631be167b597b6f087e7
+Subproject commit c36200dae924ffb6eab89b802801d807ff96bfd0

From e156a65779e3034aeb06e9cd180319f0c3eac98b Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 18:51:57 +0100
Subject: [PATCH 40/78] fix the inifile cli editor

---
 CMakeLists.txt                 |  1 +
 s/travis-build                 |  2 +-
 src/util/base36.c              |  3 +--
 tools/CMakeLists.txt           | 11 +++++++++++
 {src/tools => tools}/atoi36.c  |  0
 {src/tools => tools}/gethash.c |  0
 {src/tools => tools}/inifile.c |  0
 {src/tools => tools}/namegen.c |  0
 8 files changed, 14 insertions(+), 3 deletions(-)
 create mode 100644 tools/CMakeLists.txt
 rename {src/tools => tools}/atoi36.c (100%)
 rename {src/tools => tools}/gethash.c (100%)
 rename {src/tools => tools}/inifile.c (100%)
 rename {src/tools => tools}/namegen.c (100%)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index eae4f2a88..6458e7b5a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,7 @@ endif(TOLUA_FOUND)
 enable_testing()
 
 add_subdirectory (tolua)
+add_subdirectory (tools)
 add_subdirectory (storage)
 add_subdirectory (clibs)
 add_subdirectory (process)
diff --git a/s/travis-build b/s/travis-build
index 7bbfbe85a..e326d7b10 100755
--- a/s/travis-build
+++ b/s/travis-build
@@ -6,7 +6,7 @@ inifile() {
 cd $ROOT
 if [ ! -e eressea.ini ]; then
 cp conf/eressea.ini .
-$BUILD/iniparser/inifile eressea.ini add lua:paths lunit:scripts
+$BUILD/tools/inifile eressea.ini add lua:paths lunit:scripts
 fi
 }
 
diff --git a/src/util/base36.c b/src/util/base36.c
index 85f2cc80d..edec82f62 100644
--- a/src/util/base36.c
+++ b/src/util/base36.c
@@ -1,10 +1,9 @@
-#include <platform.h>
 #include "base36.h"
 #include "log.h"
 
+#include <assert.h>
 #include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 #include <ctype.h>
 
 #define USE_STRTOL
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100644
index 000000000..75746be2c
--- /dev/null
+++ b/tools/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 2.9)
+project (tools C)
+
+add_executable(inifile inifile.c)
+target_link_libraries(inifile ${IniParser_LIBRARIES})
+target_include_directories (inifile PRIVATE ${IniParser_INCLUDE_DIRS})
+
+add_executable(gethash gethash.c)
+
+add_executable(atoi36 atoi36.c ${CMAKE_SOURCE_DIR}/src/util/base36.c)
+target_include_directories(atoi36 PRIVATE ${CMAKE_SOURCE_DIR}/src/util)
diff --git a/src/tools/atoi36.c b/tools/atoi36.c
similarity index 100%
rename from src/tools/atoi36.c
rename to tools/atoi36.c
diff --git a/src/tools/gethash.c b/tools/gethash.c
similarity index 100%
rename from src/tools/gethash.c
rename to tools/gethash.c
diff --git a/src/tools/inifile.c b/tools/inifile.c
similarity index 100%
rename from src/tools/inifile.c
rename to tools/inifile.c
diff --git a/src/tools/namegen.c b/tools/namegen.c
similarity index 100%
rename from src/tools/namegen.c
rename to tools/namegen.c

From c8d03c9ea3dac6173fb91e31000896a5b0f3472b Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 20:47:12 +0100
Subject: [PATCH 41/78] fix inifile and tolua builds

remove our custom assert header
---
 src/battle.c           | 4 ++--
 src/kernel/region.c    | 5 ++---
 src/kernel/save.c      | 1 -
 src/move.c             | 6 +++---
 src/spells.c           | 4 ++--
 src/tests.c            | 6 +++---
 src/util/assert.h      | 7 -------
 src/util/base36.c      | 4 ++--
 src/util/language.c    | 2 +-
 src/util/log.c         | 2 --
 src/util/translation.c | 4 ++--
 src/util/umlaut.c      | 2 +-
 tolua                  | 2 +-
 tools/CMakeLists.txt   | 5 ++++-
 14 files changed, 23 insertions(+), 31 deletions(-)
 delete mode 100644 src/util/assert.h

diff --git a/src/battle.c b/src/battle.c
index ff0544442..0d153e525 100644
--- a/src/battle.c
+++ b/src/battle.c
@@ -44,7 +44,6 @@
 #include "attributes/otherfaction.h"
 
 /* util includes */
-#include "util/assert.h"
 #include "kernel/attrib.h"
 #include "util/base36.h"
 #include "util/language.h"
@@ -60,6 +59,7 @@
 #include <selist.h>
 
 /* libc includes */
+#include <assert.h>
 #include <ctype.h>
 #include <limits.h>
 #include <math.h>
@@ -194,7 +194,7 @@ void battle_message_faction(battle * b, faction * f, struct message *m)
     assert(f);
     if (f->battles == NULL || f->battles->r != r) {
         struct bmsg *bm = (struct bmsg *)calloc(1, sizeof(struct bmsg));
-        assert_alloc(bm);
+        assert(bm);
         bm->next = f->battles;
         f->battles = bm;
         bm->r = r;
diff --git a/src/kernel/region.c b/src/kernel/region.c
index a3681158e..6fade14fc 100644
--- a/src/kernel/region.c
+++ b/src/kernel/region.c
@@ -26,7 +26,6 @@
 #include <spells/regioncurse.h>
 
 /* util includes */
-#include <util/assert.h>
 #include <kernel/attrib.h>
 #include <kernel/gamedata.h>
 #include <util/strings.h>
@@ -698,7 +697,7 @@ void r_setdemand(region * r, const luxury_type * ltype, int value)
     d = *dp;
     if (!d) {
         d = *dp = malloc(sizeof(struct demand));
-        assert_alloc(d);
+        assert(d);
         d->next = NULL;
         d->type = ltype;
     }
@@ -763,7 +762,7 @@ int rsettrees(const region * r, int ageclass, int value)
 region *region_create(int uid)
 {
     region *r = (region *)calloc(1, sizeof(region));
-    assert_alloc(r);
+    assert(r);
     r->uid = uid;
     rhash_uid(r);
     return r;
diff --git a/src/kernel/save.c b/src/kernel/save.c
index 6a55aeb36..f83a87ef8 100644
--- a/src/kernel/save.c
+++ b/src/kernel/save.c
@@ -40,7 +40,6 @@
 #include <triggers/shock.h>
 
 /* util includes */
-#include <util/assert.h>
 #include <kernel/attrib.h>
 #include <util/base36.h>
 #include <kernel/event.h>
diff --git a/src/move.c b/src/move.c
index 0da6e17e0..68b5a4118 100644
--- a/src/move.c
+++ b/src/move.c
@@ -55,7 +55,6 @@
 #include "skill.h"
 
 /* util includes */
-#include <util/assert.h>
 #include <util/base36.h>
 #include <util/language.h>
 #include <util/lists.h>
@@ -70,6 +69,7 @@
 #include <storage.h>
 
 /* libc includes */
+#include <assert.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -112,7 +112,7 @@ get_followers(unit * u, region * r, const region_list * route_end,
             while (a) {
                 if (a->data.v == u) {
                     follower *fnew = (follower *)malloc(sizeof(follower));
-                    assert_alloc(fnew);
+                    assert(fnew);
                     fnew->uf = uf;
                     fnew->ut = u;
                     fnew->route_end = route_end;
@@ -1483,7 +1483,7 @@ static void var_create_regions(arg_regions *dst, const region_list * begin, int
     assert(size > 0);
     dst->nregions = size;
     dst->regions = (region **) malloc(sizeof(region *) * (size_t)size);
-    assert_alloc(dst->regions);
+    assert(dst->regions);
     for (i = 0, rsrc = begin; i != size; rsrc = rsrc->next, ++i) {
         dst->regions[i] = rsrc->data;
     }
diff --git a/src/spells.c b/src/spells.c
index 0433eefa2..e5f1a3b53 100644
--- a/src/spells.c
+++ b/src/spells.c
@@ -57,7 +57,6 @@
 #include <kernel/unit.h>
 
 /* util includes */
-#include <util/assert.h>
 #include <kernel/attrib.h>
 #include <util/base36.h>
 #include <kernel/event.h>
@@ -81,6 +80,7 @@
 #include <storage.h>
 
 /* libc includes */
+#include <assert.h>
 #include <ctype.h>
 #include <math.h>
 #include <stdio.h>
@@ -1269,7 +1269,7 @@ add_ironweapon(const struct item_type *type, const struct item_type *rusty,
     float chance)
 {
     iron_weapon *iweapon = malloc(sizeof(iron_weapon));
-    assert_alloc(iweapon);
+    assert(iweapon);
     iweapon->type = type;
     iweapon->rusty = rusty;
     iweapon->chance = chance;
diff --git a/src/tests.c b/src/tests.c
index 7972b3adb..24d742c9d 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -37,10 +37,10 @@
 #include "util/stats.h"
 #include "util/param.h"
 #include "util/rand.h"
-#include "util/assert.h"
 
 #include <CuTest.h>
 
+#include <assert.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
@@ -367,7 +367,7 @@ ship_type * test_create_shiptype(const char * name)
     stype->damage = 1;
     if (!stype->construction) {
         stype->construction = calloc(1, sizeof(construction));
-        assert_alloc(stype->construction);
+        assert(stype->construction);
         stype->construction->maxsize = 5;
         stype->construction->minskill = 1;
         stype->construction->reqsize = 1;
@@ -448,7 +448,7 @@ spell * test_create_spell(void)
     sp = create_spell("testspell");
 
     sp->components = (spell_component *)calloc(4, sizeof(spell_component));
-    assert_alloc(sp->components);
+    assert(sp->components);
     sp->components[0].amount = 1;
     sp->components[0].type = get_resourcetype(R_SILVER);
     sp->components[0].cost = SPC_FIX;
diff --git a/src/util/assert.h b/src/util/assert.h
deleted file mode 100644
index 79abce73e..000000000
--- a/src/util/assert.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef UTIL_ASSERT_H
-#define UTIL_ASSERT_H
-
-#include <assert.h>
-
-#define assert_alloc(expr) assert((expr) || !"out of memory")
-#endif
diff --git a/src/util/base36.c b/src/util/base36.c
index edec82f62..dd5c55c79 100644
--- a/src/util/base36.c
+++ b/src/util/base36.c
@@ -1,7 +1,7 @@
 #include "base36.h"
-#include "log.h"
 
 #include <assert.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
@@ -78,7 +78,7 @@ const char *itoab_r(int i, int base, char *s, size_t len)
             }
         }
         else {
-            log_error("static buffer exhausted, itoab(%d, %d)", i, base);
+            fprintf(stderr, "static buffer exhausted, itoab(%d, %d)", i, base);
             assert(i == 0 || !"itoab: static buffer exhausted");
         }
     }
diff --git a/src/util/language.c b/src/util/language.c
index 72e7f84f3..131b7078e 100644
--- a/src/util/language.c
+++ b/src/util/language.c
@@ -66,7 +66,7 @@ locale *get_or_create_locale(const char *name)
         }
     }
     *lp = l = (locale *)calloc(1, sizeof(locale));
-    assert_alloc(l);
+    assert(l);
     l->hashkey = hkey;
     l->name = str_strdup(name);
     l->index = nextlocaleindex++;
diff --git a/src/util/log.c b/src/util/log.c
index 2d91240bb..e8cf0e2fe 100644
--- a/src/util/log.c
+++ b/src/util/log.c
@@ -4,8 +4,6 @@
 #include "strings.h"
 #include "unicode.h"
 
-#include <critbit.h>
-
 #include <assert.h>
 #include <errno.h>
 #include <limits.h>
diff --git a/src/util/translation.c b/src/util/translation.c
index 3d794d920..89d83cd24 100644
--- a/src/util/translation.c
+++ b/src/util/translation.c
@@ -41,7 +41,7 @@ void opstack_push(opstack ** stackp, variant data)
     opstack *stack = *stackp;
     if (stack == NULL) {
         stack = (opstack *)malloc(sizeof(opstack));
-        assert_alloc(stack);
+        assert(stack);
         stack->size = 2;
         stack->begin = malloc(sizeof(variant) * stack->size);
         stack->top = stack->begin;
@@ -52,7 +52,7 @@ void opstack_push(opstack ** stackp, variant data)
         void *tmp;
         stack->size += stack->size;
         tmp = realloc(stack->begin, sizeof(variant) * stack->size);
-        assert_alloc(tmp);
+        assert(tmp);
         stack->begin = (variant *)tmp;
         stack->top = stack->begin + pos;
     }
diff --git a/src/util/umlaut.c b/src/util/umlaut.c
index 46e901994..0943e0485 100644
--- a/src/util/umlaut.c
+++ b/src/util/umlaut.c
@@ -176,7 +176,7 @@ void addtoken(tnode ** root, const char *str, variant id)
                 index = lcs % NODEHASHSIZE;
 #endif
                 ref = (tref *)malloc(sizeof(tref));
-                assert_alloc(ref);
+                assert(ref);
                 ref->wc = lcs;
                 ref->node = node;
                 ++node->refcount;
diff --git a/tolua b/tolua
index c36200dae..99ac2e060 160000
--- a/tolua
+++ b/tolua
@@ -1 +1 @@
-Subproject commit c36200dae924ffb6eab89b802801d807ff96bfd0
+Subproject commit 99ac2e060f32e92f378652a2a249f7e535232671
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 75746be2c..3f60ba3ee 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -7,5 +7,8 @@ target_include_directories (inifile PRIVATE ${IniParser_INCLUDE_DIRS})
 
 add_executable(gethash gethash.c)
 
-add_executable(atoi36 atoi36.c ${CMAKE_SOURCE_DIR}/src/util/base36.c)
+add_executable(atoi36
+  atoi36.c
+  ${CMAKE_SOURCE_DIR}/src/util/base36.c
+  )
 target_include_directories(atoi36 PRIVATE ${CMAKE_SOURCE_DIR}/src/util)

From b63d5e31ac4c943b0ea65551314c59b71be38cae Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 14 Feb 2021 20:56:27 +0100
Subject: [PATCH 42/78] tolua update again

---
 src/CMakeLists.txt | 2 --
 tolua              | 2 +-
 tools/inifile.c    | 1 +
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 398452769..fe90f7822 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -73,7 +73,6 @@ MACRO(TOLUA_BINDING PKGFILE FILES)
   )
 ENDMACRO(TOLUA_BINDING)
 
-IF(NOT MSVC)
 TOLUA_BINDING(log.pkg util/log.h)
 TOLUA_BINDING(locale.pkg bind_locale.h)
 TOLUA_BINDING(config.pkg bind_config.h)
@@ -81,7 +80,6 @@ TOLUA_BINDING(process.pkg bind_process.h)
 TOLUA_BINDING(game.pkg bind_eressea.h config.h)
 TOLUA_BINDING(eressea.pkg bind_eressea.h)
 TOLUA_BINDING(settings.pkg kenel/config.h)
-ENDIF()
 
 set (PARSER_SRC
   ${DB_SRC}
diff --git a/tolua b/tolua
index 99ac2e060..a3dec42d3 160000
--- a/tolua
+++ b/tolua
@@ -1 +1 @@
-Subproject commit 99ac2e060f32e92f378652a2a249f7e535232671
+Subproject commit a3dec42d329dabcfe0a19c9bba506f7074883dba
diff --git a/tools/inifile.c b/tools/inifile.c
index e8db63740..357f1dc7f 100644
--- a/tools/inifile.c
+++ b/tools/inifile.c
@@ -1,3 +1,4 @@
+#define _CRT_SECURE_NO_WARNINGS
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>

From a17191eb56b0acc3ee6c8b8ffcbef5b2f9f254d4 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno.rehling@gmail.com>
Date: Mon, 15 Feb 2021 11:32:22 +0100
Subject: [PATCH 43/78] remove remainder of custom tolua build

---
 s/cmake-init | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/s/cmake-init b/s/cmake-init
index d119b148e..d17964829 100755
--- a/s/cmake-init
+++ b/s/cmake-init
@@ -109,29 +109,6 @@ SET (CMAKE_LIBRARY_PATH "$LIBRARY_PATH" CACHE PATH "")
 SET (CMAKE_PREFIX_PATH "$PREFIX_PATH" CACHE PATH "")
 HEREDOC
 
-path="$(which tolua)"
-if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
-echo "tolua is not installed, building from source"
-cd $ROOT
-if [ ! -d tolua/include ]; then
- echo "fetching tolua from github..."
- git clone https://github.com/ennorehling/tolua.git tolua
- cd tolua
-else
- cd tolua
- git pull --rebase
-fi
-echo "building tolua..."
-make
-cd -
-cat >> $BUILD/config.cmake <<TOLUA
-SET(PC_TOLUA_DIR "$ROOT/tolua" CACHE PATH "tolua root")
-TOLUA
-else
- echo "tolua is $path"
-fi
-unset path
-
 set -e
 
 cd $BIN_DIR

From ec645010fa7c3037b2a7669ae90469ac25ab9e7a Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 15 Feb 2021 19:41:28 +0100
Subject: [PATCH 44/78] update changelog

---
 CHANGELOG.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index d54dcb31b..c5192b6ab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# 3.27
+
+  - Schiffe sind kommentarlos nicht nicht gesegelt [2722]
+  - Meermenschen konnten nicht mehr anschwimmen [2723]
+  - Magieresistenz repariert [2724]
+  - Kleine Änderung an Samenwachstum.
+  - Umstellung auf neue Versionen von externen Libraries.
 
 # 3.26
 

From 74f60760221a23139befe15621a8deac3b1c9300 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 15 Feb 2021 19:49:25 +0100
Subject: [PATCH 45/78] add lunitx module for systems without luarocks. add
 LUA_PATH to runtests.bat

---
 share/lua/5.4/lunit.lua         | 759 ++++++++++++++++++++++++++++++++
 share/lua/5.4/lunit/console.lua | 145 ++++++
 share/lua/5.4/lunitx.lua        |  21 +
 share/lua/5.4/lunitx/atexit.lua |  32 ++
 tests/runtests.bat              |   2 +
 5 files changed, 959 insertions(+)
 create mode 100644 share/lua/5.4/lunit.lua
 create mode 100644 share/lua/5.4/lunit/console.lua
 create mode 100644 share/lua/5.4/lunitx.lua
 create mode 100644 share/lua/5.4/lunitx/atexit.lua

diff --git a/share/lua/5.4/lunit.lua b/share/lua/5.4/lunit.lua
new file mode 100644
index 000000000..c9740c866
--- /dev/null
+++ b/share/lua/5.4/lunit.lua
@@ -0,0 +1,759 @@
+--[[--------------------------------------------------------------------------
+
+    This file is part of lunitx.
+
+    For Details about lunit look at: http://www.mroth.net/lunit/
+    For Details about lunitx look at: https://github.com/dcurrie/lunit
+
+    Author: Michael Roth <mroth@nessie.de>
+
+    Copyright (c) 2004, 2006-2010 Michael Roth <mroth@nessie.de>
+    Copyright (c) 2011-2012 Doug Currie
+
+    Permission is hereby granted, free of charge, to any person
+    obtaining a copy of this software and associated documentation
+    files (the "Software"), to deal in the Software without restriction,
+    including without limitation the rights to use, copy, modify, merge,
+    publish, distribute, sublicense, and/or sell copies of the Software,
+    and to permit persons to whom the Software is furnished to do so,
+    subject to the following conditions:
+
+    The above copyright notice and this permission notice shall be
+    included in all copies or substantial portions of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+--]]--------------------------------------------------------------------------
+
+
+local orig_assert     = assert
+
+local pairs           = pairs
+local ipairs          = ipairs
+local next            = next
+local type            = type
+local error           = error
+local tostring        = tostring
+local setmetatable    = setmetatable
+local pcall           = pcall
+local xpcall          = xpcall
+local require         = require
+local loadfile        = loadfile
+
+local string_sub      = string.sub
+local string_gsub     = string.gsub
+local string_format   = string.format
+local string_lower    = string.lower
+local string_find     = string.find
+
+local table_concat    = table.concat
+
+local debug_getinfo   = debug.getinfo
+local package         = require "package"
+local setfenv         = setfenv
+
+local _G = _G
+
+local IS_LUA52 = _VERSION >= 'Lua 5.2'
+
+local lunit
+
+local module = _G.module
+
+local function TEST_CASE(name)
+  if not IS_LUA52 then
+    module(name, package.seeall, lunit.testcase)
+    setfenv(2, _M)
+    return _M
+  else
+    return lunit.module(name, 'seeall')
+  end
+end
+
+if IS_LUA52 then
+
+    lunit = {}
+    _ENV = lunit
+
+else
+
+    module("lunit")
+    lunit = _M
+
+end
+
+lunit.TEST_CASE = TEST_CASE
+
+local __failure__ = {}    -- Type tag for failed assertions
+local __skip__    = {}    -- Type tag for skipped tests
+
+local typenames = { "nil", "boolean", "number", "string", "table", "function", "thread", "userdata" }
+
+
+local traceback_hide      -- Traceback function which hides lunit internals
+local mypcall             -- Protected call to a function with own traceback
+do
+  local _tb_hide = setmetatable( {}, {__mode="k"} )
+
+  function traceback_hide(func)
+    _tb_hide[func] = true
+  end
+
+  local function my_traceback(errobj)
+    if is_table(errobj) and ((errobj.type == __failure__) or (errobj.type == __skip__)) then
+      local info = debug_getinfo(5, "Sl")   -- FIXME: Hardcoded integers are bad...
+      errobj.where = string_format( "%s:%d", info.short_src, info.currentline)
+    else
+      errobj = { msg = tostring(errobj) }
+      errobj.tb = {}
+      local i = 2
+      while true do
+        local info = debug_getinfo(i, "Snlf")
+        if not is_table(info) then
+          break
+        end
+        if not _tb_hide[info.func] then
+          local line = {}       -- Ripped from ldblib.c...
+          line[#line+1] = string_format("%s:", info.short_src)
+          if info.currentline > 0 then
+            line[#line+1] = string_format("%d:", info.currentline)
+          end
+          if info.namewhat ~= "" then
+            line[#line+1] = string_format(" in function '%s'", info.name)
+          else
+            if info.what == "main" then
+              line[#line+1] = " in main chunk"
+            elseif info.what == "C" or info.what == "tail" then
+              line[#line+1] = " ?"
+            else
+              line[#line+1] = string_format(" in function <%s:%d>", info.short_src, info.linedefined)
+            end
+          end
+          errobj.tb[#errobj.tb+1] = table_concat(line)
+        end
+        i = i + 1
+      end
+    end
+    return errobj
+  end
+
+  function mypcall(func)
+    orig_assert( is_function(func) )
+    local ok, errobj = xpcall(func, my_traceback)
+    if not ok then
+      return errobj
+    end
+  end
+  traceback_hide(mypcall)
+end
+
+
+-- Type check functions
+
+for _, typename in ipairs(typenames) do
+  lunit["is_"..typename] = function(x)
+    return type(x) == typename
+  end
+end
+
+local is_nil      = is_nil
+local is_boolean  = is_boolean
+local is_number   = is_number
+local is_string   = is_string
+local is_table    = is_table
+local is_function = is_function
+local is_thread   = is_thread
+local is_userdata = is_userdata
+
+
+local function failure(name, usermsg, defaultmsg, ...)
+  if usermsg then usermsg = tostring(usermsg) end
+  local errobj = {
+    type    = __failure__,
+    name    = name,
+    msg     = string_format(defaultmsg,...),
+    usermsg = usermsg
+  }
+  error(errobj, 0)
+end
+traceback_hide( failure )
+
+local function _skip(name, usermsg, defaultmsg, ...)
+  if usermsg then usermsg = tostring(usermsg) end
+  local errobj = {
+    type    = __skip__,
+    name    = name,
+    msg     = string_format(defaultmsg,...),
+    usermsg = usermsg
+  }
+  error(errobj, 0)
+end
+traceback_hide( _skip )
+
+
+local function format_arg(arg)
+  local argtype = type(arg)
+  if argtype == "string" then
+    return "'"..arg.."'"
+  elseif argtype == "number" or argtype == "boolean" or argtype == "nil" then
+    return tostring(arg)
+  else
+    return "["..tostring(arg).."]"
+  end
+end
+
+
+local selected
+do
+  local conv = {
+    ["^"] = "%^",
+    ["$"] = "%$",
+    ["("] = "%(",
+    [")"] = "%)",
+    ["%"] = "%%",
+    ["."] = "%.",
+    ["["] = "%[",
+    ["]"] = "%]",
+    ["+"] = "%+",
+    ["-"] = "%-",
+    ["?"] = ".",
+    ["*"] = ".*"
+  }
+
+  local function lunitpat2luapat(str)
+    --return "^" .. string.gsub(str, "%W", conv) .. "$"
+    -- Above was very annoying, if I want to run all the tests having to do with
+    -- RSS, I want to be able to do "-t rss"   not "-t \*rss\*".
+    return string_gsub(str, "%W", conv)
+  end
+
+  local function in_patternmap(map, name)
+    if map[name] == true then
+      return true
+    else
+      for _, pat in ipairs(map) do
+        if string_find(name, pat) then
+          return true
+        end
+      end
+    end
+    return false
+  end
+
+  selected = function (map, name)
+    if not map then
+      return true
+    end
+
+    local m = {}
+    for k,v in pairs(map) do
+      m[k] = lunitpat2luapat(v)
+    end
+    return in_patternmap(m, name)
+  end
+end
+
+
+function fail(msg)
+  stats.assertions = stats.assertions + 1
+  failure( "fail", msg, "failure" )
+end
+traceback_hide( fail )
+
+
+function skip(msg)
+  stats.assertions = stats.assertions + 1
+  _skip( "skip", msg, "skip" )
+end
+traceback_hide( skip )
+
+
+function assert(assertion, ...)
+  stats.assertions = stats.assertions + 1
+  if not assertion then
+    failure( "assert", (...), "assertion failed" )
+  end
+  return assertion, ...
+end
+traceback_hide( assert )
+
+
+function assert_true(actual, ...)
+  stats.assertions = stats.assertions + 1
+  if actual ~= true then
+    failure( "assert_true", (...), "true expected but was %s", format_arg(actual) )
+  end
+  return actual, ...
+end
+traceback_hide( assert_true )
+
+
+function assert_false(actual, ...)
+  stats.assertions = stats.assertions + 1
+  if actual ~= false then
+    failure( "assert_false", (...), "false expected but was %s", format_arg(actual) )
+  end
+  return actual, ...
+end
+traceback_hide( assert_false )
+
+
+function assert_equal(expected, actual, ...)
+  stats.assertions = stats.assertions + 1
+  if expected ~= actual then
+    failure( "assert_equal", (...), "expected %s but was %s", format_arg(expected), format_arg(actual) )
+  end
+  return actual, ...
+end
+traceback_hide( assert_equal )
+
+
+function assert_not_equal(unexpected, actual, ...)
+  stats.assertions = stats.assertions + 1
+  if unexpected == actual then
+    failure( "assert_not_equal", (...), "%s not expected but was one", format_arg(unexpected) )
+  end
+  return actual, ...
+end
+traceback_hide( assert_not_equal )
+
+
+function assert_match(pattern, actual, ...)
+  stats.assertions = stats.assertions + 1
+  if type(pattern) ~= "string" then
+    failure( "assert_match", (...), "expected a string as pattern but was %s", format_arg(pattern) )
+  end
+  if type(actual) ~= "string" then
+    failure( "assert_match", (...), "expected a string to match pattern '%s' but was a %s", pattern, format_arg(actual) )
+  end
+  if not string_find(actual, pattern) then
+    failure( "assert_match", (...), "expected '%s' to match pattern '%s' but doesn't", actual, pattern )
+  end
+  return actual, ...
+end
+traceback_hide( assert_match )
+
+
+function assert_not_match(pattern, actual, ...)
+  stats.assertions = stats.assertions + 1
+  if type(pattern) ~= "string" then
+    failure( "assert_not_match", (...), "expected a string as pattern but was %s", format_arg(pattern) )
+  end
+  if type(actual) ~= "string" then
+    failure( "assert_not_match", (...), "expected a string to not match pattern '%s' but was %s", pattern, format_arg(actual) )
+  end
+  if string_find(actual, pattern) then
+    failure( "assert_not_match", (...), "expected '%s' to not match pattern '%s' but it does", actual, pattern )
+  end
+  return actual, ...
+end
+traceback_hide( assert_not_match )
+
+
+function assert_error(msg, func)
+  stats.assertions = stats.assertions + 1
+  if func == nil then
+    func, msg = msg, nil
+  end
+  if type(func) ~= "function" then
+    failure( "assert_error", msg, "expected a function as last argument but was %s", format_arg(func) )
+  end
+  local ok, errmsg = pcall(func)
+  if ok then
+    failure( "assert_error", msg, "error expected but no error occurred" )
+  end
+end
+traceback_hide( assert_error )
+
+
+function assert_error_match(msg, pattern, func)
+  stats.assertions = stats.assertions + 1
+  if func == nil then
+    msg, pattern, func = nil, msg, pattern
+  end
+  if type(pattern) ~= "string" then
+    failure( "assert_error_match", msg, "expected the pattern as a string but was %s", format_arg(pattern) )
+  end
+  if type(func) ~= "function" then
+    failure( "assert_error_match", msg, "expected a function as last argument but was %s", format_arg(func) )
+  end
+  local ok, errmsg = pcall(func)
+  if ok then
+    failure( "assert_error_match", msg, "error expected but no error occurred" )
+  end
+  if type(errmsg) ~= "string" then
+    failure( "assert_error_match", msg, "error as string expected but was %s", format_arg(errmsg) )
+  end
+  if not string_find(errmsg, pattern) then
+    failure( "assert_error_match", msg, "expected error '%s' to match pattern '%s' but doesn't", errmsg, pattern )
+  end
+end
+traceback_hide( assert_error_match )
+
+
+function assert_pass(msg, func)
+  stats.assertions = stats.assertions + 1
+  if func == nil then
+    func, msg = msg, nil
+  end
+  if type(func) ~= "function" then
+    failure( "assert_pass", msg, "expected a function as last argument but was %s", format_arg(func) )
+  end
+  local ok, errmsg = pcall(func)
+  if not ok then
+    failure( "assert_pass", msg, "no error expected but error was: '%s'", errmsg )
+  end
+end
+traceback_hide( assert_pass )
+
+
+-- lunit.assert_typename functions
+
+for _, typename in ipairs(typenames) do
+  local assert_typename = "assert_"..typename
+  lunit[assert_typename] = function(actual, ...)
+    stats.assertions = stats.assertions + 1
+    if type(actual) ~= typename then
+      failure( assert_typename, (...), "%s expected but was %s", typename, format_arg(actual) )
+    end
+    return actual, ...
+  end
+  traceback_hide( lunit[assert_typename] )
+end
+
+
+-- lunit.assert_not_typename functions
+
+for _, typename in ipairs(typenames) do
+  local assert_not_typename = "assert_not_"..typename
+  lunit[assert_not_typename] = function(actual, ...)
+    stats.assertions = stats.assertions + 1
+    if type(actual) == typename then
+      failure( assert_not_typename, (...), typename.." not expected but was one" )
+    end
+    return actual, ...
+  end
+  traceback_hide( lunit[assert_not_typename] )
+end
+
+
+function lunit.clearstats()
+  stats = {
+    assertions  = 0;
+    passed      = 0;
+    failed      = 0;
+    errors      = 0;
+    skipped     = 0;
+  }
+end
+
+
+local report, reporterrobj
+do
+  local testrunner
+
+  function lunit.setrunner(newrunner)
+    if not ( is_table(newrunner) or is_nil(newrunner) ) then
+      return error("lunit.setrunner: Invalid argument", 0)
+    end
+    local oldrunner = testrunner
+    testrunner = newrunner
+    return oldrunner
+  end
+
+  function lunit.loadrunner(name)
+    if not is_string(name) then
+      return error("lunit.loadrunner: Invalid argument", 0)
+    end
+    local ok, runner = pcall( require, name )
+    if not ok then
+      return error("lunit.loadrunner: Can't load test runner: "..runner, 0)
+    end
+    return setrunner(runner)
+  end
+
+  function lunit.getrunner()
+    return testrunner
+  end
+
+  function report(event, ...)
+    local f = testrunner and testrunner[event]
+    if is_function(f) then
+      pcall(f, ...)
+    end
+  end
+
+  function reporterrobj(context, tcname, testname, errobj)
+    local fullname = tcname .. "." .. testname
+    if context == "setup" then
+      fullname = fullname .. ":" .. setupname(tcname, testname)
+    elseif context == "teardown" then
+      fullname = fullname .. ":" .. teardownname(tcname, testname)
+    end
+    if errobj.type == __failure__ then
+      stats.failed = stats.failed + 1
+      report("fail", fullname, errobj.where, errobj.msg, errobj.usermsg)
+    elseif errobj.type == __skip__ then
+      stats.skipped = stats.skipped + 1
+      report("skip", fullname, errobj.where, errobj.msg, errobj.usermsg)
+    else
+      stats.errors = stats.errors + 1
+      report("err", fullname, errobj.msg, errobj.tb)
+    end
+  end
+end
+
+
+local function key_iter(t, k)
+    return (next(t,k))
+end
+
+
+local testcase
+do
+  -- Array with all registered testcases
+  local _testcases = {}
+
+  -- Marks a module as a testcase.
+  -- Applied over a module from module("xyz", lunit.testcase).
+  function lunit.testcase(m)
+    orig_assert( is_table(m) )
+    --orig_assert( m._M == m )
+    orig_assert( is_string(m._NAME) )
+    --orig_assert( is_string(m._PACKAGE) )
+
+    -- Register the module as a testcase
+    _testcases[m._NAME] = m
+
+    -- Import lunit, fail, assert* and is_* function to the module/testcase
+    m.lunit = lunit
+    m.fail = lunit.fail
+    m.skip = lunit.skip
+    for funcname, func in pairs(lunit) do
+      if "assert" == string_sub(funcname, 1, 6) or "is_" == string_sub(funcname, 1, 3) then
+        m[funcname] = func
+      end
+    end
+  end
+
+  function lunit.module(name,seeall)
+    local m = {}
+    if seeall == "seeall" then
+      setmetatable(m, { __index = _G })
+    end
+    m._NAME = name
+    lunit.testcase(m)
+    return m
+  end
+
+  -- Iterator (testcasename) over all Testcases
+  function lunit.testcases()
+    -- Make a copy of testcases to prevent confusing the iterator when
+    -- new testcase are defined
+    local _testcases2 = {}
+    for k,v in pairs(_testcases) do
+        _testcases2[k] = true
+    end
+    return key_iter, _testcases2, nil
+  end
+
+  function testcase(tcname)
+    return _testcases[tcname]
+  end
+end
+
+
+do
+  -- Finds a function in a testcase case insensitive
+  local function findfuncname(tcname, name)
+    for key, value in pairs(testcase(tcname)) do
+      if is_string(key) and is_function(value) and string_lower(key) == name then
+        return key
+      end
+    end
+  end
+
+  function lunit.setupname(tcname)
+    return findfuncname(tcname, "setup")
+  end
+
+  function lunit.teardownname(tcname)
+    return findfuncname(tcname, "teardown")
+  end
+
+  -- Iterator over all test names in a testcase.
+  -- Have to collect the names first in case one of the test
+  -- functions creates a new global and throws off the iteration.
+  function lunit.tests(tcname)
+    local testnames = {}
+    for key, value in pairs(testcase(tcname)) do
+      if is_string(key) and is_function(value) then
+        local lfn = string_lower(key)
+        if string_sub(lfn, 1, 4) == "test" or string_sub(lfn, -4) == "test" then
+          testnames[key] = true
+        end
+      end
+    end
+    return key_iter, testnames, nil
+  end
+end
+
+
+function lunit.runtest(tcname, testname)
+  orig_assert( is_string(tcname) )
+  orig_assert( is_string(testname) )
+
+  if (not getrunner()) then
+    loadrunner("lunit.console")
+  end
+
+  local function callit(context, func)
+    if func then
+      local err = mypcall(func)
+      if err then
+        reporterrobj(context, tcname, testname, err)
+        return false
+      end
+    end
+    return true
+  end
+  traceback_hide(callit)
+
+  report("run", tcname, testname)
+
+  local tc          = testcase(tcname)
+  local setup       = tc[setupname(tcname)]
+  local test        = tc[testname]
+  local teardown    = tc[teardownname(tcname)]
+
+  local setup_ok    =              callit( "setup", setup )
+  local test_ok     = setup_ok and callit( "test", test )
+  local teardown_ok = setup_ok and callit( "teardown", teardown )
+
+  if setup_ok and test_ok and teardown_ok then
+    stats.passed = stats.passed + 1
+    report("pass", tcname, testname)
+  end
+end
+traceback_hide(runtest)
+
+
+function lunit.run(testpatterns)
+  clearstats()
+  if (not getrunner()) then
+    loadrunner("lunit.console")
+  end
+
+  report("begin")
+  for testcasename in lunit.testcases() do
+    -- Run tests in the testcases
+    for testname in lunit.tests(testcasename) do
+      if selected(testpatterns, testname) then
+        runtest(testcasename, testname)
+      end
+    end
+  end
+  report("done")
+  return stats
+end
+traceback_hide(run)
+
+
+function lunit.loadonly()
+  clearstats()
+  report("begin")
+  report("done")
+  return stats
+end
+
+
+
+-- Called from 'lunit' shell script.
+
+function main(argv)
+  argv = argv or {}
+
+  -- FIXME: Error handling and error messages aren't nice.
+
+  local function checkarg(optname, arg)
+    if not is_string(arg) then
+      return error("lunit.main: option "..optname..": argument missing.", 0)
+    end
+  end
+
+  local function loadtestcase(filename)
+    if not is_string(filename) then
+      return error("lunit.main: invalid argument")
+    end
+    if #filename==0 then return end
+    local chunk, err = loadfile(filename)
+    if err then
+      return error(err)
+    else
+      chunk()
+    end
+  end
+
+  local testpatterns = nil
+  local doloadonly = false
+
+  local i = 0
+  while i < #argv do
+    i = i + 1
+    local arg = argv[i]
+    if arg == "--loadonly" then
+      doloadonly = true
+    elseif arg == "--runner" or arg == "-r" then
+      local optname = arg; i = i + 1; arg = argv[i]
+      checkarg(optname, arg)
+      loadrunner(arg)
+    elseif arg == "--test" or arg == "-t" then
+      local optname = arg; i = i + 1; arg = argv[i]
+      checkarg(optname, arg)
+      testpatterns = testpatterns or {}
+      testpatterns[#testpatterns+1] = arg
+    elseif arg == "--help" or arg == "-h" then
+        print[[
+lunit 0.8
+Copyright (c) 2004-2010 Michael Roth <mroth@nessie.de>
+Copyright (c) 2011-2015 Doug Currie
+This program comes WITHOUT WARRANTY OF ANY KIND.
+
+Usage: lua test [OPTIONS] [--] scripts
+
+Options:
+
+  -r, --runner RUNNER         Testrunner to use, defaults to 'lunit-console'.
+  -t, --test PATTERN          Which tests to run, may contain * or ? wildcards.
+      --loadonly              Only load the tests.
+  -h, --help                  Print this help screen.
+
+Please report bugs to <mroth@nessie.de>.
+]]
+        return
+    elseif arg == "--" then
+      while i < #argv do
+        i = i + 1; arg = argv[i]
+        loadtestcase(arg)
+      end
+    else
+      loadtestcase(arg)
+    end
+  end
+
+  if doloadonly then
+    return loadonly()
+  else
+    return run(testpatterns)
+  end
+end
+
+clearstats()
+
+return lunit
diff --git a/share/lua/5.4/lunit/console.lua b/share/lua/5.4/lunit/console.lua
new file mode 100644
index 000000000..f47bbaa4a
--- /dev/null
+++ b/share/lua/5.4/lunit/console.lua
@@ -0,0 +1,145 @@
+
+--[[--------------------------------------------------------------------------
+
+    This file is part of lunitx.
+
+    For Details about lunit look at: http://www.mroth.net/lunit/
+
+    Author: Michael Roth <mroth@nessie.de>
+
+    Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de>
+
+    Permission is hereby granted, free of charge, to any person
+    obtaining a copy of this software and associated documentation
+    files (the "Software"), to deal in the Software without restriction,
+    including without limitation the rights to use, copy, modify, merge,
+    publish, distribute, sublicense, and/or sell copies of the Software,
+    and to permit persons to whom the Software is furnished to do so,
+    subject to the following conditions:
+
+    The above copyright notice and this permission notice shall be
+    included in all copies or substantial portions of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+--]]--------------------------------------------------------------------------
+
+
+
+--[[
+
+      begin()
+        run(testcasename, testname)
+          err(fullname, message, traceback)
+          fail(fullname, where, message, usermessage)
+          pass(testcasename, testname)
+      done()
+
+      Fullname:
+        testcase.testname
+        testcase.testname:setupname
+        testcase.testname:teardownname
+
+--]]
+
+
+local lunit  = require "lunit"
+local string = require "string"
+local io     = require "io"
+local table  = require "table"
+
+local _M = {}
+
+local function printformat(format, ...)
+  io.write( string.format(format, ...) )
+end
+
+local columns_printed = 0
+
+local function writestatus(char)
+  if columns_printed == 0 then
+    io.write("    ")
+  end
+  if columns_printed == 60 then
+    io.write("\n    ")
+    columns_printed = 0
+  end
+  io.write(char)
+  io.flush()
+  columns_printed = columns_printed + 1
+end
+
+local msgs = {}
+
+function _M.begin()
+  local total_tc = 0
+  local total_tests = 0
+
+  msgs = {} -- e
+
+  for tcname in lunit.testcases() do
+    total_tc = total_tc + 1
+    for testname, test in lunit.tests(tcname) do
+      total_tests = total_tests + 1
+    end
+  end
+
+  printformat("Loaded testsuite with %d tests in %d testcases.\n\n", total_tests, total_tc)
+end
+
+function _M.run(testcasename, testname)
+  -- NOP
+end
+
+function _M.err(fullname, message, traceback)
+  writestatus("E")
+  msgs[#msgs+1] = "Error! ("..fullname.."):\n"..message.."\n\t"..table.concat(traceback, "\n\t") .. "\n"
+end
+
+function _M.fail(fullname, where, message, usermessage)
+  writestatus("F")
+  local text =  "Failure ("..fullname.."):\n"..
+                where..": "..message.."\n"
+
+  if usermessage then
+    text = text .. where..": "..usermessage.."\n"
+  end
+
+  msgs[#msgs+1] = text
+end
+
+function _M.skip(fullname, where, message, usermessage)
+  writestatus("S")
+  local text =  "Skip ("..fullname.."):\n"..
+                where..": "..message.."\n"
+
+  if usermessage then
+    text = text .. where..": "..usermessage.."\n"
+  end
+
+  msgs[#msgs+1] = text
+end
+
+function _M.pass(testcasename, testname)
+  writestatus(".")
+end
+
+function _M.done()
+  printformat("\n\n%d Assertions checked.\n", lunit.stats.assertions )
+  print()
+
+  for i, msg in ipairs(msgs) do
+    printformat( "%3d) %s\n", i, msg )
+  end
+
+  printformat("Testsuite finished (%d passed, %d failed, %d errors, %d skipped).\n",
+      lunit.stats.passed, lunit.stats.failed, lunit.stats.errors, lunit.stats.skipped )
+end
+
+return _M
diff --git a/share/lua/5.4/lunitx.lua b/share/lua/5.4/lunitx.lua
new file mode 100644
index 000000000..e3c5536d5
--- /dev/null
+++ b/share/lua/5.4/lunitx.lua
@@ -0,0 +1,21 @@
+local atexit = require "lunitx.atexit"
+local lunit = require "lunit"
+
+--for k,v in pairs(debug.getinfo(1,"S")) do print(k,v) end
+-- autonameing
+-- module("bcrc-test", lunit.testcase, package.seeall)
+
+atexit(function()
+    local _, emsg = xpcall(function()
+        lunit.main(arg)
+    end, debug.traceback)
+    if emsg then
+        print(emsg)
+        os.exit(1)
+    end
+    if lunit.stats.failed > 0 or lunit.stats.errors > 0 then
+      os.exit(1)
+    end
+end)
+
+return lunit
diff --git a/share/lua/5.4/lunitx/atexit.lua b/share/lua/5.4/lunitx/atexit.lua
new file mode 100644
index 000000000..3582b2847
--- /dev/null
+++ b/share/lua/5.4/lunitx/atexit.lua
@@ -0,0 +1,32 @@
+
+local actions = {}
+
+local atexit
+
+if _VERSION >= 'Lua 5.2' then
+
+    atexit = function (fn)
+        actions[#actions+1] = setmetatable({}, { __gc = fn })
+    end
+
+else
+
+    local newproxy = newproxy
+    local debug = debug
+    local assert = assert
+    local setmetatable = setmetatable
+
+    local function gc(fn)
+        local p = assert(newproxy())
+        assert(debug.setmetatable(p, { __gc = fn }))
+        return p
+    end
+
+    atexit = function (fn)
+        actions[#actions+1] = gc(fn)
+    end
+
+end
+
+return atexit
+
diff --git a/tests/runtests.bat b/tests/runtests.bat
index 80a52308f..560e1e737 100644
--- a/tests/runtests.bat
+++ b/tests/runtests.bat
@@ -8,6 +8,8 @@ IF EXIST ..\build-vs16 SET BUILD=..\build-vs16\eressea\Debug
 
 SET SERVER=%BUILD%\eressea.exe
 %BUILD%\test_eressea.exe
+SET LUA_PATH=..\share\lua\5.4\?.lua;;
+
 %SERVER% -v1 ..\scripts\run-tests.lua
 %SERVER% -v1 -re2 ..\scripts\run-tests-e2.lua
 %SERVER% -v1 -re3 ..\scripts\run-tests-e3.lua

From 4dfa1035b64f76f7bdfc090c059d6e8126b941b9 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Thu, 18 Feb 2021 22:26:41 +0100
Subject: [PATCH 46/78] fix libbsd and string function detection

---
 clibs              | 2 +-
 src/CMakeLists.txt | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/clibs b/clibs
index 48ddc013f..c8f4a372b 160000
--- a/clibs
+++ b/clibs
@@ -1 +1 @@
-Subproject commit 48ddc013ffc2e7afb33b348bb605443896e55a28
+Subproject commit c8f4a372b97e9249fe87ca4f7b60dea4799bae7f
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fe90f7822..d3ba76c05 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -285,19 +285,19 @@ add_test(server test_eressea)
 install(TARGETS eressea DESTINATION "bin")
 
 if (HAVE_EXECINFO_H AND HAVE_SIGNAL_H)
-  add_definitions(-DHAVE_BACKTRACE)
+  add_compile_definitions(HAVE_BACKTRACE)
 endif ()
 
 if (HAVE_LIBBSD)
-  add_definitions(-DHAVE_LIBBSD)
+  add_compile_definitions(HAVE_LIBBSD)
 endif (HAVE_LIBBSD)
 
 if (HAVE_STRLCAT)
-  add_definitions(-DHAVE_BSDSTRING)
+  add_compile_definitions(HAVE_BSDSTRING)
 endif (HAVE_STRLCAT)
 
 if (HAVE_STRDUP)
-  add_definitions(-DHAVE_STRDUP)
+  add_compile_definitions(HAVE_STRDUP)
 endif(HAVE_STRDUP)
 
 if (HAVE_LIBBSD)

From 50f84adc376f1d9ce84500219e130a694bd3d3e9 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno.rehling@gmail.com>
Date: Fri, 19 Feb 2021 18:13:05 +0100
Subject: [PATCH 47/78] build with or without libbsd installed

---
 CMakeLists.txt                         |     2 +-
 clibs                                  |     2 +-
 doc/gprof-v3.10.0-163-gdfab45d.profile | 18335 -----------------------
 3 files changed, 2 insertions(+), 18337 deletions(-)
 delete mode 100644 doc/gprof-v3.10.0-163-gdfab45d.profile

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6458e7b5a..0a1ae374d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ check_include_file(signal.h HAVE_SIGNAL_H)
 check_include_file(execinfo.h HAVE_EXECINFO_H)
 
 include (CheckLibraryExists)
-check_library_exists(m sin "" HAVE_LIBM)
+check_library_exists(m fmin "" HAVE_LIBM)
 check_library_exists(bsd strlcat "" HAVE_LIBBSD)
 
 include (CheckFunctionExists)
diff --git a/clibs b/clibs
index c8f4a372b..6cdcdd62d 160000
--- a/clibs
+++ b/clibs
@@ -1 +1 @@
-Subproject commit c8f4a372b97e9249fe87ca4f7b60dea4799bae7f
+Subproject commit 6cdcdd62d167e0159d10d4e95b5def97d785fdef
diff --git a/doc/gprof-v3.10.0-163-gdfab45d.profile b/doc/gprof-v3.10.0-163-gdfab45d.profile
deleted file mode 100644
index aa148a1fd..000000000
--- a/doc/gprof-v3.10.0-163-gdfab45d.profile
+++ /dev/null
@@ -1,18335 +0,0 @@
-# eressea -re2 -t961 run-turn.lua
-Flat profile:
-
-Each sample counts as 0.01 seconds.
-  %   cumulative   self              self     total           
- time   seconds   seconds    calls   s/call   s/call  name    
- 11.26      3.91     3.91      232     0.02     0.02  prepare_report
-  6.94      6.32     2.41                             cb_find_top_i
-  6.28      8.50     2.18 68430271     0.00     0.00  rc_find_i
-  3.43      9.69     1.19  2742237     0.00     0.00  paragraph
-  2.76     10.65     0.96      230     0.00     0.02  report_computer
-  2.76     11.61     0.96      232     0.00     0.01  get_addresses
-  2.68     12.54     0.93  1437425     0.00     0.00  cansee
-  2.53     13.42     0.88      232     0.00     0.00  finish_reports
-  2.22     14.19     0.77      230     0.00     0.03  report_plaintext
-  2.19     14.95     0.76 32337529     0.00     0.00  hashstring
-  1.84     15.59     0.64 10375491     0.00     0.00  alliedgroup
-  1.81     16.22     0.63 34611296     0.00     0.00  strlcpy
-  1.76     16.83     0.61 24887945     0.00     0.00  locale_string
-  1.64     17.40     0.57  1766225     0.00     0.00  nr_curses
-  1.50     17.92     0.52 55492327     0.00     0.00  getkeyword
-  1.35     18.39     0.47        1     0.47     5.47  process
-  1.35     18.86     0.47                             decode_pointer
-  1.30     19.31     0.45 51974272     0.00     0.00  a_find
-  1.15     19.71     0.40  1310373     0.00     0.00  cr_output_curses
-  0.92     20.03     0.32 129167539     0.00     0.00  u_race
-  0.89     20.34     0.31 71815034     0.00     0.00  get_race
-  0.82     20.63     0.29 18856320     0.00     0.00  cb_add_seen
-  0.81     20.91     0.28                             cb_find_prefix_i
-  0.81     21.19     0.28                             from_external_node
-  0.78     21.46     0.27       99     0.00     0.00  report_template
-  0.72     21.71     0.25 10030400     0.00     0.00  effskill
-  0.69     21.95     0.24  9544331     0.00     0.00  parse_symbol
-  0.69     22.19     0.24  1158076     0.00     0.00  getbuf_utf8
-  0.66     22.42     0.23  5985780     0.00     0.00  itoab
-  0.63     22.64     0.22  1118718     0.00     0.00  ufindhash
-  0.63     22.86     0.22                             ql_advance
-  0.60     23.07     0.21 12246335     0.00     0.00  ct_find
-  0.60     23.28     0.21  2725583     0.00     0.00  parse_string
-  0.60     23.49     0.21 11241829     0.00     0.00  i_change
-  0.55     23.68     0.19  2480226     0.00     0.00  old_race
-  0.55     23.87     0.19  2248440     0.00     0.00  get_borders_i
-  0.55     24.06     0.19                             bin_r_int_pak
-  0.52     24.24     0.18                             fs_write
-  0.49     24.41     0.17  6010308     0.00     0.00  i_find
-  0.49     24.58     0.17   860263     0.00     0.00  use_pooled
-  0.43     24.73     0.15  5168717     0.00     0.00  nrt_find
-  0.43     24.88     0.15   178254     0.00     0.00  get_food
-  0.40     25.02     0.14  4434556     0.00     0.00  translate
-  0.40     25.16     0.14                             fstream_done
-  0.40     25.30     0.14                             ql_get
-  0.40     25.44     0.14  1375380     0.00     0.00  remove_empty_units_in_region
-  0.37     25.57     0.13 10190660     0.00     0.00  get_curse
-  0.37     25.70     0.13  5387327     0.00     0.00  parse_token
-  0.35     25.82     0.12 11253756     0.00     0.00  genrand_int32
-  0.35     25.94     0.12   923671     0.00     0.00  cr_output_unit
-  0.35     26.06     0.12   713016     0.00     0.00  do_enter
-  0.35     26.18     0.12   596221     0.00     0.00  write_unit
-  0.32     26.29     0.11  9953180     0.00     0.00  alliedunit
-  0.32     26.40     0.11  1380398     0.00     0.00  translate
-  0.32     26.51     0.11 10103290     0.00     0.00  stream_printf
-  0.32     26.62     0.11                             fs_writeln
-  0.29     26.72     0.10 46391457     0.00     0.00  unicode_utf8_to_ucs4
-  0.29     26.82     0.10 36653945     0.00     0.00  wrptr
-  0.29     26.92     0.10 13102790     0.00     0.00  opstack_pop
-  0.26     27.01     0.09 50553492     0.00     0.00  stealth_modifier
-  0.26     27.10     0.09  3398582     0.00     0.00  travelthru_map
-  0.26     27.19     0.09  2624955     0.00     0.00  has_skill
-  0.26     27.28     0.09  1390078     0.00     0.00  get_row
-  0.26     27.37     0.09  1248014     0.00     0.00  listlen
-  0.26     27.46     0.09   297222     0.00     0.00  fwritestr
-  0.26     27.55     0.09                             qli_more
-  0.24     27.63     0.09 56052475     0.00     0.00  get_resourcetype
-  0.23     27.71     0.08 20834979     0.00     0.00  autoalliance
-  0.23     27.79     0.08 13102790     0.00     0.00  opstack_push
-  0.23     27.87     0.08 12353561     0.00     0.00  report_item
-  0.23     27.95     0.08  7252744     0.00     0.00  cmp_transfer
-  0.23     28.03     0.08  7120688     0.00     0.00  get_money
-  0.23     28.11     0.08        2     0.04     0.73  make_summary
-  0.20     28.18     0.07 17451017     0.00     0.00  strlcpy_w
-  0.20     28.25     0.07    47902     0.00     0.00  getshipweight
-  0.20     28.32     0.07                             bin_r_str_buf
-  0.20     28.39     0.07 68430117     0.00     0.00  rc_find
-  0.20     28.46     0.07   760673     0.00     0.00  addlist
-  0.20     28.53     0.07                             bin_w_int_pak
-  0.17     28.59     0.06 26776263     0.00     0.00  get_param
-  0.17     28.65     0.06 13259934     0.00     0.00  resourcename
-  0.17     28.71     0.06  1826688     0.00     0.00  adjust_coordinates
-  0.17     28.77     0.06   560965     0.00     0.00  bt_find_i
-  0.17     28.83     0.06   209572     0.00     0.00  cr_borders
-  0.17     28.89     0.06   108211     0.00     0.00  report_resources
-  0.17     28.95     0.06        2     0.03     0.66  score
-  0.17     29.01     0.06     2247     0.00     0.00  count_faction
-  0.14     29.06     0.05 12560453     0.00     0.00  rc_changed
-  0.14     29.11     0.05  7910500     0.00     0.00  r_isforest
-  0.14     29.16     0.05  7179079     0.00     0.00  att_modification
-  0.14     29.21     0.05  5329742     0.00     0.00  eatwhitespace_c
-  0.14     29.26     0.05  2868601     0.00     0.00  u_irace
-  0.14     29.31     0.05  2006524     0.00     0.00  get_command
-  0.14     29.36     0.05  1929215     0.00     0.00  create_order_i
-  0.14     29.41     0.05  1405457     0.00     0.00  report_items
-  0.14     29.46     0.05   209572     0.00     0.00  building_owner_ex
-  0.14     29.51     0.05   127676     0.00     0.00  describe
-  0.14     29.56     0.05    96482     0.00     0.00  get_followers
-  0.14     29.61     0.05                             qli_init
-  0.12     29.65     0.04 10053919     0.00     0.00  rtrees
-  0.12     29.69     0.04  7851812     0.00     0.00  write_spaces
-  0.12     29.73     0.04  6241702     0.00     0.00  eatwhite
-  0.12     29.77     0.04  4625636     0.00     0.00  ffindhash
-  0.12     29.81     0.04  4568249     0.00     0.00  find_variable
-  0.12     29.85     0.04  4136059     0.00     0.00  mkname_buf
-  0.12     29.89     0.04  3573165     0.00     0.00  cmp_faction
-  0.12     29.93     0.04  2858912     0.00     0.00  get_effect
-  0.12     29.97     0.04  1953682     0.00     0.00  spskill
-  0.12     30.01     0.04  1644867     0.00     0.00  free_orders
-  0.12     30.05     0.04  1010116     0.00     0.00  mt_find
-  0.12     30.09     0.04  1006923     0.00     0.00  rfindhash
-  0.12     30.13     0.04   841675     0.00     0.00  a_write
-  0.12     30.17     0.04   178254     0.00     0.00  do_contact
-  0.12     30.21     0.04   160206     0.00     0.00  monster_attacks
-  0.12     30.25     0.04     3016     0.00     0.00  dfindhash
-  0.12     30.29     0.04        1     0.04     0.09  ageing
-  0.12     30.33     0.04        1     0.04     0.61  movement
-  0.12     30.37     0.04        1     0.04     0.31  randomevents
-  0.12     30.41     0.04                             cb_find_prefix
-  0.12     30.45     0.04                             class_index_event
-  0.12     30.49     0.04                             fs_read
-  0.12     30.53     0.04                             pack_int
-  0.12     30.57     0.04                             ql_find
-  0.12     30.61     0.04                             tolua_unitlist_next
-  0.12     30.65     0.04                             unicode_ucs4_to_utf8
-  0.10     30.69     0.04  6907106     0.00     0.00  eff_skill
-  0.10     30.72     0.04  7179154     0.00     0.00  get_modifier
-  0.10     30.76     0.04                             cb_get_kv
-  0.09     30.79     0.03 21345834     0.00     0.00  skill_enabled
-  0.09     30.82     0.03 13399069     0.00     0.00  balloc
-  0.09     30.85     0.03 10375461     0.00     0.00  AllianceRestricted
-  0.09     30.88     0.03  9232125     0.00     0.00  res_changeitem
-  0.09     30.91     0.03  9170795     0.00     0.00  parse
-  0.09     30.94     0.03  8302761     0.00     0.00  get_resource
-  0.09     30.97     0.03  4851739     0.00     0.00  get_reservation
-  0.09     31.00     0.03  4457785     0.00     0.00  transliterate
-  0.09     31.03     0.03  2818494     0.00     0.00  rc_name
-  0.09     31.06     0.03  2599554     0.00     0.00  change_money
-  0.09     31.09     0.03  2277350     0.00     0.00  get_prefix
-  0.09     31.12     0.03  1956810     0.00     0.00  add_skill
-  0.09     31.15     0.03  1747682     0.00     0.00  cansee_durchgezogen
-  0.09     31.18     0.03  1481616     0.00     0.00  get_keyword
-  0.09     31.21     0.03  1348743     0.00     0.00  bufunit
-  0.09     31.24     0.03   967784     0.00     0.00  msg_message
-  0.09     31.27     0.03   779486     0.00     0.00  locale_getstring
-  0.09     31.30     0.03   541982     0.00     0.00  get_pooled
-  0.09     31.33     0.03   490896     0.00     0.00  default_wage
-  0.09     31.36     0.03   417808     0.00     0.00  study_cmd
-  0.09     31.39     0.03   372173     0.00     0.00  select_enemy
-  0.09     31.42     0.03   301257     0.00     0.00  crt_find
-  0.09     31.45     0.03   297010     0.00     0.00  bt_effsize
-  0.09     31.48     0.03   195108     0.00     0.00  rps_nowrap
-  0.09     31.51     0.03   130250     0.00     0.00  r_getmessages
-  0.09     31.54     0.03    79180     0.00     0.00  rp_messages
-  0.09     31.57     0.03    35287     0.00     0.00  prices
-  0.09     31.60     0.03    13500     0.00     0.00  crew_skill
-  0.09     31.63     0.03    10852     0.00     0.00  expandorders
-  0.09     31.66     0.03    10846     0.00     0.00  scramble
-  0.09     31.69     0.03        1     0.03     0.05  defaultorders
-  0.09     31.72     0.03        1     0.03     0.05  demon_skillchanges
-  0.09     31.75     0.03        1     0.03     0.06  dissolve_units
-  0.09     31.78     0.03        1     0.03     0.03  move_hunters
-  0.09     31.81     0.03        1     0.03     0.04  move_pirates
-  0.09     31.84     0.03        1     0.03     0.03  reset_game
-  0.09     31.87     0.03                             a_select
-  0.09     31.90     0.03                             ql_foreachx
-  0.06     31.92     0.02 24935046     0.00     0.00  faction_alive
-  0.06     31.94     0.02 20836359     0.00     0.00  f_get_alliance
-  0.06     31.96     0.02 20777534     0.00     0.00  config_get
-  0.06     31.98     0.02 10375461     0.00     0.00  ally_mode
-  0.06     32.00     0.02  9163148     0.00     0.00  golem_factor
-  0.06     32.02     0.02  8452306     0.00     0.00  is_guardian_r
-  0.06     32.04     0.02  7641081     0.00     0.00  genrand_int31
-  0.06     32.06     0.02  7417541     0.00     0.00  urace
-  0.06     32.08     0.02  7179079     0.00     0.00  skill_mod
-  0.06     32.10     0.02  4666665     0.00     0.00  rmoney
-  0.06     32.12     0.02  4558423     0.00     0.00  get_translations
-  0.06     32.14     0.02  3780355     0.00     0.00  nr_section
-  0.06     32.16     0.02  3358315     0.00     0.00  ship_owner
-  0.06     32.18     0.02  2903884     0.00     0.00  jenkins_hash
-  0.06     32.20     0.02  2818494     0.00     0.00  rc_name_s
-  0.06     32.22     0.02  2605004     0.00     0.00  rpeasants
-  0.06     32.24     0.02  1996097     0.00     0.00  travelthru_cansee
-  0.06     32.26     0.02  1929215     0.00     0.00  create_data
-  0.06     32.28     0.02  1662377     0.00     0.00  get_unitrow
-  0.06     32.30     0.02  1552289     0.00     0.00  rname
-  0.06     32.32     0.02  1481407     0.00     0.00  parse_order
-  0.06     32.34     0.02  1470505     0.00     0.00  write_order
-  0.06     32.36     0.02  1344397     0.00     0.00  nr_unit
-  0.06     32.38     0.02  1206547     0.00     0.00  findplane
-  0.06     32.40     0.02  1188532     0.00     0.00  eff_stealth
-  0.06     32.42     0.02  1177511     0.00     0.00  it_alias
-  0.06     32.44     0.02  1121103     0.00     0.00  monster_is_waiting
-  0.06     32.46     0.02  1054200     0.00     0.00  count_cb
-  0.06     32.48     0.02   967902     0.00     0.00  cb_cr_travelthru_ship
-  0.06     32.50     0.02   860166     0.00     0.00  weapon_effskill
-  0.06     32.52     0.02   839202     0.00     0.00  a_age
-  0.06     32.54     0.02   771861     0.00     0.00  armedmen
-  0.06     32.56     0.02   742235     0.00     0.00  room_for_race_in_region
-  0.06     32.58     0.02   688711     0.00     0.00  atoi36
-  0.06     32.60     0.02   635885     0.00     0.00  copy_order
-  0.06     32.62     0.02   628037     0.00     0.00  read_items
-  0.06     32.64     0.02   595898     0.00     0.00  follow_unit
-  0.06     32.66     0.02   472366     0.00     0.00  produceexp_days
-  0.06     32.68     0.02   418134     0.00     0.00  study_cost
-  0.06     32.70     0.02   392959     0.00     0.00  add_message
-  0.06     32.72     0.02   313244     0.00     0.00  check_overpopulated
-  0.06     32.74     0.02   221802     0.00     0.00  unitorders
-  0.06     32.76     0.02   178254     0.00     0.00  economics
-  0.06     32.78     0.02   178254     0.00     0.00  hash_uid
-  0.06     32.80     0.02   178254     0.00     0.00  reorder_units
-  0.06     32.82     0.02   162996     0.00     0.00  inhabitable
-  0.06     32.84     0.02   147217     0.00     0.00  normalvariate
-  0.06     32.86     0.02   146997     0.00     0.00  term_eval
-  0.06     32.88     0.02    62581     0.00     0.00  guards
-  0.06     32.90     0.02    33139     0.00     0.00  statistics
-  0.06     32.92     0.02     7964     0.00     0.00  nrt_string
-  0.06     32.94     0.02     6963     0.00     0.00  move_ship
-  0.06     32.96     0.02     3438     0.00     0.00  get_regions_distance
-  0.06     32.98     0.02      388     0.00     0.00  internal_path_find
-  0.06     33.00     0.02      231     0.00     0.00  faction_getmages
-  0.06     33.02     0.02       30     0.00     0.00  config_set
-  0.06     33.04     0.02        1     0.02     0.03  destroyfaction
-  0.06     33.06     0.02        1     0.02     0.02  godcurse
-  0.06     33.08     0.02        1     0.02     0.03  orc_growth
-  0.06     33.10     0.02        1     0.02     0.03  restack_units
-  0.06     33.12     0.02        1     0.02     0.02  spawn_dragons
-  0.06     33.14     0.02        1     0.02     0.02  update_guards
-  0.06     33.16     0.02                             bin_w_brk
-  0.06     33.18     0.02                             bin_w_str
-  0.06     33.20     0.02                             fs_readln
-  0.06     33.22     0.02                             ql_push
-  0.06     33.24     0.02                             ql_set_insert_ex
-  0.06     33.26     0.02                             tolua_unit_get_faction
-  0.06     33.28     0.02                             wang_hash
-  0.04     33.29     0.02    51003     0.00     0.00  give_money
-  0.04     33.31     0.02      464     0.00     0.00  firstregion
-  0.03     33.32     0.01 18647447     0.00     0.00  getplane
-  0.03     33.33     0.01 10383360     0.00     0.00  HelpMask
-  0.03     33.34     0.01  9298667     0.00     0.00  resource2item
-  0.03     33.35     0.01  8506411     0.00     0.00  besieged
-  0.03     33.36     0.01  7298034     0.00     0.00  skillmod
-  0.03     33.37     0.01  5461936     0.00     0.00  slprintf
-  0.03     33.38     0.01  5395063     0.00     0.00  i_get
-  0.03     33.39     0.01  5152236     0.00     0.00  ct_changed
-  0.03     33.40     0.01  5065285     0.00     0.00  get_param_int
-  0.03     33.41     0.01  4984610     0.00     0.00  config_get_int
-  0.03     33.42     0.01  4976082     0.00     0.00  find_function
-  0.03     33.43     0.01  4835422     0.00     0.00  usiege
-  0.03     33.44     0.01  4625636     0.00     0.00  findfaction
-  0.03     33.45     0.01  4488684     0.00     0.00  crtag
-  0.03     33.46     0.01  4374788     0.00     0.00  visible_faction
-  0.03     33.47     0.01  4301501     0.00     0.00  statusrow
-  0.03     33.48     0.01  4201030     0.00     0.00  curse_active
-  0.03     33.49     0.01  4198692     0.00     0.00  lifestyle
-  0.03     33.50     0.01  4133717     0.00     0.00  mkname
-  0.03     33.51     0.01  3383689     0.00     0.00  update_interval
-  0.03     33.52     0.01  2985733     0.00     0.00  is_repeated
-  0.03     33.53     0.01  2934859     0.00     0.00  skillname
-  0.03     33.54     0.01  2765718     0.00     0.00  maintenance_cost
-  0.03     33.55     0.01  2494242     0.00     0.00  newline
-  0.03     33.56     0.01  2481220     0.00     0.00  copy_arg
-  0.03     33.57     0.01  2383101     0.00     0.00  unitname
-  0.03     33.58     0.01  2281756     0.00     0.00  gettoken
-  0.03     33.59     0.01  2275967     0.00     0.00  get_racename
-  0.03     33.60     0.01  2275429     0.00     0.00  raceprefix
-  0.03     33.61     0.01  2186159     0.00     0.00  rsetmoney
-  0.03     33.62     0.01  2032164     0.00     0.00  rt_find
-  0.03     33.63     0.01  1874928     0.00     0.00  terrain_name
-  0.03     33.64     0.01  1751202     0.00     0.00  item_invis
-  0.03     33.65     0.01  1629412     0.00     0.00  LongHunger
-  0.03     33.66     0.01  1381157     0.00     0.00  unit_max_hp
-  0.03     33.67     0.01  1351796     0.00     0.00  racename
-  0.03     33.68     0.01  1336242     0.00     0.00  genrand_real2
-  0.03     33.69     0.01  1311302     0.00     0.00  init_tokens_str
-  0.03     33.70     0.01  1205451     0.00     0.00  alliedfaction
-  0.03     33.71     0.01  1106528     0.00     0.00  is_building_type
-  0.03     33.72     0.01  1087065     0.00     0.00  get_neighbours
-  0.03     33.73     0.01  1009159     0.00     0.00  log_orders
-  0.03     33.74     0.01   996009     0.00     0.00  get_skill
-  0.03     33.75     0.01   987612     0.00     0.00  getplanebyname
-  0.03     33.76     0.01   967902     0.00     0.00  cb_cr_travelthru_unit
-  0.03     33.77     0.01   950595     0.00     0.00  f_regionid
-  0.03     33.78     0.01   923671     0.00     0.00  cr_output_unit_compat
-  0.03     33.79     0.01   799427     0.00     0.00  eval_unit
-  0.03     33.80     0.01   745269     0.00     0.00  add_seen_nb
-  0.03     33.81     0.01   655564     0.00     0.00  eval_eq
-  0.03     33.82     0.01   629123     0.00     0.00  write_items
-  0.03     33.83     0.01   618305     0.00     0.00  escape_string
-  0.03     33.84     0.01   610341     0.00     0.00  stream_order
-  0.03     33.85     0.01   604861     0.00     0.00  write_unit_reference
-  0.03     33.86     0.01   595896     0.00     0.00  update_long_order
-  0.03     33.87     0.01   595125     0.00     0.00  read_unit
-  0.03     33.88     0.01   593636     0.00     0.00  building_owner
-  0.03     33.89     0.01   546579     0.00     0.00  weapon_skill
-  0.03     33.90     0.01   454395     0.00     0.00  a_free
-  0.03     33.91     0.01   451774     0.00     0.00  a_remove
-  0.03     33.92     0.01   451774     0.00     0.00  a_unlink
-  0.03     33.93     0.01   424669     0.00     0.00  active_building
-  0.03     33.94     0.01   363135     0.00     0.00  select_opponent
-  0.03     33.95     0.01   325825     0.00     0.00  scared_by_monster
-  0.03     33.96     0.01   325282     0.00     0.00  eaten_by_monster
-  0.03     33.97     0.01   302482     0.00     0.00  findtoken
-  0.03     33.98     0.01   301257     0.00     0.00  cr_render
-  0.03     33.99     0.01   300501     0.00     0.00  move_blocked
-  0.03     34.00     0.01   283711     0.00     0.00  item2resource
-  0.03     34.01     0.01   279395     0.00     0.00  weight
-  0.03     34.02     0.01   264251     0.00     0.00  rsetpeasants
-  0.03     34.03     0.01   263302     0.00     0.00  koor_reldirection
-  0.03     34.04     0.01   251814     0.00     0.00  at_find
-  0.03     34.05     0.01   218425     0.00     0.00  buildingtype
-  0.03     34.06     0.01   209572     0.00     0.00  cr_output_region
-  0.03     34.07     0.01   184870     0.00     0.00  buildingeffsize
-  0.03     34.08     0.01   180598     0.00     0.00  nr_ship
-  0.03     34.09     0.01   178263     0.00     0.00  drown
-  0.03     34.10     0.01   178254     0.00     0.00  do_siege
-  0.03     34.11     0.01   178254     0.00     0.00  maintain_buildings
-  0.03     34.12     0.01   178254     0.00     0.00  sinkships
-  0.03     34.13     0.01   178254     0.00     0.00  start_battle
-  0.03     34.14     0.01   162862     0.00     0.00  allowed_dragon
-  0.03     34.15     0.01   127676     0.00     0.00  write_travelthru
-  0.03     34.16     0.01   116804     0.00     0.00  eval_isnull
-  0.03     34.17     0.01   113845     0.00     0.00  choplist
-  0.03     34.18     0.01   113592     0.00     0.00  nr_building
-  0.03     34.19     0.01   105106     0.00     0.00  monster_move
-  0.03     34.20     0.01    94420     0.00     0.00  add_give
-  0.03     34.21     0.01    67213     0.00     0.00  eval_building
-  0.03     34.22     0.01    65155     0.00     0.00  sm_familiar
-  0.03     34.23     0.01    54530     0.00     0.00  a_insert
-  0.03     34.24     0.01    47887     0.00     0.00  shipcapacity
-  0.03     34.25     0.01    41095     0.00     0.00  cr_order
-  0.03     34.26     0.01    40046     0.00     0.00  rule_stealth_other
-  0.03     34.27     0.01    34486     0.00     0.00  effskill_study
-  0.03     34.28     0.01    32727     0.00     0.00  rsetherbtype
-  0.03     34.29     0.01    32670     0.00     0.00  horses
-  0.03     34.30     0.01    27694     0.00     0.00  all_money
-  0.03     34.31     0.01    25088     0.00     0.00  rmtroop
-  0.03     34.32     0.01    20176     0.00     0.00  render_messages
-  0.03     34.33     0.01    16132     0.00     0.00  teach_unit
-  0.03     34.34     0.01    14326     0.00     0.00  replace_order
-  0.03     34.35     0.01    11719     0.00     0.00  locale_name
-  0.03     34.36     0.01     7255     0.00     0.00  sail
-  0.03     34.37     0.01     5494     0.00     0.00  expandbuying
-  0.03     34.38     0.01     3147     0.00     0.00  i_canuse
-  0.03     34.39     0.01     2887     0.00     0.00  leave
-  0.03     34.40     0.01     2838     0.00     0.00  do_attack
-  0.03     34.41     0.01     1302     0.00     0.00  academy_can_teach
-  0.03     34.42     0.01     1297     0.00     0.00  AllianceAuto
-  0.03     34.43     0.01     1018     0.00     0.00  is_exclusive
-  0.03     34.44     0.01      780     0.00     0.00  battle_report
-  0.03     34.45     0.01      457     0.00     0.00  countheroes
-  0.03     34.46     0.01      163     0.00     0.00  eval_lt
-  0.03     34.47     0.01      150     0.00     0.00  set_factionstealth
-  0.03     34.48     0.01       18     0.00     0.00  ship_update_owner
-  0.03     34.49     0.01        6     0.00     0.02  remove_empty_units
-  0.03     34.50     0.01        1     0.01     0.01  chaos_update
-  0.03     34.51     0.01        1     0.01     0.01  create_icebergs
-  0.03     34.52     0.01        1     0.01     0.01  free_params
-  0.03     34.53     0.01        1     0.01     0.03  init_transportation
-  0.03     34.54     0.01        1     0.01     0.11  magic
-  0.03     34.55     0.01        1     0.01     0.01  move_icebergs
-  0.03     34.56     0.01        1     0.01     0.03  regenerate_aura
-  0.03     34.57     0.01        1     0.01     0.01  remove_empty_factions
-  0.03     34.58     0.01        1     0.01     0.04  rotting_herbs
-  0.03     34.59     0.01        1     0.01     0.35  write_game
-  0.03     34.60     0.01                             cb_insert
-  0.03     34.61     0.01                             cmp_curse
-  0.03     34.62     0.01                             create_backup
-  0.03     34.63     0.01                             ct_remove
-  0.03     34.64     0.01                             get_homeplane
-  0.03     34.65     0.01                             i10toi36
-  0.03     34.66     0.01                             json_export
-  0.03     34.67     0.01                             make_external_node
-  0.03     34.68     0.01                             qli_next
-  0.03     34.69     0.01                             read_movement
-  0.03     34.70     0.01                             remove_plane
-  0.03     34.71     0.01                             set_string
-  0.03     34.72     0.01                             tolua_buildinglist_next
-  0.03     34.73     0.01                             tolua_regionlist_next
-  0.03     34.74     0.01                             tolua_tousertype
-  0.01     34.74     0.01                             cb_new_kv
-  0.00     34.74     0.00 11194781     0.00     0.00  keyword_disabled
-  0.00     34.74     0.00  7179079     0.00     0.00  rc_skillmod
-  0.00     34.74     0.00  6656973     0.00     0.00  bfree
-  0.00     34.74     0.00  6610983     0.00     0.00  is_guard
-  0.00     34.74     0.00  5100840     0.00     0.00  itoa36
-  0.00     34.74     0.00  4503145     0.00     0.00  omniscient
-  0.00     34.74     0.00  3902879     0.00     0.00  get_or_create_monsters
-  0.00     34.74     0.00  3902878     0.00     0.00  get_monsters
-  0.00     34.74     0.00  3656767     0.00     0.00  add_variable
-  0.00     34.74     0.00  3587241     0.00     0.00  pnormalize
-  0.00     34.74     0.00  3351853     0.00     0.00  unit_getname
-  0.00     34.74     0.00  3166898     0.00     0.00  rherbs
-  0.00     34.74     0.00  2426021     0.00     0.00  get_mage
-  0.00     34.74     0.00  2386892     0.00     0.00  config_changed
-  0.00     34.74     0.00  2383101     0.00     0.00  write_unitname
-  0.00     34.74     0.00  2379316     0.00     0.00  resource2weapon
-  0.00     34.74     0.00  2272376     0.00     0.00  u_description
-  0.00     34.74     0.00  2225796     0.00     0.00  get_borders
-  0.00     34.74     0.00  2155959     0.00     0.00  is_persistent
-  0.00     34.74     0.00  2124526     0.00     0.00  locale_index
-  0.00     34.74     0.00  2066777     0.00     0.00  parse_token_depr
-  0.00     34.74     0.00  2009097     0.00     0.00  keyword
-  0.00     34.74     0.00  1936876     0.00     0.00  free_order
-  0.00     34.74     0.00  1787006     0.00     0.00  findparam
-  0.00     34.74     0.00  1785077     0.00     0.00  faction_getorigin
-  0.00     34.74     0.00  1771752     0.00     0.00  help_money
-  0.00     34.74     0.00  1766225     0.00     0.00  nr_curses_i
-  0.00     34.74     0.00  1753922     0.00     0.00  invisible
-  0.00     34.74     0.00  1726748     0.00     0.00  is_riding
-  0.00     34.74     0.00  1613387     0.00     0.00  rule_region_owners
-  0.00     34.74     0.00  1523708     0.00     0.00  uprivate
-  0.00     34.74     0.00  1511812     0.00     0.00  newterrain
-  0.00     34.74     0.00  1474687     0.00     0.00  leftship
-  0.00     34.74     0.00  1441945     0.00     0.00  is_mage
-  0.00     34.74     0.00  1380398     0.00     0.00  brelease
-  0.00     34.74     0.00  1380398     0.00     0.00  free_variables
-  0.00     34.74     0.00  1380398     0.00     0.00  nr_render
-  0.00     34.74     0.00  1380007     0.00     0.00  get_otherfaction
-  0.00     34.74     0.00  1342832     0.00     0.00  handle_event
-  0.00     34.74     0.00  1342381     0.00     0.00  release_data
-  0.00     34.74     0.00  1336242     0.00     0.00  rng_injectable_double
-  0.00     34.74     0.00  1295787     0.00     0.00  factionname
-  0.00     34.74     0.00  1291427     0.00     0.00  set_order
-  0.00     34.74     0.00  1252028     0.00     0.00  mkdata
-  0.00     34.74     0.00  1218663     0.00     0.00  select_weapon
-  0.00     34.74     0.00  1214628     0.00     0.00  is_allied
-  0.00     34.74     0.00  1177511     0.00     0.00  it_find
-  0.00     34.74     0.00  1160345     0.00     0.00  rhorses
-  0.00     34.74     0.00  1158076     0.00     0.00  getbuf
-  0.00     34.74     0.00  1132609     0.00     0.00  is_long
-  0.00     34.74     0.00  1067195     0.00     0.00  free_arg
-  0.00     34.74     0.00  1065211     0.00     0.00  shipname
-  0.00     34.74     0.00  1065211     0.00     0.00  write_shipname
-  0.00     34.74     0.00  1048274     0.00     0.00  cb_write_travelthru
-  0.00     34.74     0.00  1027665     0.00     0.00  init_order
-  0.00     34.74     0.00  1014205     0.00     0.00  add_seen
-  0.00     34.74     0.00  1009159     0.00     0.00  msg_create
-  0.00     34.74     0.00  1009028     0.00     0.00  msg_release
-  0.00     34.74     0.00   987612     0.00     0.00  get_astralplane
-  0.00     34.74     0.00   987488     0.00     0.00  is_astral
-  0.00     34.74     0.00   987128     0.00     0.00  strlcat
-  0.00     34.74     0.00   931076     0.00     0.00  change_resource
-  0.00     34.74     0.00   892307     0.00     0.00  learn_skill
-  0.00     34.74     0.00   888603     0.00     0.00  findunit
-  0.00     34.74     0.00   884940     0.00     0.00  itoa10
-  0.00     34.74     0.00   883617     0.00     0.00  eval_int
-  0.00     34.74     0.00   876979     0.00     0.00  count_enemies
-  0.00     34.74     0.00   868104     0.00     0.00  select_armor
-  0.00     34.74     0.00   843545     0.00     0.00  eval_if
-  0.00     34.74     0.00   840577     0.00     0.00  a_read_orig
-  0.00     34.74     0.00   840577     0.00     0.00  read_attribs
-  0.00     34.74     0.00   839970     0.00     0.00  write_attribs
-  0.00     34.74     0.00   832876     0.00     0.00  parse_int
-  0.00     34.74     0.00   822780     0.00     0.00  i_new
-  0.00     34.74     0.00   797288     0.00     0.00  can_survive
-  0.00     34.74     0.00   785221     0.00     0.00  trailinto
-  0.00     34.74     0.00   779868     0.00     0.00  a_new
-  0.00     34.74     0.00   779419     0.00     0.00  a_add
-  0.00     34.74     0.00   778818     0.00     0.00  describe_race
-  0.00     34.74     0.00   773191     0.00     0.00  hp_status
-  0.00     34.74     0.00   755575     0.00     0.00  cb_add_address
-  0.00     34.74     0.00   754589     0.00     0.00  preferred_weapon
-  0.00     34.74     0.00   752645     0.00     0.00  chance
-  0.00     34.74     0.00   748527     0.00     0.00  unit_can_study
-  0.00     34.74     0.00   744202     0.00     0.00  has_horses
-  0.00     34.74     0.00   734392     0.00     0.00  plane_height
-  0.00     34.74     0.00   734392     0.00     0.00  plane_width
-  0.00     34.74     0.00   717287     0.00     0.00  get_param_flt
-  0.00     34.74     0.00   717218     0.00     0.00  config_get_flt
-  0.00     34.74     0.00   669051     0.00     0.00  production
-  0.00     34.74     0.00   651711     0.00     0.00  oldcursename
-  0.00     34.74     0.00   647569     0.00     0.00  write_faction_reference
-  0.00     34.74     0.00   642406     0.00     0.00  write_building_reference
-  0.00     34.74     0.00   633429     0.00     0.00  msg_free
-  0.00     34.74     0.00   619425     0.00     0.00  getreload
-  0.00     34.74     0.00   617313     0.00     0.00  attack
-  0.00     34.74     0.00   615299     0.00     0.00  write_ship_reference
-  0.00     34.74     0.00   607926     0.00     0.00  writeorder
-  0.00     34.74     0.00   603524     0.00     0.00  set_number
-  0.00     34.74     0.00   603246     0.00     0.00  level_days
-  0.00     34.74     0.00   600145     0.00     0.00  u_setrace
-  0.00     34.74     0.00   599650     0.00     0.00  setstatus
-  0.00     34.74     0.00   598234     0.00     0.00  report_status
-  0.00     34.74     0.00   598129     0.00     0.00  u_setfaction
-  0.00     34.74     0.00   598069     0.00     0.00  uhash
-  0.00     34.74     0.00   597806     0.00     0.00  unit_get_spellbook
-  0.00     34.74     0.00   595705     0.00     0.00  unit_skill
-  0.00     34.74     0.00   595478     0.00     0.00  monster_kills_peasants
-  0.00     34.74     0.00   595472     0.00     0.00  age_unit
-  0.00     34.74     0.00   578591     0.00     0.00  heal_factor
-  0.00     34.74     0.00   560926     0.00     0.00  bt_find
-  0.00     34.74     0.00   534930     0.00     0.00  isparam
-  0.00     34.74     0.00   534762     0.00     0.00  enter_1
-  0.00     34.74     0.00   515911     0.00     0.00  write_regionname
-  0.00     34.74     0.00   515550     0.00     0.00  eval_region
-  0.00     34.74     0.00   515192     0.00     0.00  is_mourning
-  0.00     34.74     0.00   515192     0.00     0.00  owner_change
-  0.00     34.74     0.00   514146     0.00     0.00  koor_distance
-  0.00     34.74     0.00   512663     0.00     0.00  koor_distance_orig
-  0.00     34.74     0.00   508632     0.00     0.00  rule_blessed_harvest
-  0.00     34.74     0.00   494960     0.00     0.00  buforder
-  0.00     34.74     0.00   490901     0.00     0.00  largestbuilding
-  0.00     34.74     0.00   490896     0.00     0.00  wage
-  0.00     34.74     0.00   472418     0.00     0.00  produceexp
-  0.00     34.74     0.00   472418     0.00     0.00  produceexp_ex
-  0.00     34.74     0.00   470529     0.00     0.00  eval_resource
-  0.00     34.74     0.00   459083     0.00     0.00  findregion
-  0.00     34.74     0.00   447808     0.00     0.00  create_order
-  0.00     34.74     0.00   438629     0.00     0.00  maxworkingpeasants
-  0.00     34.74     0.00   435022     0.00     0.00  getskill
-  0.00     34.74     0.00   432940     0.00     0.00  curse_geteffect
-  0.00     34.74     0.00   417580     0.00     0.00  init_learning
-  0.00     34.74     0.00   417577     0.00     0.00  done_learning
-  0.00     34.74     0.00   417577     0.00     0.00  study_days
-  0.00     34.74     0.00   417577     0.00     0.00  study_speedup
-  0.00     34.74     0.00   417554     0.00     0.00  random_move_chance
-  0.00     34.74     0.00   396305     0.00     0.00  cmp_wage
-  0.00     34.74     0.00   392959     0.00     0.00  msg_addref
-  0.00     34.74     0.00   386740     0.00     0.00  cr_output_curses_compat
-  0.00     34.74     0.00   377253     0.00     0.00  guard_flags
-  0.00     34.74     0.00   374425     0.00     0.00  i_free
-  0.00     34.74     0.00   369586     0.00     0.00  r_connect
-  0.00     34.74     0.00   363071     0.00     0.00  hits
-  0.00     34.74     0.00   355423     0.00     0.00  deathcount
-  0.00     34.74     0.00   353788     0.00     0.00  add_seen_faction_i
-  0.00     34.74     0.00   353422     0.00     0.00  contest
-  0.00     34.74     0.00   353422     0.00     0.00  contest_classic
-  0.00     34.74     0.00   353422     0.00     0.00  skilldiff
-  0.00     34.74     0.00   348444     0.00     0.00  report_resource
-  0.00     34.74     0.00   337987     0.00     0.00  setguard
-  0.00     34.74     0.00   330438     0.00     0.00  cr_unit
-  0.00     34.74     0.00   329691     0.00     0.00  getguard
-  0.00     34.74     0.00   317735     0.00     0.00  monster_learn
-  0.00     34.74     0.00   317239     0.00     0.00  count_side
-  0.00     34.74     0.00   308950     0.00     0.00  r_demand
-  0.00     34.74     0.00   300810     0.00     0.00  count_enemies_i
-  0.00     34.74     0.00   298951     0.00     0.00  distance
-  0.00     34.74     0.00   297222     0.00     0.00  messagehash
-  0.00     34.74     0.00   293362     0.00     0.00  get_direction
-  0.00     34.74     0.00   285923     0.00     0.00  ualias
-  0.00     34.74     0.00   284005     0.00     0.00  read_unitid
-  0.00     34.74     0.00   282847     0.00     0.00  getunit
-  0.00     34.74     0.00   279072     0.00     0.00  cr_int
-  0.00     34.74     0.00   263302     0.00     0.00  reldirection
-  0.00     34.74     0.00   257723     0.00     0.00  i_remove
-  0.00     34.74     0.00   257693     0.00     0.00  rsethorses
-  0.00     34.74     0.00   252446     0.00     0.00  movewhere
-  0.00     34.74     0.00   251874     0.00     0.00  __at_hashkey
-  0.00     34.74     0.00   251867     0.00     0.00  attacks_per_round
-  0.00     34.74     0.00   251814     0.00     0.00  a_read_i
-  0.00     34.74     0.00   229715     0.00     0.00  rsettrees
-  0.00     34.74     0.00   228907     0.00     0.00  getid
-  0.00     34.74     0.00   221899     0.00     0.00  findunitg
-  0.00     34.74     0.00   221723     0.00     0.00  plane_center_x
-  0.00     34.74     0.00   221723     0.00     0.00  plane_center_y
-  0.00     34.74     0.00   218422     0.00     0.00  report_building
-  0.00     34.74     0.00   217696     0.00     0.00  can_give
-  0.00     34.74     0.00   217405     0.00     0.00  r_setdemand
-  0.00     34.74     0.00   216069     0.00     0.00  check_param
-  0.00     34.74     0.00   216069     0.00     0.00  config_token
-  0.00     34.74     0.00   209572     0.00     0.00  cr_region_header
-  0.00     34.74     0.00   204314     0.00     0.00  bt_changed
-  0.00     34.74     0.00   203117     0.00     0.00  atoip
-  0.00     34.74     0.00   201744     0.00     0.00  lovar
-  0.00     34.74     0.00   196476     0.00     0.00  b_finvisible
-  0.00     34.74     0.00   196476     0.00     0.00  b_rvisibleroad
-  0.00     34.74     0.00   192815     0.00     0.00  add_regionlist
-  0.00     34.74     0.00   192556     0.00     0.00  canride
-  0.00     34.74     0.00   191379     0.00     0.00  finditemtype
-  0.00     34.74     0.00   190469     0.00     0.00  border_name
-  0.00     34.74     0.00   190467     0.00     0.00  b_nameroad
-  0.00     34.74     0.00   190467     0.00     0.00  b_transparent
-  0.00     34.74     0.00   189341     0.00     0.00  rule_autowork
-  0.00     34.74     0.00   180818     0.00     0.00  buildingname
-  0.00     34.74     0.00   180818     0.00     0.00  write_buildingname
-  0.00     34.74     0.00   179761     0.00     0.00  cr_output_ship
-  0.00     34.74     0.00   179235     0.00     0.00  get_chaoscount
-  0.00     34.74     0.00   178429     0.00     0.00  a_removeall
-  0.00     34.74     0.00   178322     0.00     0.00  terrain_find_i
-  0.00     34.74     0.00   178311     0.00     0.00  region_setinfo
-  0.00     34.74     0.00   178290     0.00     0.00  rhash
-  0.00     34.74     0.00   178270     0.00     0.00  get_terrain
-  0.00     34.74     0.00   178257     0.00     0.00  key_get
-  0.00     34.74     0.00   178255     0.00     0.00  good_region
-  0.00     34.74     0.00   178254     0.00     0.00  age_piracy
-  0.00     34.74     0.00   178254     0.00     0.00  age_region
-  0.00     34.74     0.00   178254     0.00     0.00  age_traveldir
-  0.00     34.74     0.00   178254     0.00     0.00  do_battle
-  0.00     34.74     0.00   178254     0.00     0.00  drifting_ships
-  0.00     34.74     0.00   178254     0.00     0.00  enter_2
-  0.00     34.74     0.00   178254     0.00     0.00  expandwork
-  0.00     34.74     0.00   178254     0.00     0.00  live
-  0.00     34.74     0.00   178254     0.00     0.00  new_region
-  0.00     34.74     0.00   178254     0.00     0.00  produce
-  0.00     34.74     0.00   178254     0.00     0.00  readregion
-  0.00     34.74     0.00   178254     0.00     0.00  region_getinfo
-  0.00     34.74     0.00   178254     0.00     0.00  split_allocations
-  0.00     34.74     0.00   178254     0.00     0.00  writeregion
-  0.00     34.74     0.00   174968     0.00     0.00  get_familiar_mage
-  0.00     34.74     0.00   174677     0.00     0.00  cr_output_resource
-  0.00     34.74     0.00   169733     0.00     0.00  travelthru_add
-  0.00     34.74     0.00   163027     0.00     0.00  markets_module
-  0.00     34.74     0.00   157830     0.00     0.00  allowed_fly
-  0.00     34.74     0.00   154110     0.00     0.00  rule_stealth_anon
-  0.00     34.74     0.00   152803     0.00     0.00  free_node
-  0.00     34.74     0.00   152803     0.00     0.00  new_node
-  0.00     34.74     0.00   152504     0.00     0.00  plain_name
-  0.00     34.74     0.00   147171     0.00     0.00  building_finished
-  0.00     34.74     0.00   146997     0.00     0.00  dice_rand
-  0.00     34.74     0.00   146950     0.00     0.00  f_regionid_s
-  0.00     34.74     0.00   143730     0.00     0.00  rroad
-  0.00     34.74     0.00   141675     0.00     0.00  mknode
-  0.00     34.74     0.00   140305     0.00     0.00  set_resvalue
-  0.00     34.74     0.00   137709     0.00     0.00  CavalryBonus
-  0.00     34.74     0.00   133873     0.00     0.00  cr_region
-  0.00     34.74     0.00   131765     0.00     0.00  give_control_cmd
-  0.00     34.74     0.00   131722     0.00     0.00  give_cmd
-  0.00     34.74     0.00   130867     0.00     0.00  get_transporters
-  0.00     34.74     0.00   128596     0.00     0.00  check_errno
-  0.00     34.74     0.00   128135     0.00     0.00  rpline
-  0.00     34.74     0.00   127788     0.00     0.00  eval_direction
-  0.00     34.74     0.00   127674     0.00     0.00  eval_trailto
-  0.00     34.74     0.00   123744     0.00     0.00  arg_set
-  0.00     34.74     0.00   123513     0.00     0.00  eval_order
-  0.00     34.74     0.00   116914     0.00     0.00  fleechance
-  0.00     34.74     0.00   116914     0.00     0.00  horse_fleeing_bonus
-  0.00     34.74     0.00   116002     0.00     0.00  get_movement
-  0.00     34.74     0.00   115276     0.00     0.00  can_move
-  0.00     34.74     0.00   113844     0.00     0.00  translist
-  0.00     34.74     0.00   113487     0.00     0.00  next_region
-  0.00     34.74     0.00   112140     0.00     0.00  castle_name
-  0.00     34.74     0.00   112140     0.00     0.00  castle_name_i
-  0.00     34.74     0.00   110533     0.00     0.00  weapon_weight
-  0.00     34.74     0.00   110167     0.00     0.00  cr_resource
-  0.00     34.74     0.00   109785     0.00     0.00  move_unit
-  0.00     34.74     0.00   109377     0.00     0.00  free_regionlist
-  0.00     34.74     0.00   108560     0.00     0.00  eval_trail
-  0.00     34.74     0.00   108335     0.00     0.00  roadto
-  0.00     34.74     0.00   106919     0.00     0.00  mark_travelthru
-  0.00     34.74     0.00   106798     0.00     0.00  help_feed
-  0.00     34.74     0.00   105958     0.00     0.00  entrance_allowed
-  0.00     34.74     0.00   104830     0.00     0.00  cr_output_building
-  0.00     34.74     0.00   103784     0.00     0.00  move_cmd
-  0.00     34.74     0.00   103187     0.00     0.00  cycle_route
-  0.00     34.74     0.00   103079     0.00     0.00  rule_give
-  0.00     34.74     0.00   102761     0.00     0.00  check_give
-  0.00     34.74     0.00   102705     0.00     0.00  can_give_to
-  0.00     34.74     0.00   102149     0.00     0.00  cr_output_travelthru
-  0.00     34.74     0.00   101322     0.00     0.00  rsetherbs
-  0.00     34.74     0.00    96637     0.00     0.00  personcapacity
-  0.00     34.74     0.00    96637     0.00     0.00  walkingcapacity
-  0.00     34.74     0.00    96555     0.00     0.00  canwalk
-  0.00     34.74     0.00    96555     0.00     0.00  travel_i
-  0.00     34.74     0.00    96529     0.00     0.00  travel
-  0.00     34.74     0.00    96527     0.00     0.00  make_route
-  0.00     34.74     0.00    96482     0.00     0.00  travel_route
-  0.00     34.74     0.00    96450     0.00     0.00  cap_route
-  0.00     34.74     0.00    96450     0.00     0.00  movement_speed
-  0.00     34.74     0.00    96208     0.00     0.00  var_copy_regions
-  0.00     34.74     0.00    95593     0.00     0.00  can_leave
-  0.00     34.74     0.00    95533     0.00     0.00  give_item
-  0.00     34.74     0.00    93452     0.00     0.00  see_border
-  0.00     34.74     0.00    93120     0.00     0.00  change_reservation
-  0.00     34.74     0.00    93119     0.00     0.00  give_quota
-  0.00     34.74     0.00    93119     0.00     0.00  limited_give
-  0.00     34.74     0.00    87004     0.00     0.00  i_add
-  0.00     34.74     0.00    86400     0.00     0.00  spell_name
-  0.00     34.74     0.00    84017     0.00     0.00  random_neighbour
-  0.00     34.74     0.00    83859     0.00     0.00  reduce_weight
-  0.00     34.74     0.00    83224     0.00     0.00  trollbelts
-  0.00     34.74     0.00    80630     0.00     0.00  armor_bonus
-  0.00     34.74     0.00    80630     0.00     0.00  calculate_armor
-  0.00     34.74     0.00    80630     0.00     0.00  natural_armor
-  0.00     34.74     0.00    80630     0.00     0.00  select_magicarmor
-  0.00     34.74     0.00    80630     0.00     0.00  terminate
-  0.00     34.74     0.00    79772     0.00     0.00  entertainmoney
-  0.00     34.74     0.00    75797     0.00     0.00  buildingtype_exists
-  0.00     34.74     0.00    72692     0.00     0.00  rc_specialdamage
-  0.00     34.74     0.00    71416     0.00     0.00  reserve_i
-  0.00     34.74     0.00    70836     0.00     0.00  is_guardian_u
-  0.00     34.74     0.00    69432     0.00     0.00  getparam
-  0.00     34.74     0.00    66134     0.00     0.00  shipspeed
-  0.00     34.74     0.00    66058     0.00     0.00  ShipSpeedBonus
-  0.00     34.74     0.00    65345     0.00     0.00  region_get_morale
-  0.00     34.74     0.00    62267     0.00     0.00  get_migrants
-  0.00     34.74     0.00    61961     0.00     0.00  cr_output_messages
-  0.00     34.74     0.00    59694     0.00     0.00  r_insectstalled
-  0.00     34.74     0.00    58524     0.00     0.00  a_writeint
-  0.00     34.74     0.00    58518     0.00     0.00  a_readint
-  0.00     34.74     0.00    57367     0.00     0.00  count_travelthru
-  0.00     34.74     0.00    57138     0.00     0.00  getint
-  0.00     34.74     0.00    56646     0.00     0.00  write_group
-  0.00     34.74     0.00    56643     0.00     0.00  groupid
-  0.00     34.74     0.00    56503     0.00     0.00  find_group
-  0.00     34.74     0.00    56503     0.00     0.00  read_group
-  0.00     34.74     0.00    55547     0.00     0.00  ally_add
-  0.00     34.74     0.00    55350     0.00     0.00  can_start_guarding
-  0.00     34.74     0.00    54735     0.00     0.00  init_cb
-  0.00     34.74     0.00    54351     0.00     0.00  get_familiar
-  0.00     34.74     0.00    54318     0.00     0.00  getstrtoken
-  0.00     34.74     0.00    54163     0.00     0.00  var_copy_string
-  0.00     34.74     0.00    51239     0.00     0.00  read_faction_reference
-  0.00     34.74     0.00    51060     0.00     0.00  remove_skill
-  0.00     34.74     0.00    50673     0.00     0.00  update_resources
-  0.00     34.74     0.00    49331     0.00     0.00  _log_write
-  0.00     34.74     0.00    49331     0.00     0.00  log_prefix
-  0.00     34.74     0.00    49331     0.00     0.00  log_stdio
-  0.00     34.74     0.00    49317     0.00     0.00  log_write
-  0.00     34.74     0.00    49235     0.00     0.00  log_debug
-  0.00     34.74     0.00    48565     0.00     0.00  u_set_building
-  0.00     34.74     0.00    48457     0.00     0.00  bfindhash
-  0.00     34.74     0.00    48455     0.00     0.00  findbuilding
-  0.00     34.74     0.00    47562     0.00     0.00  rule_random_progress
-  0.00     34.74     0.00    47562     0.00     0.00  skill_weeks
-  0.00     34.74     0.00    47535     0.00     0.00  sk_set
-  0.00     34.74     0.00    47287     0.00     0.00  canswim
-  0.00     34.74     0.00    46742     0.00     0.00  findregionbyid
-  0.00     34.74     0.00    46224     0.00     0.00  eval_faction
-  0.00     34.74     0.00    46196     0.00     0.00  bhash
-  0.00     34.74     0.00    46184     0.00     0.00  age_building
-  0.00     34.74     0.00    45891     0.00     0.00  get_level
-  0.00     34.74     0.00    45860     0.00     0.00  print_items
-  0.00     34.74     0.00    45630     0.00     0.00  cr_output_resources
-  0.00     34.74     0.00    44216     0.00     0.00  flying_ship
-  0.00     34.74     0.00    44190     0.00     0.00  maintain
-  0.00     34.74     0.00    41882     0.00     0.00  GiveRestriction
-  0.00     34.74     0.00    41255     0.00     0.00  var_copy_order
-  0.00     34.74     0.00    41248     0.00     0.00  msg_feedback
-  0.00     34.74     0.00    40692     0.00     0.00  get_gamedate
-  0.00     34.74     0.00    40099     0.00     0.00  eval_skill
-  0.00     34.74     0.00    39955     0.00     0.00  write_of
-  0.00     34.74     0.00    39926     0.00     0.00  check_leuchtturm
-  0.00     34.74     0.00    39836     0.00     0.00  read_of
-  0.00     34.74     0.00    39810     0.00     0.00  check_ship_allowed
-  0.00     34.74     0.00    37974     0.00     0.00  deathcounts
-  0.00     34.74     0.00    37931     0.00     0.00  centre
-  0.00     34.74     0.00    37453     0.00     0.00  shiptrail_age
-  0.00     34.74     0.00    37453     0.00     0.00  shiptrail_init
-  0.00     34.74     0.00    37202     0.00     0.00  var_free_string
-  0.00     34.74     0.00    37024     0.00     0.00  b_blocknone
-  0.00     34.74     0.00    35708     0.00     0.00  reserve_cmd
-  0.00     34.74     0.00    35708     0.00     0.00  reserve_self
-  0.00     34.74     0.00    34565     0.00     0.00  ur_add
-  0.00     34.74     0.00    34420     0.00     0.00  a_writeshorts
-  0.00     34.74     0.00    34409     0.00     0.00  add_income
-  0.00     34.74     0.00    34382     0.00     0.00  a_readshorts
-  0.00     34.74     0.00    34221     0.00     0.00  eff_weight
-  0.00     34.74     0.00    34220     0.00     0.00  shiptrail_read
-  0.00     34.74     0.00    32727     0.00     0.00  region_set_morale
-  0.00     34.74     0.00    32679     0.00     0.00  read_owner
-  0.00     34.74     0.00    32679     0.00     0.00  rule_auto_taxation
-  0.00     34.74     0.00    32670     0.00     0.00  calculate_emigration
-  0.00     34.74     0.00    32670     0.00     0.00  growing_herbs
-  0.00     34.74     0.00    32670     0.00     0.00  growing_trees
-  0.00     34.74     0.00    32670     0.00     0.00  migrate
-  0.00     34.74     0.00    32670     0.00     0.00  morale_update
-  0.00     34.74     0.00    32670     0.00     0.00  peasants
-  0.00     34.74     0.00    32670     0.00     0.00  write_owner
-  0.00     34.74     0.00    31688     0.00     0.00  cr_building
-  0.00     34.74     0.00    31214     0.00     0.00  message_faction
-  0.00     34.74     0.00    30872     0.00     0.00  resolve_faction
-  0.00     34.74     0.00    30634     0.00     0.00  guard_off_cmd
-  0.00     34.74     0.00    30554     0.00     0.00  guard_on_cmd
-  0.00     34.74     0.00    30308     0.00     0.00  peasant_growth_factor
-  0.00     34.74     0.00    30250     0.00     0.00  peasant_luck_effect
-  0.00     34.74     0.00    30150     0.00     0.00  ship_damage_percent
-  0.00     34.74     0.00    28818     0.00     0.00  findship
-  0.00     34.74     0.00    28818     0.00     0.00  sfindhash
-  0.00     34.74     0.00    27694     0.00     0.00  dice
-  0.00     34.74     0.00    27694     0.00     0.00  dragon_affinity_value
-  0.00     34.74     0.00    27640     0.00     0.00  u_set_ship
-  0.00     34.74     0.00    26995     0.00     0.00  inside_building
-  0.00     34.74     0.00    26515     0.00     0.00  b_uinvisible
-  0.00     34.74     0.00    26164     0.00     0.00  building_is_active
-  0.00     34.74     0.00    26045     0.00     0.00  curse_cansee
-  0.00     34.74     0.00    26045     0.00     0.00  msg_curse
-  0.00     34.74     0.00    25857     0.00     0.00  eval_int36
-  0.00     34.74     0.00    25441     0.00     0.00  rmt_find
-  0.00     34.74     0.00    25088     0.00     0.00  kill_troop
-  0.00     34.74     0.00    25088     0.00     0.00  rmfighter
-  0.00     34.74     0.00    24449     0.00     0.00  seematrix
-  0.00     34.74     0.00    23781     0.00     0.00  guard
-  0.00     34.74     0.00    23342     0.00     0.00  shiptrail_finalize
-  0.00     34.74     0.00    23233     0.00     0.00  cr_faction
-  0.00     34.74     0.00    22843     0.00     0.00  parser_end
-  0.00     34.74     0.00    22644     0.00     0.00  new_border
-  0.00     34.74     0.00    22643     0.00     0.00  b_validroad
-  0.00     34.74     0.00    22643     0.00     0.00  b_writeroad
-  0.00     34.74     0.00    22638     0.00     0.00  find_bordertype
-  0.00     34.74     0.00    22637     0.00     0.00  b_readroad
-  0.00     34.74     0.00    22301     0.00     0.00  army_index
-  0.00     34.74     0.00    21517     0.00     0.00  chaosfactor
-  0.00     34.74     0.00    21500     0.00     0.00  resource2luxury
-  0.00     34.74     0.00    21443     0.00     0.00  ridingcapacity
-  0.00     34.74     0.00    20072     0.00     0.00  cr_skill
-  0.00     34.74     0.00    19671     0.00     0.00  buildingcapacity
-  0.00     34.74     0.00    19545     0.00     0.00  eval_ship
-  0.00     34.74     0.00    19089     0.00     0.00  st_find_i
-  0.00     34.74     0.00    19085     0.00     0.00  shash
-  0.00     34.74     0.00    19082     0.00     0.00  st_find
-  0.00     34.74     0.00    18971     0.00     0.00  building_set_owner
-  0.00     34.74     0.00    18963     0.00     0.00  ship_set_owner
-  0.00     34.74     0.00    18788     0.00     0.00  sideabkz
-  0.00     34.74     0.00    18059     0.00     0.00  add_chaoscount
-  0.00     34.74     0.00    17289     0.00     0.00  parser_popstate
-  0.00     34.74     0.00    17289     0.00     0.00  parser_pushstate
-  0.00     34.74     0.00    16751     0.00     0.00  getuint
-  0.00     34.74     0.00    16737     0.00     0.00  dir_invert
-  0.00     34.74     0.00    16669     0.00     0.00  IsImmune
-  0.00     34.74     0.00    16596     0.00     0.00  entertain_cmd
-  0.00     34.74     0.00    16493     0.00     0.00  NewbieImmunity
-  0.00     34.74     0.00    16191     0.00     0.00  add_donation
-  0.00     34.74     0.00    16132     0.00     0.00  magic_lowskill
-  0.00     34.74     0.00    15797     0.00     0.00  sell
-  0.00     34.74     0.00    15708     0.00     0.00  add_travelthru_addresses
-  0.00     34.74     0.00    15361     0.00     0.00  is_guarded
-  0.00     34.74     0.00    15359     0.00     0.00  cinfo_building
-  0.00     34.74     0.00    15240     0.00     0.00  msg_error
-  0.00     34.74     0.00    15102     0.00     0.00  cmistake
-  0.00     34.74     0.00    14994     0.00     0.00  cr_string
-  0.00     34.74     0.00    14191     0.00     0.00  flee
-  0.00     34.74     0.00    14111     0.00     0.00  shiptrail_write
-  0.00     34.74     0.00    13500     0.00     0.00  enoughsailors
-  0.00     34.74     0.00    12933     0.00     0.00  owner_buildingtyp
-  0.00     34.74     0.00    12407     0.00     0.00  cr_regions
-  0.00     34.74     0.00    12398     0.00     0.00  fbattlerecord
-  0.00     34.74     0.00    12265     0.00     0.00  r_addmessage
-  0.00     34.74     0.00    11989     0.00     0.00  resolve_unit
-  0.00     34.74     0.00    11880     0.00     0.00  cansee_unit
-  0.00     34.74     0.00    11599     0.00     0.00  building_protection
-  0.00     34.74     0.00    11540     0.00     0.00  absorbed_by_monster
-  0.00     34.74     0.00    11159     0.00     0.00  expandentertainment
-  0.00     34.74     0.00    11087     0.00     0.00  do_work
-  0.00     34.74     0.00    11052     0.00     0.00  find_spell
-  0.00     34.74     0.00    11052     0.00     0.00  sp_alias
-  0.00     34.74     0.00    10600     0.00     0.00  make_cmd
-  0.00     34.74     0.00    10475     0.00     0.00  i_freeall
-  0.00     34.74     0.00    10417     0.00     0.00  free_luxuries
-  0.00     34.74     0.00    10344     0.00     0.00  cansail
-  0.00     34.74     0.00    10232     0.00     0.00  update_lighthouse
-  0.00     34.74     0.00     9763     0.00     0.00  read_reference
-  0.00     34.74     0.00     9680     0.00     0.00  bewegung_blockiert_von
-  0.00     34.74     0.00     9352     0.00     0.00  write_spell_modifier
-  0.00     34.74     0.00     9147     0.00     0.00  merge_messages
-  0.00     34.74     0.00     9147     0.00     0.00  split_messages
-  0.00     34.74     0.00     8993     0.00     0.00  addtoken
-  0.00     34.74     0.00     8962     0.00     0.00  hpflee
-  0.00     34.74     0.00     8898     0.00     0.00  ucontact
-  0.00     34.74     0.00     8892     0.00     0.00  astralregions
-  0.00     34.74     0.00     8892     0.00     0.00  r_astral_to_standard
-  0.00     34.74     0.00     8788     0.00     0.00  xml_cleanup_string
-  0.00     34.74     0.00     8622     0.00     0.00  read_unit_reference
-  0.00     34.74     0.00     8191     0.00     0.00  read_seenspell
-  0.00     34.74     0.00     8187     0.00     0.00  write_seenspell
-  0.00     34.74     0.00     8034     0.00     0.00  u_geteffstealth
-  0.00     34.74     0.00     7964     0.00     0.00  nrt_section
-  0.00     34.74     0.00     7957     0.00     0.00  magic_resistance
-  0.00     34.74     0.00     7915     0.00     0.00  visible_default
-  0.00     34.74     0.00     7889     0.00     0.00  special_resources
-  0.00     34.74     0.00     7815     0.00     0.00  already_seen
-  0.00     34.74     0.00     7630     0.00     0.00  addstrlist
-  0.00     34.74     0.00     7493     0.00     0.00  required
-  0.00     34.74     0.00     7336     0.00     0.00  get_alive
-  0.00     34.74     0.00     7254     0.00     0.00  ship_ready
-  0.00     34.74     0.00     7220     0.00     0.00  a_writestring
-  0.00     34.74     0.00     7153     0.00     0.00  cr_ship
-  0.00     34.74     0.00     7085     0.00     0.00  a_readprivate
-  0.00     34.74     0.00     6962     0.00     0.00  leave_trail
-  0.00     34.74     0.00     6962     0.00     0.00  set_coast
-  0.00     34.74     0.00     6787     0.00     0.00  unicode_utf8_strcasecmp
-  0.00     34.74     0.00     6576     0.00     0.00  xml_bvalue
-  0.00     34.74     0.00     6530     0.00     0.00  findparam_ex
-  0.00     34.74     0.00     5988     0.00     0.00  herbsearch
-  0.00     34.74     0.00     5966     0.00     0.00  ntimespprob
-  0.00     34.74     0.00     5925     0.00     0.00  addally
-  0.00     34.74     0.00     5916     0.00     0.00  buy
-  0.00     34.74     0.00     5907     0.00     0.00  cinfo_simple
-  0.00     34.74     0.00     5810     0.00     0.00  report_transfer
-  0.00     34.74     0.00     5596     0.00     0.00  drain_exp
-  0.00     34.74     0.00     5588     0.00     0.00  get_locale
-  0.00     34.74     0.00     5453     0.00     0.00  xml_ivalue
-  0.00     34.74     0.00     5384     0.00     0.00  teach_cmd
-  0.00     34.74     0.00     5358     0.00     0.00  get_spchange
-  0.00     34.74     0.00     5358     0.00     0.00  max_spellpoints
-  0.00     34.74     0.00     5354     0.00     0.00  xml_readtext
-  0.00     34.74     0.00     5330     0.00     0.00  freestrlist
-  0.00     34.74     0.00     5049     0.00     0.00  find_piracy_target
-  0.00     34.74     0.00     5049     0.00     0.00  parse_ids
-  0.00     34.74     0.00     5049     0.00     0.00  piracy_cmd
-  0.00     34.74     0.00     5049     0.00     0.00  validate_pirate
-  0.00     34.74     0.00     4915     0.00     0.00  get_spellpoints
-  0.00     34.74     0.00     4875     0.00     0.00  get_combatspell
-  0.00     34.74     0.00     4782     0.00     0.00  select_recruitment
-  0.00     34.74     0.00     4629     0.00     0.00  expandselling
-  0.00     34.74     0.00     4475     0.00     0.00  matmod
-  0.00     34.74     0.00     4384     0.00     0.00  lparagraph
-  0.00     34.74     0.00     4384     0.00     0.00  spunit
-  0.00     34.74     0.00     4361     0.00     0.00  can_takeoff
-  0.00     34.74     0.00     4261     0.00     0.00  findbuildingtype
-  0.00     34.74     0.00     4259     0.00     0.00  findshiptype
-  0.00     34.74     0.00     4162     0.00     0.00  spell_info
-  0.00     34.74     0.00     4066     0.00     0.00  buildingmaintenance
-  0.00     34.74     0.00     4052     0.00     0.00  c_clearflag
-  0.00     34.74     0.00     4052     0.00     0.00  chash
-  0.00     34.74     0.00     4052     0.00     0.00  curse_age
-  0.00     34.74     0.00     4052     0.00     0.00  curse_init
-  0.00     34.74     0.00     4024     0.00     0.00  curse_write
-  0.00     34.74     0.00     4020     0.00     0.00  curse_read
-  0.00     34.74     0.00     3862     0.00     0.00  unit_setname
-  0.00     34.74     0.00     3717     0.00     0.00  free_castorders
-  0.00     34.74     0.00     3659     0.00     0.00  ExpensiveMigrants
-  0.00     34.74     0.00     3659     0.00     0.00  is_migrant
-  0.00     34.74     0.00     3639     0.00     0.00  setreload
-  0.00     34.74     0.00     3626     0.00     0.00  create_item
-  0.00     34.74     0.00     3597     0.00     0.00  chaos
-  0.00     34.74     0.00     3496     0.00     0.00  locale_setstring
-  0.00     34.74     0.00     3438     0.00     0.00  lighthouse_range
-  0.00     34.74     0.00     3438     0.00     0.00  prepare_lighthouse
-  0.00     34.74     0.00     3355     0.00     0.00  region_getresource
-  0.00     34.74     0.00     3203     0.00     0.00  faction_get_spellbook
-  0.00     34.74     0.00     3203     0.00     0.00  join_battle
-  0.00     34.74     0.00     3178     0.00     0.00  scale_number
-  0.00     34.74     0.00     3171     0.00     0.00  get_spellbook
-  0.00     34.74     0.00     3152     0.00     0.00  scareaway
-  0.00     34.74     0.00     3123     0.00     0.00  limit_resource
-  0.00     34.74     0.00     3117     0.00     0.00  name_cmd
-  0.00     34.74     0.00     3114     0.00     0.00  rename_cmd
-  0.00     34.74     0.00     3113     0.00     0.00  t_new
-  0.00     34.74     0.00     3111     0.00     0.00  sidename
-  0.00     34.74     0.00     3110     0.00     0.00  default_order
-  0.00     34.74     0.00     3100     0.00     0.00  required
-  0.00     34.74     0.00     3096     0.00     0.00  tt_find
-  0.00     34.74     0.00     3078     0.00     0.00  allocate_resource
-  0.00     34.74     0.00     3003     0.00     0.00  roqf_factor
-  0.00     34.74     0.00     3002     0.00     0.00  forbiddenid
-  0.00     34.74     0.00     2977     0.00     0.00  change_effect
-  0.00     34.74     0.00     2931     0.00     0.00  name_unit
-  0.00     34.74     0.00     2913     0.00     0.00  dead_fighters
-  0.00     34.74     0.00     2889     0.00     0.00  create_unit
-  0.00     34.74     0.00     2889     0.00     0.00  createunitid
-  0.00     34.74     0.00     2854     0.00     0.00  is_attacker
-  0.00     34.74     0.00     2831     0.00     0.00  countspells
-  0.00     34.74     0.00     2818     0.00     0.00  newunitid
-  0.00     34.74     0.00     2742     0.00     0.00  get_equipment
-  0.00     34.74     0.00     2723     0.00     0.00  get_allocator
-  0.00     34.74     0.00     2665     0.00     0.00  findnewunit
-  0.00     34.74     0.00     2665     0.00     0.00  read_newunitid
-  0.00     34.74     0.00     2650     0.00     0.00  a_initeffect
-  0.00     34.74     0.00     2491     0.00     0.00  a_readeffect
-  0.00     34.74     0.00     2468     0.00     0.00  find_argtype
-  0.00     34.74     0.00     2468     0.00     0.00  tsf_find
-  0.00     34.74     0.00     2457     0.00     0.00  set_level
-  0.00     34.74     0.00     2421     0.00     0.00  set_racename
-  0.00     34.74     0.00     2375     0.00     0.00  equip_unit
-  0.00     34.74     0.00     2375     0.00     0.00  equip_unit_mask
-  0.00     34.74     0.00     2324     0.00     0.00  read_spellbook
-  0.00     34.74     0.00     2321     0.00     0.00  write_spellbook
-  0.00     34.74     0.00     2304     0.00     0.00  killunit_write
-  0.00     34.74     0.00     2299     0.00     0.00  killunit_read
-  0.00     34.74     0.00     2274     0.00     0.00  cinfo_ship
-  0.00     34.74     0.00     2148     0.00     0.00  demon_skillchange
-  0.00     34.74     0.00     2112     0.00     0.00  spellbook_get
-  0.00     34.74     0.00     2096     0.00     0.00  a_writeeffect
-  0.00     34.74     0.00     2092     0.00     0.00  init_mage
-  0.00     34.74     0.00     2091     0.00     0.00  read_mage
-  0.00     34.74     0.00     2089     0.00     0.00  write_mage
-  0.00     34.74     0.00     2081     0.00     0.00  a_init_reportspell
-  0.00     34.74     0.00     2081     0.00     0.00  cr_reportspell
-  0.00     34.74     0.00     2081     0.00     0.00  nr_spell
-  0.00     34.74     0.00     2081     0.00     0.00  nr_spell_syntax
-  0.00     34.74     0.00     2073     0.00     0.00  set_enemy
-  0.00     34.74     0.00     2013     0.00     0.00  display_cmd
-  0.00     34.74     0.00     2008     0.00     0.00  default_name
-  0.00     34.74     0.00     1936     0.00     0.00  transfermen
-  0.00     34.74     0.00     1921     0.00     0.00  show_allies_cr
-  0.00     34.74     0.00     1911     0.00     0.00  cinfo_magicresistance
-  0.00     34.74     0.00     1909     0.00     0.00  nrt_register
-  0.00     34.74     0.00     1909     0.00     0.00  section_find
-  0.00     34.74     0.00     1888     0.00     0.00  show_allies
-  0.00     34.74     0.00     1873     0.00     0.00  set_spellpoints
-  0.00     34.74     0.00     1848     0.00     0.00  uunhash
-  0.00     34.74     0.00     1835     0.00     0.00  recruit
-  0.00     34.74     0.00     1803     0.00     0.00  gift_items
-  0.00     34.74     0.00     1794     0.00     0.00  remove_unit
-  0.00     34.74     0.00     1761     0.00     0.00  give_horses
-  0.00     34.74     0.00     1725     0.00     0.00  max_magicians
-  0.00     34.74     0.00     1716     0.00     0.00  recruit_cost
-  0.00     34.74     0.00     1711     0.00     0.00  cr_output_spells
-  0.00     34.74     0.00     1700     0.00     0.00  status_cmd
-  0.00     34.74     0.00     1697     0.00     0.00  new_group
-  0.00     34.74     0.00     1670     0.00     0.00  any_recruiters
-  0.00     34.74     0.00     1670     0.00     0.00  horse_recruiters
-  0.00     34.74     0.00     1667     0.00     0.00  add_recruits
-  0.00     34.74     0.00     1610     0.00     0.00  transfer_curse
-  0.00     34.74     0.00     1594     0.00     0.00  do_recruiting
-  0.00     34.74     0.00     1594     0.00     0.00  expandrecruit
-  0.00     34.74     0.00     1594     0.00     0.00  free_recruitments
-  0.00     34.74     0.00     1584     0.00     0.00  produce_resource
-  0.00     34.74     0.00     1583     0.00     0.00  allied_skilllimit
-  0.00     34.74     0.00     1583     0.00     0.00  reduce_skill
-  0.00     34.74     0.00     1583     0.00     0.00  skill_limit
-  0.00     34.74     0.00     1582     0.00     0.00  resource2potion
-  0.00     34.74     0.00     1582     0.00     0.00  write_triggers
-  0.00     34.74     0.00     1573     0.00     0.00  usetprivate
-  0.00     34.74     0.00     1572     0.00     0.00  write_score
-  0.00     34.74     0.00     1570     0.00     0.00  read_triggers
-  0.00     34.74     0.00     1564     0.00     0.00  init_handler
-  0.00     34.74     0.00     1564     0.00     0.00  write_handler
-  0.00     34.74     0.00     1557     0.00     0.00  read_handler
-  0.00     34.74     0.00     1529     0.00     0.00  ship_owner_ex
-  0.00     34.74     0.00     1524     0.00     0.00  spellbook_add
-  0.00     34.74     0.00     1522     0.00     0.00  a_write_unit
-  0.00     34.74     0.00     1522     0.00     0.00  age_unit
-  0.00     34.74     0.00     1520     0.00     0.00  eval_race
-  0.00     34.74     0.00     1520     0.00     0.00  set_friendly
-  0.00     34.74     0.00     1486     0.00     0.00  message_all
-  0.00     34.74     0.00     1466     0.00     0.00  resolve_region_id
-  0.00     34.74     0.00     1429     0.00     0.00  set_attacker
-  0.00     34.74     0.00     1422     0.00     0.00  attrib_allocation
-  0.00     34.74     0.00     1363     0.00     0.00  age_skeleton
-  0.00     34.74     0.00     1361     0.00     0.00  unit_has_cursed_item
-  0.00     34.74     0.00     1339     0.00     0.00  get_combatspelllevel
-  0.00     34.74     0.00     1301     0.00     0.00  leveled_allocation
-  0.00     34.74     0.00     1301     0.00     0.00  rm_get
-  0.00     34.74     0.00     1297     0.00     0.00  add_tactics
-  0.00     34.74     0.00     1297     0.00     0.00  battle_punit
-  0.00     34.74     0.00     1297     0.00     0.00  free_fighter
-  0.00     34.74     0.00     1297     0.00     0.00  hunted_dir
-  0.00     34.74     0.00     1297     0.00     0.00  make_fighter
-  0.00     34.74     0.00     1295     0.00     0.00  find_side
-  0.00     34.74     0.00     1270     0.00     0.00  set_group
-  0.00     34.74     0.00     1245     0.00     0.00  use_default
-  0.00     34.74     0.00     1239     0.00     0.00  build
-  0.00     34.74     0.00     1214     0.00     0.00  rule_faction_limit
-  0.00     34.74     0.00     1202     0.00     0.00  resolve_familiar
-  0.00     34.74     0.00     1201     0.00     0.00  change_spellpoints
-  0.00     34.74     0.00     1199     0.00     0.00  res_changeaura
-  0.00     34.74     0.00     1196     0.00     0.00  eval_localize
-  0.00     34.74     0.00     1140     0.00     0.00  read_region_reference
-  0.00     34.74     0.00     1139     0.00     0.00  region_setresource
-  0.00     34.74     0.00     1138     0.00     0.00  read_targetregion
-  0.00     34.74     0.00     1125     0.00     0.00  leave_building
-  0.00     34.74     0.00     1119     0.00     0.00  write_region_reference
-  0.00     34.74     0.00     1117     0.00     0.00  write_targetregion
-  0.00     34.74     0.00     1091     0.00     0.00  loot_quota
-  0.00     34.74     0.00     1078     0.00     0.00  resolve_mage
-  0.00     34.74     0.00     1042     0.00     0.00  in_safe_building
-  0.00     34.74     0.00     1041     0.00     0.00  findskill
-  0.00     34.74     0.00      967     0.00     0.00  count_all
-  0.00     34.74     0.00      960     0.00     0.00  tax_cmd
-  0.00     34.74     0.00      957     0.00     0.00  crt_register
-  0.00     34.74     0.00      957     0.00     0.00  mt_id
-  0.00     34.74     0.00      957     0.00     0.00  mt_new
-  0.00     34.74     0.00      957     0.00     0.00  mt_register
-  0.00     34.74     0.00      955     0.00     0.00  movement_error
-  0.00     34.74     0.00      946     0.00     0.00  sparagraph
-  0.00     34.74     0.00      946     0.00     0.00  split_paragraph
-  0.00     34.74     0.00      923     0.00     0.00  race_namegen
-  0.00     34.74     0.00      894     0.00     0.00  make_follow
-  0.00     34.74     0.00      834     0.00     0.00  eval_resources
-  0.00     34.74     0.00      820     0.00     0.00  curse_geteffect_int
-  0.00     34.74     0.00      799     0.00     0.00  setstealth_cmd
-  0.00     34.74     0.00      793     0.00     0.00  is_familiar
-  0.00     34.74     0.00      791     0.00     0.00  ally_cmd
-  0.00     34.74     0.00      791     0.00     0.00  getfaction
-  0.00     34.74     0.00      786     0.00     0.00  average_score_of_age
-  0.00     34.74     0.00      785     0.00     0.00  lua_canuse_item
-  0.00     34.74     0.00      769     0.00     0.00  shock_write
-  0.00     34.74     0.00      768     0.00     0.00  shock_read
-  0.00     34.74     0.00      767     0.00     0.00  spellcost
-  0.00     34.74     0.00      763     0.00     0.00  init_skillmod
-  0.00     34.74     0.00      760     0.00     0.00  read_familiar
-  0.00     34.74     0.00      760     0.00     0.00  read_magician
-  0.00     34.74     0.00      760     0.00     0.00  set_familiar
-  0.00     34.74     0.00      754     0.00     0.00  checkunitnumber
-  0.00     34.74     0.00      754     0.00     0.00  rule_alliance_limit
-  0.00     34.74     0.00      752     0.00     0.00  monster_attack
-  0.00     34.74     0.00      735     0.00     0.00  join_group
-  0.00     34.74     0.00      708     0.00     0.00  age_ghoul
-  0.00     34.74     0.00      702     0.00     0.00  max_transfers
-  0.00     34.74     0.00      688     0.00     0.00  age_zombie
-  0.00     34.74     0.00      677     0.00     0.00  slipthru
-  0.00     34.74     0.00      666     0.00     0.00  generic_name
-  0.00     34.74     0.00      663     0.00     0.00  expandtax
-  0.00     34.74     0.00      659     0.00     0.00  can_give_men
-  0.00     34.74     0.00      621     0.00     0.00  build_building
-  0.00     34.74     0.00      621     0.00     0.00  group_cmd
-  0.00     34.74     0.00      608     0.00     0.00  co_get_region
-  0.00     34.74     0.00      604     0.00     0.00  eval_spell
-  0.00     34.74     0.00      590     0.00     0.00  use_cmd
-  0.00     34.74     0.00      590     0.00     0.00  use_item
-  0.00     34.74     0.00      588     0.00     0.00  give_men
-  0.00     34.74     0.00      574     0.00     0.00  battle_attacks
-  0.00     34.74     0.00      574     0.00     0.00  battle_flee
-  0.00     34.74     0.00      574     0.00     0.00  battle_update
-  0.00     34.74     0.00      573     0.00     0.00  join_path
-  0.00     34.74     0.00      569     0.00     0.00  relpath
-  0.00     34.74     0.00      569     0.00     0.00  u_seteffstealth
-  0.00     34.74     0.00      564     0.00     0.00  reportpath
-  0.00     34.74     0.00      560     0.00     0.00  oldterrain
-  0.00     34.74     0.00      554     0.00     0.00  a_finalizeeffect
-  0.00     34.74     0.00      552     0.00     0.00  free_side
-  0.00     34.74     0.00      552     0.00     0.00  make_side
-  0.00     34.74     0.00      552     0.00     0.00  print_fighters
-  0.00     34.74     0.00      524     0.00     0.00  remove_exclusive
-  0.00     34.74     0.00      508     0.00     0.00  MagicRegeneration
-  0.00     34.74     0.00      508     0.00     0.00  regeneration
-  0.00     34.74     0.00      505     0.00     0.00  mm_smithy
-  0.00     34.74     0.00      501     0.00     0.00  xml_fvalue
-  0.00     34.74     0.00      499     0.00     0.00  MagicPower
-  0.00     34.74     0.00      492     0.00     0.00  u_hasspell
-  0.00     34.74     0.00      482     0.00     0.00  knowsspell
-  0.00     34.74     0.00      481     0.00     0.00  count_units
-  0.00     34.74     0.00      475     0.00     0.00  follow_ship
-  0.00     34.74     0.00      465     0.00     0.00  get_function
-  0.00     34.74     0.00      464     0.00     0.00  lastregion
-  0.00     34.74     0.00      462     0.00     0.00  game_name
-  0.00     34.74     0.00      461     0.00     0.00  maxheroes
-  0.00     34.74     0.00      457     0.00     0.00  FactionSpells
-  0.00     34.74     0.00      453     0.00     0.00  find_groupbyname
-  0.00     34.74     0.00      451     0.00     0.00  mtype_get_param
-  0.00     34.74     0.00      443     0.00     0.00  change_maxspellpoints
-  0.00     34.74     0.00      443     0.00     0.00  res_changepermaura
-  0.00     34.74     0.00      433     0.00     0.00  make_otherfaction
-  0.00     34.74     0.00      432     0.00     0.00  helping
-  0.00     34.74     0.00      428     0.00     0.00  free_nodes
-  0.00     34.74     0.00      425     0.00     0.00  reportcasualties
-  0.00     34.74     0.00      412     0.00     0.00  do_combatmagic
-  0.00     34.74     0.00      406     0.00     0.00  PopulationDamage
-  0.00     34.74     0.00      406     0.00     0.00  faction_setorigin
-  0.00     34.74     0.00      405     0.00     0.00  enter_building
-  0.00     34.74     0.00      404     0.00     0.00  usetpotionuse
-  0.00     34.74     0.00      401     0.00     0.00  mayenter
-  0.00     34.74     0.00      396     0.00     0.00  show_new_spells
-  0.00     34.74     0.00      383     0.00     0.00  rt_get_or_create
-  0.00     34.74     0.00      380     0.00     0.00  create_spellbook
-  0.00     34.74     0.00      378     0.00     0.00  get_tactics
-  0.00     34.74     0.00      377     0.00     0.00  manufacture
-  0.00     34.74     0.00      371     0.00     0.00  add_translation
-  0.00     34.74     0.00      365     0.00     0.00  unit_getspell
-  0.00     34.74     0.00      361     0.00     0.00  regionname
-  0.00     34.74     0.00      356     0.00     0.00  cr_race
-  0.00     34.74     0.00      349     0.00     0.00  research_cmd
-  0.00     34.74     0.00      348     0.00     0.00  begin_potion
-  0.00     34.74     0.00      348     0.00     0.00  mail_cmd
-  0.00     34.74     0.00      348     0.00     0.00  ugetpotionuse
-  0.00     34.74     0.00      348     0.00     0.00  use_potion
-  0.00     34.74     0.00      345     0.00     0.00  do_potion
-  0.00     34.74     0.00      345     0.00     0.00  end_potion
-  0.00     34.74     0.00      343     0.00     0.00  rough_amount
-  0.00     34.74     0.00      338     0.00     0.00  findrace
-  0.00     34.74     0.00      328     0.00     0.00  display_potion
-  0.00     34.74     0.00      324     0.00     0.00  add_itemname_cb
-  0.00     34.74     0.00      324     0.00     0.00  add_resourcename_cb
-  0.00     34.74     0.00      324     0.00     0.00  caught_target
-  0.00     34.74     0.00      319     0.00     0.00  loot_items
-  0.00     34.74     0.00      314     0.00     0.00  CavalrySkill
-  0.00     34.74     0.00      312     0.00     0.00  continue_ship
-  0.00     34.74     0.00      307     0.00     0.00  getship
-  0.00     34.74     0.00      303     0.00     0.00  create_castorder
-  0.00     34.74     0.00      303     0.00     0.00  free_castorder
-  0.00     34.74     0.00      298     0.00     0.00  plan_dragon
-  0.00     34.74     0.00      295     0.00     0.00  age_dragon
-  0.00     34.74     0.00      287     0.00     0.00  factionorders
-  0.00     34.74     0.00      286     0.00     0.00  checkpasswd
-  0.00     34.74     0.00      286     0.00     0.00  password_verify
-  0.00     34.74     0.00      279     0.00     0.00  cr_spell
-  0.00     34.74     0.00      273     0.00     0.00  pay_spell
-  0.00     34.74     0.00      267     0.00     0.00  freetokens
-  0.00     34.74     0.00      266     0.00     0.00  age_undead
-  0.00     34.74     0.00      255     0.00     0.00  select_spellbook
-  0.00     34.74     0.00      252     0.00     0.00  path_exists
-  0.00     34.74     0.00      251     0.00     0.00  cancast
-  0.00     34.74     0.00      251     0.00     0.00  eff_spelllevel
-  0.00     34.74     0.00      251     0.00     0.00  out_faction
-  0.00     34.74     0.00      250     0.00     0.00  real2tp
-  0.00     34.74     0.00      249     0.00     0.00  make_movement_order
-  0.00     34.74     0.00      248     0.00     0.00  sm_smithy
-  0.00     34.74     0.00      242     0.00     0.00  canfly
-  0.00     34.74     0.00      241     0.00     0.00  reshow
-  0.00     34.74     0.00      241     0.00     0.00  reshow_cmd
-  0.00     34.74     0.00      240     0.00     0.00  register_function
-  0.00     34.74     0.00      236     0.00     0.00  leave_cmd
-  0.00     34.74     0.00      234     0.00     0.00  make_leftship
-  0.00     34.74     0.00      234     0.00     0.00  set_leftship
-  0.00     34.74     0.00      233     0.00     0.00  faction_setpassword
-  0.00     34.74     0.00      233     0.00     0.00  fhash
-  0.00     34.74     0.00      233     0.00     0.00  password_encode
-  0.00     34.74     0.00      233     0.00     0.00  read_groups
-  0.00     34.74     0.00      233     0.00     0.00  read_password
-  0.00     34.74     0.00      233     0.00     0.00  readfaction
-  0.00     34.74     0.00      233     0.00     0.00  set_email
-  0.00     34.74     0.00      232     0.00     0.00  spc_email_isvalid
-  0.00     34.74     0.00      232     0.00     0.00  transfer_seen
-  0.00     34.74     0.00      232     0.00     0.00  write_groups
-  0.00     34.74     0.00      232     0.00     0.00  write_password
-  0.00     34.74     0.00      232     0.00     0.08  write_reports
-  0.00     34.74     0.00      232     0.00     0.00  write_script
-  0.00     34.74     0.00      232     0.00     0.00  writefaction
-  0.00     34.74     0.00      231     0.00     0.00  RemoveNMRNewbie
-  0.00     34.74     0.00      231     0.00     0.00  eressea_version
-  0.00     34.74     0.00      230     0.00     0.00  allies
-  0.00     34.74     0.00      230     0.00     0.00  cr_find_address
-  0.00     34.74     0.00      230     0.00     0.00  gamedate_season
-  0.00     34.74     0.00      230     0.00     0.00  report_crtypes
-  0.00     34.74     0.00      230     0.00     0.00  reset_translations
-  0.00     34.74     0.00      230     0.00     0.00  rp_battles
-  0.00     34.74     0.00      230     0.00     0.00  show_alliances_cr
-  0.00     34.74     0.00      230     0.00     0.00  write_translations
-  0.00     34.74     0.00      229     0.00     0.00  add_castorder
-  0.00     34.74     0.00      229     0.00     0.00  list_address
-  0.00     34.74     0.00      226     0.00     0.00  fumble
-  0.00     34.74     0.00      225     0.00     0.00  spellpower
-  0.00     34.74     0.00      224     0.00     0.00  leave_ship
-  0.00     34.74     0.00      222     0.00     0.00  cast_cmd
-  0.00     34.74     0.00      222     0.00     0.00  enter_ship
-  0.00     34.74     0.00      220     0.00     0.00  farcasting
-  0.00     34.74     0.00      214     0.00     0.00  var_copy_items
-  0.00     34.74     0.00      210     0.00     0.00  cr_resources
-  0.00     34.74     0.00      209     0.00     0.00  var_free_resources
-  0.00     34.74     0.00      207     0.00     0.00  rule_force_leave
-  0.00     34.74     0.00      206     0.00     0.00  aftermath
-  0.00     34.74     0.00      206     0.00     0.00  battle_effects
-  0.00     34.74     0.00      206     0.00     0.00  battle_free
-  0.00     34.74     0.00      206     0.00     0.00  free_battle
-  0.00     34.74     0.00      206     0.00     0.00  join_allies
-  0.00     34.74     0.00      206     0.00     0.00  make_battle
-  0.00     34.74     0.00      206     0.00     0.00  make_heroes
-  0.00     34.74     0.00      206     0.00     0.00  print_header
-  0.00     34.74     0.00      206     0.00     0.00  print_stats
-  0.00     34.74     0.00      206     0.00     0.00  reorder_fleeing
-  0.00     34.74     0.00      206     0.00     0.00  var_copy_resources
-  0.00     34.74     0.00      203     0.00     0.00  msg_set_int
-  0.00     34.74     0.00      196     0.00     0.00  make_name
-  0.00     34.74     0.00      196     0.00     0.00  verify_targets
-  0.00     34.74     0.00      195     0.00     0.00  mayboard
-  0.00     34.74     0.00      192     0.00     0.00  can_contact
-  0.00     34.74     0.00      191     0.00     0.00  CheckOverload
-  0.00     34.74     0.00      191     0.00     0.00  xml_readconstruction
-  0.00     34.74     0.00      188     0.00     0.00  is_freezing
-  0.00     34.74     0.00      186     0.00     0.00  leftship_age
-  0.00     34.74     0.00      185     0.00     0.00  it_get_or_create
-  0.00     34.74     0.00      185     0.00     0.00  it_register
-  0.00     34.74     0.00      183     0.00     0.00  cinfo_magicrunes
-  0.00     34.74     0.00      182     0.00     0.00  age_firedragon
-  0.00     34.74     0.00      182     0.00     0.00  msg_materials_required
-  0.00     34.74     0.00      178     0.00     0.00  parse_function
-  0.00     34.74     0.00      177     0.00     0.00  breed_cmd
-  0.00     34.74     0.00      176     0.00     0.00  default_spoil
-  0.00     34.74     0.00      174     0.00     0.00  breedhorses
-  0.00     34.74     0.00      174     0.00     0.00  findresourcetype
-  0.00     34.74     0.00      167     0.00     0.00  academy_teaching_bonus
-  0.00     34.74     0.00      166     0.00     0.00  add_spell
-  0.00     34.74     0.00      166     0.00     0.00  create_spell
-  0.00     34.74     0.00      163     0.00     0.00  cinfo_shipnodrift
-  0.00     34.74     0.00      162     0.00     0.00  rt_register
-  0.00     34.74     0.00      160     0.00     0.00  damage_ship
-  0.00     34.74     0.00      157     0.00     0.00  xml_readitem
-  0.00     34.74     0.00      150     0.00     0.00  rc_get_or_create
-  0.00     34.74     0.00      149     0.00     0.00  create_potion
-  0.00     34.74     0.00      147     0.00     0.00  contact_cmd
-  0.00     34.74     0.00      145     0.00     0.00  findunitr
-  0.00     34.74     0.00      143     0.00     0.00  ResourceFactor
-  0.00     34.74     0.00      143     0.00     0.00  update_resource
-  0.00     34.74     0.00      138     0.00     0.00  renumber_cmd
-  0.00     34.74     0.00      136     0.00     0.00  a_readstring
-  0.00     34.74     0.00      136     0.00     0.00  path_find
-  0.00     34.74     0.00      134     0.00     0.00  cinfo_slave
-  0.00     34.74     0.00      133     0.00     0.00  income
-  0.00     34.74     0.00      133     0.00     0.00  present
-  0.00     34.74     0.00      133     0.00     0.00  reroute
-  0.00     34.74     0.00      127     0.00     0.00  msg_create_message
-  0.00     34.74     0.00      125     0.00     0.00  r_standard_to_astral
-  0.00     34.74     0.00      125     0.00     0.00  random_unit
-  0.00     34.74     0.00      125     0.00     0.00  tpregion
-  0.00     34.74     0.00      124     0.00     0.00  age_stonecircle
-  0.00     34.74     0.00      124     0.00     0.00  eval_unit_dative
-  0.00     34.74     0.00      122     0.00     0.00  maxbuild
-  0.00     34.74     0.00      121     0.00     0.00  co_get_caster
-  0.00     34.74     0.00      121     0.00     0.00  lua_callspell
-  0.00     34.74     0.00      121     0.00     0.00  msg_send_faction
-  0.00     34.74     0.00      121     0.00     0.00  msg_set_unit
-  0.00     34.74     0.00      120     0.00     0.00  plagues
-  0.00     34.74     0.00      119     0.00     0.00  syntax_error
-  0.00     34.74     0.00      118     0.00     0.00  keyword_key
-  0.00     34.74     0.00      118     0.00     0.00  rule_transfermen
-  0.00     34.74     0.00      115     0.00     0.00  build_ship
-  0.00     34.74     0.00      115     0.00     0.00  usetcontact
-  0.00     34.74     0.00      114     0.00     0.00  give_unit
-  0.00     34.74     0.00      112     0.00     0.00  attack_firesword
-  0.00     34.74     0.00      112     0.00     0.00  get_friends
-  0.00     34.74     0.00      111     0.00     0.00  check_steal
-  0.00     34.74     0.00      111     0.00     0.00  steal_cmd
-  0.00     34.74     0.00      107     0.00     0.00  init_keyword
-  0.00     34.74     0.00      106     0.00     0.00  a_readkey
-  0.00     34.74     0.00      106     0.00     0.00  age_reduceproduction
-  0.00     34.74     0.00      106     0.00     0.00  equipment_setskill
-  0.00     34.74     0.00      105     0.00     0.00  terraform_region
-  0.00     34.74     0.00      105     0.00     0.00  terraform_resources
-  0.00     34.74     0.00      104     0.00     0.00  reshow_other
-  0.00     34.74     0.00       99     0.00     0.00  spl_costtyp
-  0.00     34.74     0.00       97     0.00     0.00  i_merge
-  0.00     34.74     0.00       97     0.00     0.00  mk_piracy
-  0.00     34.74     0.00       97     0.00     0.00  piracy_done
-  0.00     34.74     0.00       97     0.00     0.00  piracy_init
-  0.00     34.74     0.00       92     0.00     0.00  building_update_owner
-  0.00     34.74     0.00       88     0.00     0.00  hunger
-  0.00     34.74     0.00       88     0.00     0.00  hunger_damage
-  0.00     34.74     0.00       88     0.00     0.00  parameter_key
-  0.00     34.74     0.00       84     0.00     0.00  xml_readrequirements
-  0.00     34.74     0.00       83     0.00     0.00  create_castorder_combat
-  0.00     34.74     0.00       81     0.00     0.00  can_guard
-  0.00     34.74     0.00       80     0.00     0.00  combatspell_cmd
-  0.00     34.74     0.00       80     0.00     0.00  msg_set_resource
-  0.00     34.74     0.00       78     0.00     0.00  eval_weight
-  0.00     34.74     0.00       74     0.00     0.00  cast_combatspell
-  0.00     34.74     0.00       74     0.00     0.00  get_force
-  0.00     34.74     0.00       74     0.00     0.00  ghoul_name
-  0.00     34.74     0.00       74     0.00     0.00  spell_damage
-  0.00     34.74     0.00       73     0.00     0.00  create_equipment
-  0.00     34.74     0.00       72     0.00     0.00  default_score
-  0.00     34.74     0.00       71     0.00     0.00  disband_men
-  0.00     34.74     0.00       70     0.00     0.00  skeleton_name
-  0.00     34.74     0.00       68     0.00     0.00  a_readchars
-  0.00     34.74     0.00       68     0.00     0.00  rc_create
-  0.00     34.74     0.00       67     0.00     0.00  parse_ai
-  0.00     34.74     0.00       66     0.00     0.00  a_writechars
-  0.00     34.74     0.00       65     0.00     0.00  equipment_setitem
-  0.00     34.74     0.00       65     0.00     0.00  findkeyword
-  0.00     34.74     0.00       65     0.00     0.00  max_skill
-  0.00     34.74     0.00       64     0.00     0.00  log_info
-  0.00     34.74     0.00       62     0.00     0.00  cinfo_speed
-  0.00     34.74     0.00       62     0.00     0.00  potion_luck
-  0.00     34.74     0.00       61     0.00     0.00  add_callbacks
-  0.00     34.74     0.00       61     0.00     0.00  add_items
-  0.00     34.74     0.00       61     0.00     0.00  add_skills
-  0.00     34.74     0.00       61     0.00     0.00  add_spells
-  0.00     34.74     0.00       61     0.00     0.00  add_subsets
-  0.00     34.74     0.00       60     0.00     0.00  equip_items
-  0.00     34.74     0.00       60     0.00     0.00  nb_armor
-  0.00     34.74     0.00       58     0.00     0.00  add_resource
-  0.00     34.74     0.00       58     0.00     0.00  dict_get
-  0.00     34.74     0.00       58     0.00     0.00  dict_name
-  0.00     34.74     0.00       58     0.00     0.00  peasant_luck_factor
-  0.00     34.74     0.00       58     0.00     0.00  rmt_get
-  0.00     34.74     0.00       58     0.00     0.00  skill_key
-  0.00     34.74     0.00       58     0.00     0.00  terraform_default
-  0.00     34.74     0.00       57     0.00     0.00  free_land
-  0.00     34.74     0.00       56     0.00     0.00  add_proc
-  0.00     34.74     0.00       56     0.00     0.00  dict_init
-  0.00     34.74     0.00       56     0.00     0.00  dict_read
-  0.00     34.74     0.00       56     0.00     0.00  dict_write
-  0.00     34.74     0.00       56     0.00     0.00  use_bloodpotion
-  0.00     34.74     0.00       55     0.00     0.00  at_register
-  0.00     34.74     0.00       55     0.00     0.00  renumber_unit
-  0.00     34.74     0.00       54     0.00     0.00  eval_add
-  0.00     34.74     0.00       54     0.00     0.00  it_set_appearance
-  0.00     34.74     0.00       53     0.00     0.00  do_extra_spell
-  0.00     34.74     0.00       53     0.00     0.00  lua_getresource
-  0.00     34.74     0.00       53     0.00     0.00  sp_dragonodem
-  0.00     34.74     0.00       52     0.00     0.00  cinfo_skillmod
-  0.00     34.74     0.00       52     0.00     0.00  get_or_create_terrain
-  0.00     34.74     0.00       52     0.00     0.00  zombie_name
-  0.00     34.74     0.00       51     0.00     0.00  potion_water_of_life
-  0.00     34.74     0.00       51     0.00     0.00  rcomp
-  0.00     34.74     0.00       49     0.00     0.00  get_money_for_dragon
-  0.00     34.74     0.00       48     0.00     0.00  addmessage
-  0.00     34.74     0.00       48     0.00     0.00  allysfm
-  0.00     34.74     0.00       48     0.00     0.00  caddmessage
-  0.00     34.74     0.00       48     0.00     0.00  chaosterrain
-  0.00     34.74     0.00       48     0.00     0.00  get_maxluxuries
-  0.00     34.74     0.00       48     0.00     0.00  makename
-  0.00     34.74     0.00       48     0.00     0.00  region_setname
-  0.00     34.74     0.00       48     0.00     0.00  unit_addorder
-  0.00     34.74     0.00       47     0.00     0.00  display_race
-  0.00     34.74     0.00       47     0.00     0.00  give_peasants
-  0.00     34.74     0.00       47     0.00     0.00  msg_set_region
-  0.00     34.74     0.00       45     0.00     0.00  count_maxmigrants
-  0.00     34.74     0.00       45     0.00     0.00  count_migrants
-  0.00     34.74     0.00       45     0.00     0.00  create_curse
-  0.00     34.74     0.00       44     0.00     0.00  ct_register
-  0.00     34.74     0.00       44     0.00     0.00  curse_name
-  0.00     34.74     0.00       43     0.00     0.00  unset_combatspell
-  0.00     34.74     0.00       42     0.00     0.00  loot_cmd
-  0.00     34.74     0.00       42     0.00     0.00  pcomp
-  0.00     34.74     0.00       41     0.00     0.00  build_road
-  0.00     34.74     0.00       41     0.00     0.00  expandstealing
-  0.00     34.74     0.00       40     0.00     0.00  regions_in_range
-  0.00     34.74     0.00       40     0.00     0.00  set_new_dragon_target
-  0.00     34.74     0.00       39     0.00     0.00  bt_get_or_create
-  0.00     34.74     0.00       39     0.00     0.00  deliverMail
-  0.00     34.74     0.00       39     0.00     0.00  display_item
-  0.00     34.74     0.00       39     0.00     0.00  random_growl
-  0.00     34.74     0.00       38     0.00     0.00  count_allies
-  0.00     34.74     0.00       38     0.00     0.00  do_combatspell
-  0.00     34.74     0.00       38     0.00     0.00  report_action
-  0.00     34.74     0.00       38     0.00     0.00  select_ally
-  0.00     34.74     0.00       37     0.00     0.00  transport
-  0.00     34.74     0.00       36     0.00     0.00  expandloot
-  0.00     34.74     0.00       36     0.00     0.00  runhash
-  0.00     34.74     0.00       35     0.00     0.00  mailunit
-  0.00     34.74     0.00       34     0.00     0.00  dracoid_name
-  0.00     34.74     0.00       33     0.00     0.00  pack_keyval
-  0.00     34.74     0.00       33     0.00     0.00  set_param
-  0.00     34.74     0.00       32     0.00     0.00  add_function
-  0.00     34.74     0.00       32     0.00     0.00  make_curse
-  0.00     34.74     0.00       30     0.00     0.00  limit_seeds
-  0.00     34.74     0.00       30     0.00     0.00  overload_start
-  0.00     34.74     0.00       30     0.00     0.00  treeman_neighbour
-  0.00     34.74     0.00       29     0.00     0.00  add_proc_order
-  0.00     34.74     0.00       29     0.00     0.00  add_raceprefix
-  0.00     34.74     0.00       29     0.00     0.00  json_terrain_production
-  0.00     34.74     0.00       28     0.00     0.00  cunhash
-  0.00     34.74     0.00       28     0.00     0.00  curse_done
-  0.00     34.74     0.00       28     0.00     0.00  destroy_curse
-  0.00     34.74     0.00       28     0.00     0.00  report_effect
-  0.00     34.74     0.00       27     0.00     0.00  NMRTimeout
-  0.00     34.74     0.00       27     0.00     0.00  bt_register
-  0.00     34.74     0.00       27     0.00     0.00  dragon_name
-  0.00     34.74     0.00       27     0.00     0.00  move_iceberg
-  0.00     34.74     0.00       27     0.00     0.00  register_item_use
-  0.00     34.74     0.00       26     0.00     0.00  add_spellparameter
-  0.00     34.74     0.00       26     0.00     0.00  free_spellparameter
-  0.00     34.74     0.00       25     0.00     0.00  allysf
-  0.00     34.74     0.00       25     0.00     0.00  make_targetregion
-  0.00     34.74     0.00       24     0.00     0.00  equipment_addspell
-  0.00     34.74     0.00       24     0.00     0.00  is_moving_ship
-  0.00     34.74     0.00       23     0.00     0.00  destroy_cmd
-  0.00     34.74     0.00       23     0.00     0.00  new_weapontype
-  0.00     34.74     0.00       23     0.00     0.00  xml_readweapon
-  0.00     34.74     0.00       22     0.00     0.00  addparam_ship
-  0.00     34.74     0.00       22     0.00     0.00  rsetroad
-  0.00     34.74     0.00       22     0.00     0.00  verify_ship
-  0.00     34.74     0.00       21     0.00     0.00  sp_kampfzauber
-  0.00     34.74     0.00       20     0.00     0.00  spawn_seaserpent
-  0.00     34.74     0.00       19     0.00     0.00  tsf_register
-  0.00     34.74     0.00       18     0.00     0.00  check_dupe
-  0.00     34.74     0.00       18     0.00     0.00  handle_triggers
-  0.00     34.74     0.00       18     0.00     0.00  json_flags
-  0.00     34.74     0.00       18     0.00     0.00  json_terrain
-  0.00     34.74     0.00       18     0.00     0.00  register_argtype
-  0.00     34.74     0.00       18     0.00     0.00  timeout_handle
-  0.00     34.74     0.00       18     0.00     0.00  timeout_init
-  0.00     34.74     0.00       18     0.00     0.00  timeout_write
-  0.00     34.74     0.00       17     0.00     0.00  recruit_dracoids
-  0.00     34.74     0.00       16     0.00     0.00  addparam_unit
-  0.00     34.74     0.00       16     0.00     0.00  damage_unit
-  0.00     34.74     0.00       16     0.00     0.00  spy_cmd
-  0.00     34.74     0.00       16     0.00     0.00  verify_unit
-  0.00     34.74     0.00       15     0.00     0.00  drift_target
-  0.00     34.74     0.00       15     0.00     0.00  new_potiontype
-  0.00     34.74     0.00       15     0.00     0.00  overload
-  0.00     34.74     0.00       15     0.00     0.00  pt_register
-  0.00     34.74     0.00       15     0.00     0.00  res_changepeasants
-  0.00     34.74     0.00       15     0.00     0.00  xml_readpotion
-  0.00     34.74     0.00       14     0.00     0.00  heal_fighters
-  0.00     34.74     0.00       14     0.00     0.00  tt_register
-  0.00     34.74     0.00       13     0.00     0.00  add_proc_global
-  0.00     34.74     0.00       13     0.00     0.00  getplanebyid
-  0.00     34.74     0.00       13     0.00     0.00  log_error
-  0.00     34.74     0.00       13     0.00     0.00  make_iceberg
-  0.00     34.74     0.00       13     0.00     0.00  newcontainerid
-  0.00     34.74     0.00       13     0.00     0.00  set_curseingmagician
-  0.00     34.74     0.00       13     0.00     0.00  sp_blessedharvest
-  0.00     34.74     0.00       13     0.00     0.00  timeout_read
-  0.00     34.74     0.00       13     0.00     0.00  tolua_toid
-  0.00     34.74     0.00       12     0.00     0.00  bunhash
-  0.00     34.74     0.00       12     0.00     0.00  changefaction_init
-  0.00     34.74     0.00       12     0.00     0.00  changefaction_write
-  0.00     34.74     0.00       12     0.00     0.00  forget_cmd
-  0.00     34.74     0.00       12     0.00     0.00  make_reduceproduction
-  0.00     34.74     0.00       12     0.00     0.00  msg_to_ship_inmates
-  0.00     34.74     0.00       12     0.00     0.00  volcano_destruction
-  0.00     34.74     0.00       12     0.00     0.00  write_race_reference
-  0.00     34.74     0.00       11     0.00     0.00  add_trigger
-  0.00     34.74     0.00       11     0.00     0.00  koor_distance_wrap_xy
-  0.00     34.74     0.00       11     0.00     0.00  new_building
-  0.00     34.74     0.00       11     0.00     0.00  produce_seeds
-  0.00     34.74     0.00       11     0.00     0.00  xml_register_callback
-  0.00     34.74     0.00       11     0.00     0.00  xml_spell
-  0.00     34.74     0.00       10     0.00     0.00  changefaction_read
-  0.00     34.74     0.00       10     0.00     0.00  nrand
-  0.00     34.74     0.00       10     0.00     0.00  rel_to_abs
-  0.00     34.74     0.00       10     0.00     0.00  section_add
-  0.00     34.74     0.00       10     0.00     0.00  set_combatspell
-  0.00     34.74     0.00       10     0.00     0.00  sp_hain
-  0.00     34.74     0.00        9     0.00     0.00  basepath
-  0.00     34.74     0.00        9     0.00     0.00  init_resourcelimit
-  0.00     34.74     0.00        9     0.00     0.00  melt_iceberg
-  0.00     34.74     0.00        9     0.00     0.00  register_bordertype
-  0.00     34.74     0.00        9     0.00     0.00  sp_stormwinds
-  0.00     34.74     0.00        8     0.00     0.00  add_proc_region
-  0.00     34.74     0.00        8     0.00     0.00  do_fumble
-  0.00     34.74     0.00        8     0.00     0.00  mod_elves_only
-  0.00     34.74     0.00        8     0.00     0.00  new_armortype
-  0.00     34.74     0.00        8     0.00     0.00  spy_message
-  0.00     34.74     0.00        8     0.00     0.00  unit_gethp
-  0.00     34.74     0.00        8     0.00     0.00  xml_readarmor
-  0.00     34.74     0.00        7     0.00     0.00  fighters
-  0.00     34.74     0.00        7     0.00     0.00  has_ao_healing
-  0.00     34.74     0.00        7     0.00     0.00  i_findc
-  0.00     34.74     0.00        7     0.00     0.00  lt_register
-  0.00     34.74     0.00        7     0.00     0.00  new_luxurytype
-  0.00     34.74     0.00        7     0.00     0.00  register_race_name_function
-  0.00     34.74     0.00        7     0.00     0.00  rmt_create
-  0.00     34.74     0.00        7     0.00     0.00  scramble_fighters
-  0.00     34.74     0.00        7     0.00     0.00  sp_healing
-  0.00     34.74     0.00        7     0.00     0.00  spellbook_clear
-  0.00     34.74     0.00        7     0.00     0.00  st_get_or_create
-  0.00     34.74     0.00        7     0.00     0.00  sunhash
-  0.00     34.74     0.00        7     0.00     0.00  xml_readluxury
-  0.00     34.74     0.00        6     0.00     0.00  addparam_building
-  0.00     34.74     0.00        6     0.00     0.00  changerace_init
-  0.00     34.74     0.00        6     0.00     0.00  changerace_write
-  0.00     34.74     0.00        6     0.00     0.00  equipment_setcallback
-  0.00     34.74     0.00        6     0.00     0.00  findoption
-  0.00     34.74     0.00        6     0.00     0.00  get_or_create_locale
-  0.00     34.74     0.00        6     0.00     0.00  init_translations
-  0.00     34.74     0.00        6     0.00     0.00  make_undead_unit
-  0.00     34.74     0.00        6     0.00     0.00  msg_send_region
-  0.00     34.74     0.00        6     0.00     0.00  read_race_reference
-  0.00     34.74     0.00        6     0.00     0.00  remove_ship
-  0.00     34.74     0.00        6     0.00     0.00  rrandneighbour
-  0.00     34.74     0.00        6     0.00     0.00  send_cmd
-  0.00     34.74     0.00        6     0.00     0.00  skill_summoned
-  0.00     34.74     0.00        6     0.00     0.00  sp_mallornhain
-  0.00     34.74     0.00        6     0.00     0.00  sp_summonundead
-  0.00     34.74     0.00        6     0.00     0.00  volcano_outbreak
-  0.00     34.74     0.00        5     0.00     0.00  at_deprecate
-  0.00     34.74     0.00        5     0.00     0.00  datapath
-  0.00     34.74     0.00        5     0.00     0.00  free_group
-  0.00     34.74     0.00        5     0.00     0.00  get_cmp_region_owner
-  0.00     34.74     0.00        5     0.00     0.00  log_warning
-  0.00     34.74     0.00        5     0.00     0.00  reset_locales
-  0.00     34.74     0.00        5     0.00     0.00  set_money
-  0.00     34.74     0.00        5     0.00     0.00  trigger_killunit
-  0.00     34.74     0.00        5     0.00     0.00  trigger_timeout
-  0.00     34.74     0.00        5     0.00     0.00  ursprung_x
-  0.00     34.74     0.00        5     0.00     0.00  ursprung_y
-  0.00     34.74     0.00        4     0.00     0.00  count_skill
-  0.00     34.74     0.00        4     0.00     0.00  heal
-  0.00     34.74     0.00        4     0.00     0.00  intlist_add
-  0.00     34.74     0.00        4     0.00     0.00  intlist_init
-  0.00     34.74     0.00        4     0.00     0.00  json_config
-  0.00     34.74     0.00        4     0.00     0.00  mailfaction
-  0.00     34.74     0.00        4     0.00     0.00  nextlocale
-  0.00     34.74     0.00        4     0.00     0.00  read_skill
-  0.00     34.74     0.00        4     0.00     0.00  seefaction
-  0.00     34.74     0.00        4     0.00     0.00  sp_goodwinds
-  0.00     34.74     0.00        4     0.00     0.00  terrains
-  0.00     34.74     0.00        4     0.00     0.00  try_rename
-  0.00     34.74     0.00        4     0.00     0.00  verify_building
-  0.00     34.74     0.00        3     0.00     0.00  add_proc_postregion
-  0.00     34.74     0.00        3     0.00     0.00  add_proc_unit
-  0.00     34.74     0.00        3     0.00     0.00  can_charm
-  0.00     34.74     0.00        3     0.00     0.00  changerace_read
-  0.00     34.74     0.00        3     0.00     0.00  count_particles
-  0.00     34.74     0.00        3     0.00     0.00  gamedate2
-  0.00     34.74     0.00        3     0.00     0.00  getplaneid
-  0.00     34.74     0.00        3     0.00     0.00  give_control
-  0.00     34.74     0.00        3     0.00     0.00  init_group
-  0.00     34.74     0.00        3     0.00     0.00  init_locales
-  0.00     34.74     0.00        3     0.00     0.00  parse_param
-  0.00     34.74     0.00        3     0.00     0.00  racelist_insert
-  0.00     34.74     0.00        3     0.00     0.00  register_item_give
-  0.00     34.74     0.00        3     0.00     0.00  register_reporttype
-  0.00     34.74     0.00        3     0.00     0.00  report_failed_spell
-  0.00     34.74     0.00        3     0.00     0.00  sp_charmingsong
-  0.00     34.74     0.00        3     0.00     0.00  sp_eternizewall
-  0.00     34.74     0.00        3     0.00     0.00  sp_song_of_peace
-  0.00     34.74     0.00        3     0.00     0.00  target_resists_magic
-  0.00     34.74     0.00        3     0.00     0.00  trigger_changerace
-  0.00     34.74     0.00        3     0.00     0.00  update_nmrs
-  0.00     34.74     0.00        3     0.00     0.00  use_healingpotion
-  0.00     34.74     0.00        3     0.00     0.00  write_skill
-  0.00     34.74     0.00        2     0.00     0.00  b_blockquestportal
-  0.00     34.74     0.00        2     0.00     0.00  b_fvisible
-  0.00     34.74     0.00        2     0.00     0.00  b_namequestportal
-  0.00     34.74     0.00        2     0.00     0.00  b_opaque
-  0.00     34.74     0.00        2     0.00     0.00  breedtrees
-  0.00     34.74     0.00        2     0.00     0.00  claim_cmd
-  0.00     34.74     0.00        2     0.00     0.00  create_directories
-  0.00     34.74     0.00        2     0.00     0.00  create_ship
-  0.00     34.74     0.00        2     0.00     0.00  disable_feature
-  0.00     34.74     0.00        2     0.00     0.00  free_summary
-  0.00     34.74     0.00        2     0.00     0.00  game_id
-  0.00     34.74     0.00        2     0.00     0.00  giveitem_init
-  0.00     34.74     0.00        2     0.00     0.00  giveitem_write
-  0.00     34.74     0.00        2     0.00     0.00  init_directions
-  0.00     34.74     0.00        2     0.00     0.00  init_keywords
-  0.00     34.74     0.00        2     0.00     0.00  init_locale
-  0.00     34.74     0.00        2     0.00     0.00  init_options_translation
-  0.00     34.74     0.00        2     0.00     0.00  init_parameters
-  0.00     34.74     0.00        2     0.00     0.00  init_skills
-  0.00     34.74     0.00        2     0.00     0.00  init_terrains_translation
-  0.00     34.74     0.00        2     0.00     0.00  json_keyword
-  0.00     34.74     0.00        2     0.00     0.00  limit_mallornseeds
-  0.00     34.74     0.00        2     0.00     0.00  log_create
-  0.00     34.74     0.00        2     0.00     0.00  make_skillmod
-  0.00     34.74     0.00        2     0.00     0.00  new_ship
-  0.00     34.74     0.00        2     0.00     0.00  register_item_useonother
-  0.00     34.74     0.00        2     0.00     0.00  register_special_direction
-  0.00     34.74     0.00        2     0.00     0.00  remove_building
-  0.00     34.74     0.00        2     0.00     0.00  report_summary
-  0.00     34.74     0.00        2     0.00     0.00  res_changehp
-  0.00     34.74     0.00        2     0.00     0.00  sp_bloodsacrifice
-  0.00     34.74     0.00        2     0.00     0.00  sp_igjarjuk
-  0.00     34.74     0.00        2     0.00     0.00  sp_summon_familiar
-  0.00     34.74     0.00        2     0.00     0.00  sp_viewreality
-  0.00     34.74     0.00        2     0.00     0.00  summon_allies
-  0.00     34.74     0.00        2     0.00     0.00  tolua_eressea_open
-  0.00     34.74     0.00        2     0.00     0.00  tolua_reg_types_eressea
-  0.00     34.74     0.00        2     0.00     0.00  tolua_unit_open
-  0.00     34.74     0.00        2     0.00     0.00  trigger_changefaction
-  0.00     34.74     0.00        2     0.00     0.00  verbosity_to_flags
-  0.00     34.74     0.00        2     0.00     0.00  wormhole_age
-  0.00     34.74     0.00        2     0.00     0.00  wormhole_read
-  0.00     34.74     0.00        2     0.00     0.00  wormhole_write
-  0.00     34.74     0.00        2     0.00     0.00  xml_readstrings
-  0.00     34.74     0.00        1     0.00     0.00  a_finalizestring
-  0.00     34.74     0.00        1     0.00     0.00  a_upgradekeys
-  0.00     34.74     0.00        1     0.00     0.00  a_writekeys
-  0.00     34.74     0.00        1     0.00     0.00  add_seen_faction
-  0.00     34.74     0.00        1     0.00     0.00  age_borders
-  0.00     34.74     0.00        1     0.00     0.00  age_illusion
-  0.00     34.74     0.00        1     0.00     0.00  attrib_done
-  0.00     34.74     0.00        1     0.00     0.00  b_read
-  0.00     34.74     0.00        1     0.00     0.00  b_write
-  0.00     34.74     0.00        1     0.00     0.00  bind_monsters
-  0.00     34.74     0.00        1     0.00     0.00  caldera_handle
-  0.00     34.74     0.00        1     0.00     0.00  caldera_read
-  0.00     34.74     0.00        1     0.00     0.00  caldera_write
-  0.00     34.74     0.00        1     0.00     0.00  calendar_cleanup
-  0.00     34.74     0.00        1     0.00     0.00  chaos_register
-  0.00     34.74     0.00        1     0.00     0.00  check_messages_exist
-  0.00     34.74     0.00        1     0.00     0.01  clear_npc_orders
-  0.00     34.74     0.00        1     0.00     0.00  clonedied_read
-  0.00     34.74     0.00        1     0.00     0.00  clonedied_write
-  0.00     34.74     0.00        1     0.00     0.02  config_parse
-  0.00     34.74     0.00        1     0.00     0.02  config_read
-  0.00     34.74     0.00        1     0.00     0.00  create_mage
-  0.00     34.74     0.00        1     0.00     0.00  create_newfamiliar
-  0.00     34.74     0.00        1     0.00     0.00  crmessage_done
-  0.00     34.74     0.00        1     0.00     0.00  ct_checknames
-  0.00     34.74     0.00        1     0.00     0.00  curses_done
-  0.00     34.74     0.00        1     0.00     0.00  dazzle
-  0.00     34.74     0.00        1     0.00     0.54  demographics
-  0.00     34.74     0.00        1     0.00     0.00  destroy_road
-  0.00     34.74     0.00        1     0.00     0.45  do_battles
-  0.00     34.74     0.00        1     0.00     0.00  enable_keyword
-  0.00     34.74     0.00        1     0.00     0.00  equipment_done
-  0.00     34.74     0.00        1     0.00     0.46  eressea_read_game
-  0.00     34.74     0.00        1     0.00     0.00  eressea_run
-  0.00     34.74     0.00        1     0.00     0.36  eressea_write_game
-  0.00     34.74     0.00        1     0.00     0.00  flyingship_age
-  0.00     34.74     0.00        1     0.00     0.01  free_config
-  0.00     34.74     0.00        1     0.00     0.00  free_functions
-  0.00     34.74     0.00        1     0.00     0.00  free_functions
-  0.00     34.74     0.00        1     0.00     0.00  free_locales
-  0.00     34.74     0.00        1     0.00     0.00  fumble_default
-  0.00     34.74     0.00        1     0.00     0.00  funhash
-  0.00     34.74     0.00        1     0.00     0.01  game_done
-  0.00     34.74     0.00        1     0.00     0.00  game_init
-  0.00     34.74     0.00        1     0.00     0.00  get_arg
-  0.00     34.74     0.00        1     0.00     0.00  get_translation
-  0.00     34.74     0.00        1     0.00     0.00  giveitem_read
-  0.00     34.74     0.00        1     0.00     0.00  has_limited_skills
-  0.00     34.74     0.00        1     0.00     0.04  icebergs
-  0.00     34.74     0.00        1     0.00     0.04  immigration
-  0.00     34.74     0.00        1     0.00     0.00  init_data
-  0.00     34.74     0.00        1     0.00     0.00  init_genrand
-  0.00     34.74     0.00        1     0.00     0.00  init_itemtypes
-  0.00     34.74     0.00        1     0.00     0.00  init_mallornseed
-  0.00     34.74     0.00        1     0.00     0.00  init_oldpotions
-  0.00     34.74     0.00        1     0.00     0.00  init_processor
-  0.00     34.74     0.00        1     0.00     0.02  init_reports
-  0.00     34.74     0.00        1     0.00     0.00  init_resources
-  0.00     34.74     0.00        1     0.00     0.00  init_rules
-  0.00     34.74     0.00        1     0.00     0.00  init_seed
-  0.00     34.74     0.00        1     0.00     0.00  init_smithy
-  0.00     34.74     0.00        1     0.00     0.00  init_terrains
-  0.00     34.74     0.00        1     0.00     0.00  item_done
-  0.00     34.74     0.00        1     0.00     0.00  json_disable_features
-  0.00     34.74     0.00        1     0.00     0.00  json_include
-  0.00     34.74     0.00        1     0.00     0.00  json_keywords
-  0.00     34.74     0.00        1     0.00     0.00  json_prefixes
-  0.00     34.74     0.00        1     0.00     0.02  json_settings
-  0.00     34.74     0.00        1     0.00     0.00  json_terrains
-  0.00     34.74     0.00        1     0.00     0.00  kernel_done
-  0.00     34.74     0.00        1     0.00     0.00  kernel_init
-  0.00     34.74     0.00        1     0.00     0.00  levitate_ship
-  0.00     34.74     0.00        1     0.00     0.00  load_inifile
-  0.00     34.74     0.00        1     0.00     0.00  locale_init
-  0.00     34.74     0.00        1     0.00     0.00  log_close
-  0.00     34.74     0.00        1     0.00     0.00  log_open
-  0.00     34.74     0.00        1     0.00     0.00  log_rotate
-  0.00     34.74     0.00        1     0.00     0.00  log_to_file
-  0.00     34.74     0.00        1     0.00     0.00  lua_done
-  0.00     34.74     0.00        1     0.00     0.00  lua_init
-  0.00     34.74     0.00        1     0.00     0.00  make_familiar
-  0.00     34.74     0.00        1     0.00     0.00  make_locales
-  0.00     34.74     0.00        1     0.00     0.00  make_matmod
-  0.00     34.74     0.00        1     0.00     0.00  make_wormhole
-  0.00     34.74     0.00        1     0.00     0.00  make_wormholes
-  0.00     34.74     0.00        1     0.00     0.00  make_zombie
-  0.00     34.74     0.00        1     0.00     0.00  message_done
-  0.00     34.74     0.00        1     0.00     0.07  monthly_healing
-  0.00     34.74     0.00        1     0.00     0.00  mt_clear
-  0.00     34.74     0.00        1     0.00     0.04  new_units
-  0.00     34.74     0.00        1     0.00     0.00  nmr_death
-  0.00     34.74     0.00        1     0.00     0.00  nmr_warnings
-  0.00     34.74     0.00        1     0.00     0.00  oldfamiliars
-  0.00     34.74     0.00        1     0.00     0.00  openlibs
-  0.00     34.74     0.00        1     0.00     0.00  parse_args
-  0.00     34.74     0.00        1     0.00     0.00  parse_buildings
-  0.00     34.74     0.00        1     0.00     0.00  parse_calendar
-  0.00     34.74     0.00        1     0.00     0.00  parse_config
-  0.00     34.74     0.00        1     0.00     0.00  parse_equipment
-  0.00     34.74     0.00        1     0.00     0.00  parse_inifile
-  0.00     34.74     0.00        1     0.00     0.00  parse_messages
-  0.00     34.74     0.00        1     0.00     0.00  parse_races
-  0.00     34.74     0.00        1     0.00     0.00  parse_resources
-  0.00     34.74     0.00        1     0.00     0.00  parse_rules
-  0.00     34.74     0.00        1     0.00     0.00  parse_ships
-  0.00     34.74     0.00        1     0.00     0.00  parse_spellbooks
-  0.00     34.74     0.00        1     0.00     0.00  parse_spells
-  0.00     34.74     0.00        1     0.00     0.00  parse_strings
-  0.00     34.74     0.00        1     0.00     0.00  pathfinder_cleanup
-  0.00     34.74     0.00        1     0.00     0.53  plan_monsters
-  0.00     34.74     0.00        1     0.00     0.00  plant
-  0.00     34.74     0.00        1     0.00     0.00  planttrees
-  0.00     34.74     0.00        1     0.00     5.61  processorders
-  0.00     34.74     0.00        1     0.00     0.00  produce_mallornseeds
-  0.00     34.74     0.00        1     0.00     0.00  promotion_cmd
-  0.00     34.74     0.00        1     0.00     0.05  quit
-  0.00     34.74     0.00        1     0.00     0.00  read_alliances
-  0.00     34.74     0.00        1     0.00     0.00  read_borders
-  0.00     34.74     0.00        1     0.00     0.00  read_building_reference
-  0.00     34.74     0.00        1     0.00     0.46  read_game
-  0.00     34.74     0.00        1     0.00     0.00  read_planes
-  0.00     34.74     0.00        1     0.00     0.00  read_xml
-  0.00     34.74     0.00        1     0.00     0.46  readgame
-  0.00     34.74     0.00        1     0.00     0.65  readorders
-  0.00     34.74     0.00        1     0.00     0.00  recruit_init
-  0.00     34.74     0.00        1     0.00     0.00  register_arena
-  0.00     34.74     0.00        1     0.00     0.00  register_artrewards
-  0.00     34.74     0.00        1     0.00     0.00  register_attributes
-  0.00     34.74     0.00        1     0.00     0.00  register_borders
-  0.00     34.74     0.00        1     0.00     0.00  register_buildingcurse
-  0.00     34.74     0.00        1     0.00     0.00  register_buildings
-  0.00     34.74     0.00        1     0.00     0.00  register_cr
-  0.00     34.74     0.00        1     0.00     0.00  register_demonseye
-  0.00     34.74     0.00        1     0.00     0.00  register_flyingship
-  0.00     34.74     0.00        1     0.00     0.00  register_gmcmd
-  0.00     34.74     0.00        1     0.00     0.00  register_itemfunctions
-  0.00     34.74     0.00        1     0.00     0.00  register_itemtypes
-  0.00     34.74     0.00        1     0.00     0.00  register_magicresistance
-  0.00     34.74     0.00        1     0.00     0.00  register_museum
-  0.00     34.74     0.00        1     0.00     0.00  register_names
-  0.00     34.74     0.00        1     0.00     0.00  register_nr
-  0.00     34.74     0.00        1     0.00     0.00  register_race_description_function
-  0.00     34.74     0.00        1     0.00     0.00  register_races
-  0.00     34.74     0.00        1     0.00     0.00  register_regioncurse
-  0.00     34.74     0.00        1     0.00     0.00  register_reports
-  0.00     34.74     0.00        1     0.00     0.00  register_resources
-  0.00     34.74     0.00        1     0.00     0.00  register_shipcurse
-  0.00     34.74     0.00        1     0.00     0.00  register_spelldata
-  0.00     34.74     0.00        1     0.00     0.00  register_spells
-  0.00     34.74     0.00        1     0.00     0.00  register_tolua_helpers
-  0.00     34.74     0.00        1     0.00     0.00  register_triggers
-  0.00     34.74     0.00        1     0.00     0.00  register_unitcurse
-  0.00     34.74     0.00        1     0.00     0.00  register_weapons
-  0.00     34.74     0.00        1     0.00     0.00  register_xerewards
-  0.00     34.74     0.00        1     0.00     0.00  register_xmas
-  0.00     34.74     0.00        1     0.00     0.00  register_xmlreader
-  0.00     34.74     0.00        1     0.00     0.03  remove_idle_players
-  0.00     34.74     0.00        1     0.00     0.00  removelist
-  0.00     34.74     0.00        1     0.00     0.00  renumber_factions
-  0.00     34.74     0.00        1     0.00     0.00  report_donations
-  0.00     34.74     0.00        1     0.00     0.00  report_failure
-  0.00     34.74     0.00        1     0.00     0.00  report_spell
-  0.00     34.74     0.00        1     0.00    18.69  reports
-  0.00     34.74     0.00        1     0.00     0.00  reports_done
-  0.00     34.74     0.00        1     0.00     0.00  resolve
-  0.00     34.74     0.00        1     0.00     0.00  resolve_building
-  0.00     34.74     0.00        1     0.00     0.00  select_familiar
-  0.00     34.74     0.00        1     0.00     0.00  select_wormhole_regions
-  0.00     34.74     0.00        1     0.00     0.00  setup_signal_handler
-  0.00     34.74     0.00        1     0.00     0.00  shipcurse_flyingship
-  0.00     34.74     0.00        1     0.00     0.00  sort_wormhole_regions
-  0.00     34.74     0.00        1     0.00     0.00  sp_enterastral
-  0.00     34.74     0.00        1     0.00     0.00  sp_flying_ship
-  0.00     34.74     0.00        1     0.00     0.00  sp_generous
-  0.00     34.74     0.00        1     0.00     0.00  sp_holyground
-  0.00     34.74     0.00        1     0.00     0.00  sp_seduce
-  0.00     34.74     0.00        1     0.00     0.00  sp_summonshadowlords
-  0.00     34.74     0.00        1     0.00     0.01  spawn_braineaters
-  0.00     34.74     0.00        1     0.00     0.01  spawn_undead
-  0.00     34.74     0.00        1     0.00     0.00  t_add
-  0.00     34.74     0.00        1     0.00     0.00  tolua_bind_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_bindings_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_building_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_config_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_dict_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_faction_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_game_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_gmtool_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_locale_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_log_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_message_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_order_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_process_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_reg_types_config
-  0.00     34.74     0.00        1     0.00     0.00  tolua_reg_types_game
-  0.00     34.74     0.00        1     0.00     0.00  tolua_reg_types_locale
-  0.00     34.74     0.00        1     0.00     0.00  tolua_reg_types_log
-  0.00     34.74     0.00        1     0.00     0.00  tolua_reg_types_process
-  0.00     34.74     0.00        1     0.00     0.00  tolua_reg_types_settings
-  0.00     34.74     0.00        1     0.00     0.00  tolua_region_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_settings_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_ship_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_sqlite_open
-  0.00     34.74     0.00        1     0.00     0.00  tolua_storage_open
-  0.00     34.74     0.00        1     0.00     0.00  translation_done
-  0.00     34.74     0.00        1     0.00     0.00  translation_init
-  0.00     34.74     0.00        1     0.00     0.00  trigger_giveitem
-  0.00     34.74     0.00        1     0.00     0.00  trigger_shock
-  0.00     34.74     0.00        1     0.00     0.03  update_spells
-  0.00     34.74     0.00        1     0.00     0.00  use_skillpotion
-  0.00     34.74     0.00        1     0.00     0.00  valid_race
-  0.00     34.74     0.00        1     0.00     0.00  version_no
-  0.00     34.74     0.00        1     0.00     0.00  volcano_update
-  0.00     34.74     0.00        1     0.00     0.00  wormholes_register
-  0.00     34.74     0.00        1     0.00     0.00  wormholes_update
-  0.00     34.74     0.00        1     0.00     0.00  write_alliances
-  0.00     34.74     0.00        1     0.00     0.00  write_borders
-  0.00     34.74     0.00        1     0.00     0.00  write_planes
-  0.00     34.74     0.00        1     0.00     0.35  writegame
-  0.00     34.74     0.00        1     0.00     0.00  writepasswd
-  0.00     34.74     0.00        1     0.00     0.00  writeturn
-  0.00     34.74     0.00        1     0.00     0.00  xml_done
-
- %         the percentage of the total running time of the
-time       program used by this function.
-
-cumulative a running sum of the number of seconds accounted
- seconds   for by this function and those listed above it.
-
- self      the number of seconds accounted for by this
-seconds    function alone.  This is the major sort for this
-           listing.
-
-calls      the number of times this function was invoked, if
-           this function is profiled, else blank.
- 
- self      the average number of milliseconds spent in this
-ms/call    function per call, if this function is profiled,
-	   else blank.
-
- total     the average number of milliseconds spent in this
-ms/call    function and its descendents per call, if this 
-	   function is profiled, else blank.
-
-name       the name of the function.  This is the minor sort
-           for this listing. The index shows the location of
-	   the function in the gprof listing. If the index is
-	   in parenthesis it shows where it would appear in
-	   the gprof listing if it were to be printed.
-
-		     Call graph (explanation follows)
-
-
-granularity: each sample hit covers 2 byte(s) for 0.03% of 34.74 seconds
-
-index % time    self  children    called     name
-                                                 <spontaneous>
-[1]     53.9    0.00   18.72                 tolua_write_reports [1]
-                0.00   18.69       1/1           reports [2]
-                0.00    0.02       1/1           init_reports [399]
------------------------------------------------
-                0.00   18.69       1/1           tolua_write_reports [1]
-[2]     53.8    0.00   18.69       1         reports [2]
-                0.00   18.67     232/232         write_reports [3]
-                0.00    0.02       1/6           remove_empty_units [146]
-                0.00    0.00       1/1           report_donations [725]
-                0.00    0.00     232/232         write_script [853]
-                0.00    0.00       1/573         join_path [1016]
-                0.00    0.00       1/564         reportpath [1063]
-                0.00    0.00       1/64          log_info [1339]
------------------------------------------------
-                0.00   18.67     232/232         reports [2]
-[3]     53.7    0.00   18.67     232         write_reports [3]
-                0.77    6.37     230/230         report_plaintext [4]
-                3.91    0.70     232/232         prepare_report [8]
-                0.96    3.25     230/230         report_computer [9]
-                0.96    0.53     232/232         get_addresses [20]
-                0.88    0.00     232/232         finish_reports [33]
-                0.27    0.06      99/99          report_template [87]
-                0.00    0.00     559/5100840     itoa36 [116]
-                0.00    0.00     559/573         join_path [1016]
-                0.00    0.00     559/564         reportpath [1063]
-                0.00    0.00     232/1295787     factionname [247]
-                0.00    0.00     232/49235       log_debug [1245]
------------------------------------------------
-                0.77    6.37     230/230         write_reports [3]
-[4]     20.6    0.77    6.37     230         report_plaintext [4]
-                0.02    2.96 1344397/1344397     nr_unit [11]
-                0.05    0.77  127676/127676      describe [35]
-                0.03    0.77   78504/79180       rp_messages [36]
-                0.29    0.13  453309/1437425     cansee [22]
-                0.02    0.40   33139/33139       statistics [70]
-                0.03    0.31   35287/35287       prices [85]
-                0.01    0.21  180598/180598      nr_ship [111]
-                0.01    0.12  113592/113592      nr_building [141]
-                0.02    0.04   62581/62581       guards [229]
-                0.04    0.00 21341107/50553492     stealth_modifier [188]
-                0.01    0.03  127676/127676      write_travelthru [327]
-                0.00    0.02     230/230         allies [419]
-                0.02    0.00   78274/130250      r_getmessages [360]
-                0.00    0.01    2081/2081        nr_spell [507]
-                0.00    0.01     230/230         rp_battles [618]
-                0.00    0.01     230/481         count_units [487]
-                0.00    0.01     230/967         count_all [357]
-                0.00    0.01     230/461         maxheroes [492]
-                0.00    0.01     229/229         list_address [635]
-                0.00    0.00     226/457         countheroes [572]
-                0.00    0.00  293098/2494242     newline [594]
-                0.00    0.00    1080/1380398     nr_render [25]
-                0.00    0.00      23/45          count_maxmigrants [730]
-                0.00    0.00      23/45          count_migrants [731]
-                0.00    0.00   54055/2605004     rpeasants [435]
-                0.00    0.00   62581/163027      markets_module [748]
-                0.00    0.00    5009/24887945     locale_string [27]
-                0.00    0.00    1080/967784      msg_message [132]
-                0.00    0.00     162/786         average_score_of_age [777]
-                0.00    0.00    4967/34611296     strlcpy [45]
-                0.00    0.00     230/230         gamedate_season [944]
-                0.00    0.00    3437/37931       centre [789]
-                0.00    0.00     460/71815034     get_race [12]
-                0.00    0.00    5871/36653945     wrptr [178]
-                0.00    0.00     230/1295787     factionname [247]
-                0.00    0.00    1539/13259934     resourcename [233]
-                0.00    0.00     567/4133717     mkname [261]
-                0.00    0.00     230/2818494     rc_name_s [260]
-                0.00    0.00     460/51974272     a_find [65]
-                0.00    0.00     230/462         game_name [1168]
-                0.00    0.00     324/1572        write_score [1135]
-                0.00    0.00     460/20836359     f_get_alliance [455]
-                0.00    0.00       1/3902878     get_monsters [293]
-                0.00    0.00     230/1214        rule_faction_limit [1331]
-                0.00    0.00  128596/128596      check_errno [1432]
-                0.00    0.00  127906/128135      rpline [1433]
-                0.00    0.00    9147/9147        merge_messages [1517]
-                0.00    0.00    9147/9147        split_messages [1518]
-                0.00    0.00    1080/1009028     msg_release [1373]
-                0.00    0.00     460/40692       get_gamedate [1466]
-                0.00    0.00     337/1582        resource2potion [1569]
------------------------------------------------
-                                                 <spontaneous>
-[5]     16.2    0.00    5.64                 tolua_process_orders [5]
-                0.00    5.61       1/1           processorders [6]
-                0.03    0.00       1/1           reset_game [356]
------------------------------------------------
-                0.00    5.61       1/1           tolua_process_orders [5]
-[6]     16.2    0.00    5.61       1         processorders [6]
-                0.47    5.00       1/1           process [7]
-                0.04    0.05       1/1           ageing [185]
-                0.00    0.03       1/1           update_spells [381]
-                0.00    0.02       1/6           remove_empty_units [146]
-                0.00    0.00       1/1           wormholes_update [906]
-                0.00    0.00       1/1           init_processor [1310]
-                0.00    0.00       2/4984610     config_get_int [348]
-                0.00    0.00       1/64          log_info [1339]
------------------------------------------------
-                0.47    5.00       1/1           processorders [6]
-[7]     15.7    0.47    5.00       1         process [7]
-                0.00    1.07  178254/178254      produce [29]
-                0.04    0.57       1/1           movement [47]
-                0.00    0.54       1/1           demographics [50]
-                0.00    0.45       1/1           do_battles [63]
-                0.02    0.34  178254/178254      economics [78]
-                0.04    0.27       1/1           randomevents [91]
-                0.29    0.00 31172689/55492327     getkeyword [54]
-                0.03    0.21  417808/417808      study_cmd [105]
-                0.00    0.12  534762/534762      enter_1 [145]
-                0.01    0.10       1/1           magic [157]
-                0.00    0.09     799/799         setstealth_cmd [182]
-                0.00    0.07       1/1           monthly_healing [215]
-                0.00    0.06  595478/595478      monster_kills_peasants [230]
-                0.03    0.02       1/1           defaultorders [249]
-                0.04    0.01  178254/178254      do_contact [250]
-                0.01    0.04  595896/595896      update_long_order [270]
-                0.00    0.05    5384/5384        teach_cmd [272]
-                0.00    0.05       1/1           quit [276]
-                0.00    0.04       1/1           new_units [282]
-                0.00    0.04  131765/131765      give_control_cmd [287]
-                0.00    0.04  178254/178254      enter_2 [295]
-                0.00    0.04   35708/35708       reserve_cmd [324]
-                0.00    0.04   35708/35708       reserve_self [325]
-                0.02    0.02  595898/595898      follow_unit [331]
-                0.01    0.02  178254/178254      maintain_buildings [339]
-                0.01    0.02       1/1           regenerate_aura [346]
-                0.02    0.01       1/1           restack_units [353]
-                0.00    0.03   10600/10600       make_cmd [383]
-                0.01    0.01  178254/178254      sinkships [475]
-                0.00    0.01  438223/71815034     get_race [12]
-                0.01    0.00  178254/178254      do_siege [515]
-                0.00    0.00   30554/30554       guard_on_cmd [656]
-                0.00    0.00  435900/1629412     LongHunger [536]
-                0.00    0.00   30634/30634       guard_off_cmd [711]
-                0.00    0.00     236/236         leave_cmd [721]
-                0.00    0.00  178254/178254      split_allocations [743]
-                0.00    0.00  439954/129167539     u_race [89]
-                0.00    0.00     590/590         use_cmd [763]
-                0.00    0.00     138/138         renumber_cmd [780]
-                0.00    0.00     241/241         reshow_cmd [818]
-                0.00    0.00    3117/3117        name_cmd [835]
-                0.00    0.00     348/348         mail_cmd [844]
-                0.00    0.00    2013/2013        display_cmd [859]
-                0.00    0.00     791/791         ally_cmd [877]
-                0.00    0.00       1/1           nmr_warnings [878]
-                0.00    0.00      80/80          combatspell_cmd [898]
-                0.00    0.00    1700/1700        status_cmd [904]
-                0.00    0.00       1/1           promotion_cmd [917]
-                0.00    0.00     621/621         group_cmd [985]
-                0.00    0.00       1/1           renumber_factions [1156]
-                0.00    0.00       6/6           send_cmd [1202]
-                0.00    0.00      17/12246335     ct_find [114]
-                0.00    0.00       2/2           claim_cmd [1242]
-                0.00    0.00      17/10190660     get_curse [143]
-                0.00    0.00      17/4201030     curse_active [543]
-                0.00    0.00      68/49235       log_debug [1245]
-                0.00    0.00    5588/59694       r_insectstalled [1446]
-                0.00    0.00      17/651711      oldcursename [1381]
-                0.00    0.00       5/5           free_group [1750]
------------------------------------------------
-                3.91    0.70     232/232         write_reports [3]
-[8]     13.3    3.91    0.70     232         prepare_report [8]
-                0.08    0.53 3066474/3398582     travelthru_map [41]
-                0.00    0.03    3438/3438        prepare_lighthouse [340]
-                0.00    0.02  596221/71815034     get_race [12]
-                0.01    0.01  596221/745269      add_seen_nb [386]
-                0.02    0.00     464/464         firstregion [485]
-                0.00    0.00  596221/129167539     u_race [89]
-                0.00    0.00     232/560926      bt_find [237]
-                0.00    0.00       1/216069      config_token [794]
-                0.00    0.00    3563/26995       inside_building [1486]
-                0.00    0.00     464/464         lastregion [1601]
-                0.00    0.00     232/2386892     config_changed [1352]
------------------------------------------------
-                0.96    3.25     230/230         write_reports [3]
-[9]     12.1    0.96    3.25     230         report_computer [9]
-                0.01    3.18  209572/209572      cr_output_region [10]
-                0.00    0.02     230/230         report_crtypes [428]
-                0.00    0.01     230/230         cr_find_address [602]
-                0.00    0.01     230/967         count_all [357]
-                0.00    0.01     230/461         maxheroes [492]
-                0.00    0.01     723/61961       cr_output_messages [57]
-                0.01    0.00     230/457         countheroes [572]
-                0.00    0.00    1921/1921        show_allies_cr [661]
-                0.00    0.00     230/230         write_translations [689]
-                0.00    0.00    2081/2081        cr_reportspell [756]
-                0.00    0.00      22/45          count_maxmigrants [730]
-                0.00    0.00      22/45          count_migrants [731]
-                0.00    0.00     460/11719       locale_name [568]
-                0.00    0.00    1896/4434556     translate [75]
-                0.00    0.00     162/786         average_score_of_age [777]
-                0.00    0.00    2693/24887945     locale_string [27]
-                0.00    0.00    1921/2277350     get_prefix [263]
-                0.00    0.00     493/1826688     adjust_coordinates [234]
-                0.00    0.00    1876/13259934     resourcename [233]
-                0.00    0.00     337/32337529     hashstring [37]
-                0.00    0.00     464/4133717     mkname [261]
-                0.00    0.00     230/2818494     rc_name_s [260]
-                0.00    0.00     460/51974272     a_find [65]
-                0.00    0.00     230/12560453     rc_changed [256]
-                0.00    0.00     230/462         game_name [1168]
-                0.00    0.00     324/1572        write_score [1135]
-                0.00    0.00     230/45860       print_items [938]
-                0.00    0.00     493/18647447     getplane [596]
-                0.00    0.00     230/230         show_alliances_cr [1248]
-                0.00    0.00     230/20836359     f_get_alliance [455]
-                0.00    0.00       1/68430117     rc_find [15]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00     230/1214        rule_faction_limit [1331]
-                0.00    0.00     493/3587241     pnormalize [1350]
-                0.00    0.00     337/1582        resource2potion [1569]
-                0.00    0.00     230/231         eressea_version [1624]
-                0.00    0.00     230/230         reset_translations [1625]
------------------------------------------------
-                0.01    3.18  209572/209572      report_computer [9]
-[10]     9.2    0.01    3.18  209572         cr_output_region [10]
-                0.01    1.60  923671/923671      cr_output_unit_compat [18]
-                0.36    0.16  550775/1437425     cansee [22]
-                0.00    0.46   61238/61961       cr_output_messages [57]
-                0.06    0.09  209572/209572      cr_borders [135]
-                0.00    0.12  179761/179761      cr_output_ship [152]
-                0.00    0.06   45630/45630       cr_output_resources [238]
-                0.00    0.06  104830/104830      cr_output_building [239]
-                0.00    0.04  102149/102149      cr_output_travelthru [298]
-                0.01    0.02  427650/4434556     translate [75]
-                0.00    0.03  102149/386740      cr_output_curses_compat [144]
-                0.00    0.02  249624/4374788     visible_faction [68]
-                0.01    0.01  427650/24887945     locale_string [27]
-                0.01    0.00   51976/130250      r_getmessages [360]
-                0.00    0.01  104830/593636      building_owner [232]
-                0.00    0.01   36929/490896      wage [174]
-                0.00    0.01  209572/1874928     terrain_name [226]
-                0.01    0.00  211668/1826688     adjust_coordinates [234]
-                0.00    0.00   77909/1552289     rname [200]
-                0.00    0.00   36937/79772       entertainmoney [643]
-                0.00    0.00     365/8892        astralregions [329]
-                0.00    0.00   36937/669051      production [417]
-                0.00    0.00  179761/3358315     ship_owner [438]
-                0.00    0.00  218078/13259934     resourcename [233]
-                0.00    0.00  119504/2605004     rpeasants [435]
-                0.00    0.00   38612/987488      is_astral [479]
-                0.00    0.00   37300/12246335     ct_find [114]
-                0.00    0.00   37300/10190660     get_curse [143]
-                0.00    0.00   36937/163027      markets_module [748]
-                0.00    0.00  102149/50553492     stealth_modifier [188]
-                0.00    0.00   36937/4666665     rmoney [452]
-                0.00    0.00  211668/18647447     getplane [596]
-                0.00    0.00   37300/4201030     curse_active [543]
-                0.00    0.00   45630/45860       print_items [938]
-                0.00    0.00   36937/21345834     skill_enabled [365]
-                0.00    0.00   36937/1613387     rule_region_owners [1323]
-                0.00    0.00  211668/3587241     pnormalize [1350]
-                0.00    0.00  209572/209572      cr_region_header [1414]
-                0.00    0.00   45630/1160345     rhorses [1369]
-                0.00    0.00   37300/651711      oldcursename [1381]
-                0.00    0.00   36929/515192      is_mourning [1392]
-                0.00    0.00     311/109377      free_regionlist [1436]
------------------------------------------------
-                0.02    2.96 1344397/1344397     report_plaintext [4]
-[11]     8.6    0.02    2.96 1344397         nr_unit [11]
-                0.03    1.85 1344359/1348743     bufunit [17]
-                0.58    0.02 1344359/2742237     paragraph [26]
-                0.43    0.03 1344359/1766225     nr_curses [48]
-                0.01    0.00 1344359/51974272     a_find [65]
-                0.01    0.00 1344359/2494242     newline [594]
-                0.00    0.00 1344397/129167539     u_race [89]
-                0.00    0.00  750517/1214628     is_allied [1368]
-                0.00    0.00  373997/1380007     get_otherfaction [1362]
------------------------------------------------
-                0.00    0.00       1/71815034     sp_summonshadowlords [1034]
-                0.00    0.00       1/71815034     rc_specialdamage [830]
-                0.00    0.00       1/71815034     heal_factor [619]
-                0.00    0.00       1/71815034     make_zombie [1267]
-                0.00    0.00       1/71815034     is_migrant [1047]
-                0.00    0.00       1/71815034     magic_lowskill [897]
-                0.00    0.00       1/71815034     rc_skillmod [140]
-                0.00    0.00       1/71815034     age_illusion [1308]
-                0.00    0.00       2/71815034     omniscient [470]
-                0.00    0.00       2/71815034     do_fumble [1062]
-                0.00    0.00       2/71815034     sp_igjarjuk [923]
-                0.00    0.00       2/71815034     skill_mod [264]
-                0.00    0.00       3/71815034     guard_flags [690]
-                0.00    0.00       3/71815034     cast_cmd [760]
-                0.00    0.00       4/71815034     dissolve_units [241]
-                0.00    0.00       4/71815034     age_firedragon [1123]
-                0.00    0.00       5/71815034     age_dragon [1098]
-                0.00    0.00       7/71815034     age_ghoul [1024]
-                0.00    0.00       8/71815034     mod_elves_only [1239]
-                0.00    0.00      10/71815034     chaos [848]
-                0.00    0.00      10/71815034     spawn_dragons [411]
-                0.00    0.00      12/71815034     sp_summonundead [896]
-                0.00    0.00      15/71815034     steal_cmd [766]
-                0.00    0.00      17/71815034     recruit_dracoids [837]
-                0.00    0.00      17/71815034     age_zombie [1019]
-                0.00    0.00      19/71815034     age_skeleton [1008]
-                0.00    0.00      20/71815034     damage_unit [1044]
-                0.00    0.00      20/71815034     spawn_seaserpent [831]
-                0.00    0.00      31/71815034     random_unit [1174]
-                0.00    0.00      38/71815034     sp_viewreality [784]
-                0.00    0.00      42/71815034     loot_cmd [873]
-                0.00    0.00      44/71815034     plan_dragon [273]
-                0.00    0.00      44/71815034     build_road [950]
-                0.00    0.00      56/71815034     use_bloodpotion [935]
-                0.00    0.00      71/71815034     disband_men [999]
-                0.00    0.00      93/71815034     report_summary [614]
-                0.00    0.00     138/71815034     LongHunger [536]
-                0.00    0.00     188/71815034     is_freezing [1088]
-                0.00    0.00     247/71815034     spawn_undead [629]
-                0.00    0.00     460/71815034     report_plaintext [4]
-                0.00    0.00     489/71815034     make_fighter [424]
-                0.00    0.00     639/71815034     spawn_braineaters [505]
-                0.00    0.00     659/71815034     can_give_men [940]
-                0.00    0.00     960/71815034     tax_cmd [697]
-                0.00    0.00    1098/71815034     statistics [70]
-                0.00    0.00    1689/71815034     recruit [650]
-                0.00    0.00    1725/71815034     max_magicians [915]
-                0.00    0.00    3743/71815034     battle_flee [352]
-                0.00    0.00    5915/71815034     buy [707]
-                0.00    0.00    7279/71815034     remove_empty_units_in_region [134]
-                0.00    0.00    7560/71815034     drown [394]
-                0.00    0.00    7957/71815034     magic_resistance [727]
-                0.00    0.00   12787/71815034     canwalk [633]
-                0.00    0.00   15763/71815034     sell [498]
-                0.00    0.00   18304/71815034     average_score_of_age [777]
-                0.00    0.00   23630/71815034     immigration [294]
-                0.00    0.00   23993/71815034     guard_on_cmd [656]
-                0.00    0.00   27694/71815034     dragon_affinity_value [516]
-                0.00    0.00   84047/71815034     monster_move [129]
-                0.00    0.00   96637/71815034     walkingcapacity [403]
-                0.00    0.00  102606/71815034     give_cmd [102]
-                0.00    0.00  105958/71815034     travel_route [147]
-                0.00    0.00  116914/71815034     fleechance [408]
-                0.00    0.00  120592/71815034     CavalryBonus [491]
-                0.00    0.00  125515/71815034     default_wage [173]
-                0.00    0.00  154155/71815034     terminate [242]
-                0.00    0.01  221802/71815034     unitorders [46]
-                0.00    0.01  236296/71815034     weapon_skill [221]
-                0.00    0.01  335497/71815034     plan_monsters [52]
-                0.00    0.01  417740/71815034     study_cmd [105]
-                0.00    0.01  438223/71815034     process [7]
-                0.00    0.01  463903/71815034     skilldiff [166]
-                0.00    0.02  595472/71815034     age_unit [336]
-                0.00    0.02  595476/71815034     demon_skillchanges [246]
-                0.00    0.02  596221/71815034     prepare_report [8]
-                0.00    0.02  783946/71815034     produce [29]
-                0.00    0.03 1044674/71815034     get_food [88]
-                0.01    0.04 1190864/71815034     magic [157]
-                0.01    0.07 2383980/71815034     score [23]
-                0.27    1.91 61440990/71815034     old_race [14]
-[12]     7.3    0.31    2.23 71815034         get_race [12]
-                0.07    2.16 67832617/68430117     rc_find [15]
------------------------------------------------
-                                                 <spontaneous>
-[13]     6.9    2.41    0.00                 cb_find_top_i [13]
------------------------------------------------
-                0.00    0.00     133/2480226     income [885]
-                0.00    0.00     249/2480226     plan_dragon [273]
-                0.01    0.08   96316/2480226     movement_speed [155]
-                0.09    1.04 1191719/2480226     score [23]
-                0.09    1.04 1191809/2480226     make_summary [21]
-[14]     6.8    0.19    2.17 2480226         old_race [14]
-                0.27    1.91 61440990/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00       1/68430117     report_computer [9]
-                0.00    0.00       1/68430117     use_bloodpotion [935]
-                0.00    0.00       2/68430117     parse_resources [1086]
-                0.00    0.00       3/68430117     xml_readweapon [1266]
-                0.00    0.00       6/68430117     tolua_unit_create [916]
-                0.00    0.00     233/68430117     readfaction [767]
-                0.00    0.02  597254/68430117     read_unit [74]
-                0.07    2.16 67832617/68430117     get_race [12]
-[15]     6.5    0.07    2.18 68430117         rc_find [15]
-                2.18    0.00 68430117/68430271     rc_find_i [16]
------------------------------------------------
-                0.00    0.00       4/68430271     read_race_reference [1278]
-                0.00    0.00     150/68430271     rc_get_or_create [1105]
-                2.18    0.00 68430117/68430271     rc_find [15]
-[16]     6.3    2.18    0.00 68430271         rc_find_i [16]
------------------------------------------------
-                0.00    0.01    4384/1348743     spunit [632]
-                0.03    1.85 1344359/1348743     nr_unit [11]
-[17]     5.4    0.03    1.85 1348743         bufunit [17]
-                0.04    0.49 1953682/1953682     spskill [53]
-                0.04    0.20 9318596/17451017     strlcpy_w [67]
-                0.01    0.14 1350873/1351796     racename [133]
-                0.00    0.13 1348743/4374788     visible_faction [68]
-                0.03    0.10  704700/1405457     report_items [103]
-                0.01    0.10 1187497/1205451     alliedfaction [162]
-                0.00    0.08  494960/494960      buforder [201]
-                0.01    0.07 1348743/2383101     unitname [142]
-                0.00    0.06  598226/773191      hp_status [206]
-                0.00    0.05 1145124/1295787     factionname [247]
-                0.02    0.02  834439/24887945     locale_string [27]
-                0.00    0.04  598226/598234      report_status [318]
-                0.00    0.03  373172/9953180     alliedunit [31]
-                0.01    0.02 1783118/12353561     report_item [106]
-                0.02    0.00 1348743/2868601     u_irace [257]
-                0.00    0.02  595139/597806      unit_get_spellbook [427]
-                0.00    0.02 1348743/2272376     u_description [347]
-                0.01    0.01 1348743/2275967     get_racename [368]
-                0.02    0.00 6078454/36653945     wrptr [178]
-                0.00    0.02 1348743/6610983     is_guard [211]
-                0.01    0.00 1401002/51974272     a_find [65]
-                0.00    0.01 1348743/1523708     uprivate [497]
-                0.01    0.00 1045507/55492327     getkeyword [54]
-                0.00    0.00 1045507/2985733     is_repeated [552]
-                0.00    0.00  761036/4503145     omniscient [470]
-                0.00    0.00 1348743/4835422     usiege [593]
-                0.00    0.00   56643/56643       groupid [698]
-                0.00    0.00   35516/86400       spell_name [646]
-                0.00    0.00  597269/129167539     u_race [89]
-                0.00    0.00 1187497/18647447     getplane [596]
-                0.00    0.00   32943/34611296     strlcpy [45]
-                0.00    0.00    1334/5358        max_spellpoints [755]
-                0.00    0.00    4786/4875        get_combatspell [874]
-                0.00    0.00    1265/1339        get_combatspelllevel [880]
-                0.00    0.00    1334/12320804     effskill <cycle 1> [100]
-                0.00    0.00    1334/4915        get_spellpoints [872]
-                0.00    0.00  401604/1380007     get_otherfaction [1362]
------------------------------------------------
-                0.01    1.60  923671/923671      cr_output_region [10]
-[18]     4.6    0.01    1.60  923671         cr_output_unit_compat [18]
-                0.12    1.48  923671/923671      cr_output_unit [19]
------------------------------------------------
-                0.12    1.48  923671/923671      cr_output_unit_compat [18]
-[19]     4.6    0.12    1.48  923671         cr_output_unit [19]
-                0.28    0.02  923633/1310373     cr_output_curses [69]
-                0.11    0.17 3373083/4434556     translate [75]
-                0.07    0.07 2768576/24887945     locale_string [27]
-                0.02    0.10  700757/1405457     report_items [103]
-                0.01    0.09  610341/610341      stream_order [167]
-                0.10    0.00 9429681/10103290     stream_printf [158]
-                0.00    0.09  923633/4374788     visible_faction [68]
-                0.02    0.03  604957/12320804     effskill <cycle 1> [100]
-                0.00    0.04  603246/2934859     skillname [122]
-                0.00    0.03  371101/9953180     alliedunit [31]
-                0.01    0.02 1727391/12353561     report_item [106]
-                0.00    0.02  923633/2275429     raceprefix [222]
-                0.00    0.02  174965/773191      hp_status [206]
-                0.01    0.01  925760/2818494     rc_name_s [260]
-                0.02    0.00  923633/2868601     u_irace [257]
-                0.00    0.01  923633/2272376     u_description [347]
-                0.01    0.01  174965/279395      weight [459]
-                0.00    0.01  923633/2275967     get_racename [368]
-                0.00    0.01  923633/6610983     is_guard [211]
-                0.00    0.01  923633/3351853     unit_getname [332]
-                0.00    0.01 2246004/4503145     omniscient [470]
-                0.00    0.01  716432/4133717     mkname [261]
-                0.01    0.00  973220/51974272     a_find [65]
-                0.01    0.00  695201/55492327     getkeyword [54]
-                0.00    0.01  174965/1441945     is_mage [262]
-                0.00    0.01  174965/2426021     get_mage [198]
-                0.00    0.01    1711/1711        cr_output_spells [639]
-                0.00    0.00 1100763/129167539     u_race [89]
-                0.00    0.00  174965/7120688     get_money [187]
-                0.00    0.00  923633/4835422     usiege [593]
-                0.00    0.00  174965/174968      get_familiar_mage [722]
-                0.00    0.00  174965/285923      ualias [692]
-                0.00    0.00  174965/1523708     uprivate [497]
-                0.00    0.00  705241/2155959     is_persistent [687]
-                0.00    0.00    1711/5358        max_spellpoints [755]
-                0.00    0.00   68497/2985733     is_repeated [552]
-                0.00    0.00    1261/86400       spell_name [646]
-                0.00    0.00    1711/4915        get_spellpoints [872]
-                0.00    0.00    1637/8034        u_geteffstealth [919]
-                0.00    0.00    2127/21345834     skill_enabled [365]
-                0.00    0.00  603246/603246      level_days [1388]
-                0.00    0.00  412396/1380007     get_otherfaction [1362]
------------------------------------------------
-                0.96    0.53     232/232         write_reports [3]
-[20]     4.3    0.96    0.53     232         get_addresses [20]
-                0.27    0.12  418124/1437425     cansee [22]
-                0.00    0.08  854692/4374788     visible_faction [68]
-                0.05    0.00 29110236/50553492     stealth_modifier [188]
-                0.00    0.00   15708/15708       add_travelthru_addresses [673]
-                0.00    0.00     464/20836359     f_get_alliance [455]
-                0.00    0.00  453546/1214628     is_allied [1368]
-                0.00    0.00  350020/353788      add_seen_faction_i [1401]
-                0.00    0.00     232/232         transfer_seen [1622]
------------------------------------------------
-                0.04    0.69       1/2           tolua_init_summary [40]
-                0.04    0.69       1/2           tolua_write_summary [38]
-[21]     4.2    0.08    1.38       2         make_summary [21]
-                0.09    1.04 1191809/2480226     old_race [14]
-                0.03    0.05 1213526/12320804     effskill <cycle 1> [100]
-                0.01    0.04  351667/771861      armedmen [151]
-                0.05    0.00  713016/1248014     listlen [190]
-                0.00    0.02  703334/5395063     i_get [130]
-                0.02    0.00 1543013/7120688     get_money [187]
-                0.00    0.01  839681/3902878     get_monsters [293]
-                0.00    0.00  454160/2605004     rpeasants [435]
-                0.00    0.00 1191346/129167539     u_race [89]
-                0.00    0.00   97652/4666665     rmoney [452]
-                0.00    0.00       2/56052475     get_resourcetype [194]
-                0.00    0.00  356508/1160345     rhorses [1369]
-                0.00    0.00  201709/1511812     newterrain [1359]
------------------------------------------------
-                0.00    0.00       4/1437425     init_transportation [384]
-                0.00    0.00       4/1437425     sp_generous [1040]
-                0.00    0.00       4/1437425     seefaction [1117]
-                0.00    0.00       8/1437425     caught_target [1003]
-                0.00    0.00      12/1437425     sp_enterastral [1045]
-                0.00    0.00      14/1437425     verify_unit [1028]
-                0.00    0.00      30/1437425     sp_song_of_peace [939]
-                0.00    0.00      35/1437425     mailunit [921]
-                0.00    0.00      38/1437425     mail_cmd [844]
-                0.00    0.00      39/1437425     deliverMail [966]
-                0.00    0.00      70/1437425     can_give_to [600]
-                0.00    0.00      81/1437425     can_guard [908]
-                0.00    0.00      84/1437425     steal_cmd [766]
-                0.00    0.00     109/1437425     set_factionstealth [183]
-                0.00    0.00     197/1437425     report_action [860]
-                0.00    0.00     397/1437425     is_guardian_u [626]
-                0.00    0.00     752/1437425     monster_attack [764]
-                0.00    0.00     816/1437425     follow_unit [331]
-                0.00    0.00    1443/1437425     start_battle [297]
-                0.01    0.00   11080/1437425     monster_attacks [248]
-                0.27    0.12  418124/1437425     get_addresses [20]
-                0.29    0.13  453309/1437425     report_plaintext [4]
-                0.36    0.16  550775/1437425     cr_output_region [10]
-[22]     3.9    0.93    0.42 1437425         cansee [22]
-                0.07    0.10 2363341/12320804     effskill <cycle 1> [100]
-                0.00    0.12 1513189/1753922     invisible [139]
-                0.02    0.07  960413/1188532     eff_stealth [163]
-                0.00    0.01 1211531/6610983     is_guard [211]
-                0.00    0.01 1335380/1474687     leftship [500]
-                0.00    0.01 1335533/4503145     omniscient [470]
-                0.00    0.00 2363341/21345834     skill_enabled [365]
-                0.00    0.00 1335533/129167539     u_race [89]
-                0.00    0.00 1156253/4835422     usiege [593]
-                0.00    0.00      48/51974272     a_find [65]
------------------------------------------------
-                0.06    1.25       2/2           tolua_update_scores [24]
-[23]     3.8    0.06    1.25       2         score [23]
-                0.09    1.04 1191719/2480226     old_race [14]
-                0.01    0.07 2383980/71815034     get_race [12]
-                0.01    0.00 1191719/7120688     get_money [187]
-                0.01    0.00 3903981/129167539     u_race [89]
-                0.00    0.01   92368/593636      building_owner [232]
-                0.00    0.00     462/786         average_score_of_age [777]
-                0.00    0.00   38156/3358315     ship_owner [438]
-                0.00    0.00     462/5100840     itoa36 [116]
-                0.00    0.00     924/1572        write_score [1135]
-                0.00    0.00       2/573         join_path [1016]
-                0.00    0.00  356508/1613387     rule_region_owners [1323]
-                0.00    0.00       2/9           basepath [1730]
------------------------------------------------
-                                                 <spontaneous>
-[24]     3.8    0.00    1.31                 tolua_update_scores [24]
-                0.06    1.25       2/2           score [23]
------------------------------------------------
-                0.00    0.00       1/1380398     sp_summon_familiar [1025]
-                0.00    0.00     676/1380398     rp_battles [618]
-                0.00    0.00    1080/1380398     report_plaintext [4]
-                0.00    0.01   12729/1380398     cr_output_curses [69]
-                0.00    0.01   15186/1380398     nr_curses_i [401]
-                0.00    0.04   41255/1380398     log_orders [251]
-                0.00    0.15  163573/1380398     describe [35]
-                0.00    0.18  192618/1380398     statistics [70]
-                0.00    0.23  247009/1380398     prices [85]
-                0.00    0.28  301257/1380398     render_messages [58]
-                0.00    0.38  405014/1380398     rp_messages [36]
-[25]     3.7    0.00    1.28 1380398         nr_render [25]
-                0.11    1.07 1380398/1380398     translate [28]
-                0.04    0.03 1380398/5168717     nrt_find [98]
-                0.03    0.00 1380398/34611296     strlcpy [45]
------------------------------------------------
-                0.00    0.00    1888/2742237     allies [419]
-                0.00    0.00    2081/2742237     nr_spell_syntax [732]
-                0.00    0.00   10794/2742237     list_address [635]
-                0.01    0.00   15186/2742237     nr_curses_i [401]
-                0.01    0.00   19851/2742237     nr_spell [507]
-                0.01    0.00   27498/2742237     guards [229]
-                0.02    0.00   35287/2742237     prices [85]
-                0.02    0.00   55063/2742237     cb_write_travelthru [169]
-                0.05    0.00  113592/2742237     nr_building [141]
-                0.07    0.00  169255/2742237     describe [35]
-                0.08    0.00  180598/2742237     nr_ship [111]
-                0.16    0.01  361771/2742237     statistics [70]
-                0.18    0.01  405014/2742237     rp_messages [36]
-                0.58    0.02 1344359/2742237     nr_unit [11]
-[26]     3.5    1.19    0.04 2742237         paragraph [26]
-                0.04    0.00 7811581/7851812     write_spaces [303]
------------------------------------------------
-                0.00    0.00       1/24887945     sp_summon_familiar [1025]
-                0.00    0.00       2/24887945     register_special_direction [1259]
-                0.00    0.00       2/24887945     eval_unit [223]
-                0.00    0.00       2/24887945     eval_unit_dative [1076]
-                0.00    0.00       2/24887945     b_namequestportal [1279]
-                0.00    0.00       2/24887945     create_ship [1014]
-                0.00    0.00       2/24887945     new_ship [1229]
-                0.00    0.00       8/24887945     display_item [1054]
-                0.00    0.00       9/24887945     gamedate2 [1222]
-                0.00    0.00      10/24887945     spawn_dragons [411]
-                0.00    0.00      11/24887945     new_building [1059]
-                0.00    0.00      14/24887945     findshiptype [869]
-                0.00    0.00      22/24887945     init_options_translation [1157]
-                0.00    0.00      26/24887945     init_directions [1143]
-                0.00    0.00      36/24887945     init_terrains_translation [1129]
-                0.00    0.00      44/24887945     curse_name [1140]
-                0.00    0.00      54/24887945     findbuildingtype [866]
-                0.00    0.00      78/24887945     eval_weight [1102]
-                0.00    0.00      92/24887945     spawn_undead [629]
-                0.00    0.00      93/24887945     report_summary [614]
-                0.00    0.00      94/24887945     give_peasants [1060]
-                0.00    0.00      99/24887945     piracy_cmd [660]
-                0.00    0.00     133/24887945     travel [81]
-                0.00    0.00     140/24887945     rp_battles [618]
-                0.00    0.00     210/24887945     print_header [838]
-                0.00    0.00     229/24887945     list_address [635]
-                0.00    0.00     251/24887945     out_faction [615]
-                0.00    0.00     264/24887945     init_translations [1033]
-                0.00    0.00     282/24887945     init_locale [948]
-                0.00    0.00     352/24887945     cr_resources [960]
-                0.00    0.00     356/24887945     cr_race [949]
-                0.00    0.00     446/24887945     print_items [938]
-                0.00    0.00     490/24887945     build_building [696]
-                0.00    0.00     495/24887945     display_race [963]
-                0.00    0.00     527/24887945     make_movement_order [522]
-                0.00    0.00     628/24887945     add_itemname_cb [980]
-                0.00    0.00     648/24887945     add_resourcename_cb [977]
-                0.00    0.00     666/24887945     generic_name [962]
-                0.00    0.00    1150/24887945     gamedate_season [944]
-                0.00    0.00    1188/24887945     follow_ship [749]
-                0.00    0.00    1196/24887945     eval_localize [922]
-                0.00    0.00    1490/24887945     eval_resources [907]
-                0.00    0.00    1520/24887945     eval_race [882]
-                0.00    0.00    1888/24887945     allies [419]
-                0.00    0.00    2008/24887945     default_name [851]
-                0.00    0.00    2073/24887945     cr_output_curses [69]
-                0.00    0.00    2693/24887945     report_computer [9]
-                0.00    0.00    3086/24887945     make_cmd [383]
-                0.00    0.00    3203/24887945     cr_reportspell [756]
-                0.00    0.00    4162/24887945     spell_info [841]
-                0.00    0.00    4257/24887945     eval_trail [634]
-                0.00    0.00    4762/24887945     nr_spell_syntax [732]
-                0.00    0.00    5009/24887945     report_plaintext [4]
-                0.00    0.00    5043/24887945     eval_ship [740]
-                0.00    0.00    7336/24887945     battle_report [503]
-                0.00    0.00    8758/24887945     print_stats [525]
-                0.00    0.00   30518/24887945     nr_spell [507]
-                0.00    0.00   31368/24887945     rp_messages [36]
-                0.00    0.00   35368/24887945     cb_write_travelthru [169]
-                0.00    0.00   54735/24887945     write_travelthru [327]
-                0.00    0.00   55807/24887945     report_template [87]
-                0.00    0.00   60360/24887945     guards [229]
-                0.00    0.00   65837/24887945     show_allies [429]
-                0.00    0.00   83723/24887945     monster_move [129]
-                0.00    0.00   86400/24887945     spell_name [646]
-                0.00    0.00   93450/24887945     b_nameroad [642]
-                0.00    0.00   97017/24887945     cr_borders [135]
-                0.00    0.00  104830/24887945     cr_output_building [239]
-                0.00    0.00  110167/24887945     cr_resource [488]
-                0.00    0.00  127788/24887945     eval_direction [608]
-                0.00    0.00  133973/24887945     cycle_route [375]
-                0.00    0.00  169153/24887945     statistics [70]
-                0.00    0.00  174677/24887945     cr_output_resource [378]
-                0.00    0.00  179761/24887945     cr_output_ship [152]
-                0.01    0.01  227343/24887945     nr_building [141]
-                0.01    0.01  247009/24887945     prices [85]
-                0.01    0.01  373674/24887945     nr_ship [111]
-                0.01    0.01  427650/24887945     cr_output_region [10]
-                0.01    0.01  470529/24887945     eval_resource [328]
-                0.01    0.01  537193/24887945     unit_getname [332]
-                0.01    0.01  592664/24887945     spskill [53]
-                0.01    0.01  598292/24887945     report_status [318]
-                0.02    0.02  751188/24887945     rname [200]
-                0.02    0.02  785221/24887945     trailinto [207]
-                0.02    0.02  834439/24887945     bufunit [17]
-                0.04    0.03 1460143/24887945     racename [133]
-                0.04    0.04 1783118/24887945     report_item [106]
-                0.05    0.04 1838265/24887945     describe [35]
-                0.05    0.05 2006524/24887945     get_command [108]
-                0.07    0.07 2768576/24887945     cr_output_unit [19]
-                0.07    0.07 2934859/24887945     skillname [122]
-                0.11    0.11 4488684/24887945     crtag [110]
-[27]     3.4    0.61    0.58 24887945         locale_string [27]
-                0.58    0.00 24887945/32337529     hashstring [37]
------------------------------------------------
-                0.11    1.07 1380398/1380398     nr_render [25]
-[28]     3.4    0.11    1.07 1380398         translate [28]
-                0.48    0.57 1379793/1380398     parse <cycle 5> [333]
-                0.01    0.00 1380398/13102790     opstack_pop [176]
-                0.01    0.00 3656767/13399069     balloc [363]
-                0.00    0.01 3656767/3656767     add_variable [607]
-                0.00    0.00     605/1380398     parse_string <cycle 5> [86]
-                0.00    0.00 1380398/1380398     brelease [1360]
-                0.00    0.00 1380398/1380398     free_variables [1361]
------------------------------------------------
-                0.00    1.07  178254/178254      process [7]
-[29]     3.1    0.00    1.07  178254         produce [29]
-                0.01    0.59    5494/5494        expandbuying [49]
-                0.00    0.30    4629/4629        expandselling [93]
-                0.00    0.05  178254/178254      expandwork [277]
-                0.00    0.05     663/663         expandtax [278]
-                0.00    0.02  783946/71815034     get_race [12]
-                0.00    0.01   15797/15797       sell [498]
-                0.00    0.01   11087/11087       do_work [612]
-                0.00    0.01  178254/438629      maxworkingpeasants [473]
-                0.00    0.01   11159/11159       expandentertainment [637]
-                0.01    0.00  619614/55492327     getkeyword [54]
-                0.00    0.00   16596/16596       entertain_cmd [665]
-                0.00    0.00  361137/2605004     rpeasants [435]
-                0.00    0.00     960/960         tax_cmd [697]
-                0.00    0.00  793492/129167539     u_race [89]
-                0.00    0.00    5916/5916        buy [707]
-                0.00    0.00  356508/4666665     rmoney [452]
-                0.00    0.00  189341/189341      rule_autowork [738]
-                0.00    0.00     177/177         breed_cmd [741]
-                0.00    0.00     111/111         steal_cmd [766]
-                0.00    0.00    6133/472418      produceexp [322]
-                0.00    0.00      41/41          expandstealing [807]
-                0.00    0.00      36/36          expandloot [816]
-                0.00    0.00   32679/32679       rule_auto_taxation [855]
-                0.00    0.00      42/42          loot_cmd [873]
-                0.00    0.00     349/349         research_cmd [886]
-                0.00    0.00    6245/51974272     a_find [65]
-                0.00    0.00      16/16          spy_cmd [990]
-                0.00    0.00      17/12246335     ct_find [114]
-                0.00    0.00      17/10190660     get_curse [143]
-                0.00    0.00       1/560926      bt_find [237]
-                0.00    0.00      17/4201030     curse_active [543]
-                0.00    0.00  178254/204314      bt_changed [1415]
-                0.00    0.00    4629/1511812     newterrain [1359]
-                0.00    0.00    4139/59694       r_insectstalled [1446]
-                0.00    0.00     344/75797       buildingtype_exists [1443]
-                0.00    0.00      17/651711      oldcursename [1381]
------------------------------------------------
-[30]     3.0    0.48    0.57 1380398+20060311 <cycle 5 as a whole> [30]
-                0.24    0.44 9544331             parse_symbol <cycle 5> [42]
-                0.21    0.12 2725583             parse_string <cycle 5> [86]
-                0.03    0.01 9170795             parse <cycle 5> [333]
------------------------------------------------
-                0.00    0.00       2/9953180     find_piracy_target [967]
-                0.00    0.00      79/9953180     can_guard [908]
-                0.00    0.00     112/9953180     give_unit [952]
-                0.00    0.00     112/9953180     mayboard [1046]
-                0.00    0.00     131/9953180     caught_target [1003]
-                0.00    0.00     215/9953180     mayenter [936]
-                0.00    0.00     315/9953180     piracy_cmd [660]
-                0.00    0.00     814/9953180     make_side [876]
-                0.00    0.00    1104/9953180     get_friends [895]
-                0.00    0.00    1198/9953180     check_ship_allowed [657]
-                0.00    0.00    1432/9953180     start_battle [297]
-                0.00    0.00    1613/9953180     sail [181]
-                0.00    0.00    2033/9953180     join_allies [693]
-                0.00    0.00    6140/9953180     bewegung_blockiert_von [631]
-                0.00    0.00    6326/9953180     study_cmd [105]
-                0.00    0.00    9353/9953180     teach_cmd [272]
-                0.00    0.01   63046/9953180     is_guardian_u [626]
-                0.00    0.01  102606/9953180     give_cmd [102]
-                0.00    0.01  102705/9953180     can_give_to [600]
-                0.00    0.01  111338/9953180     get_food [88]
-                0.00    0.03  371101/9953180     cr_output_unit [19]
-                0.00    0.03  373172/9953180     bufunit [17]
-                0.01    0.11 1273750/9953180     get_pooled [104]
-                0.03    0.26 3149695/9953180     use_pooled [39]
-                0.05    0.36 4374788/9953180     visible_faction [68]
-[31]     2.7    0.11    0.83 9953180         alliedunit [31]
-                0.56    0.17 9004040/10375491     alliedgroup [34]
-                0.05    0.00 5640296/51974272     a_find [65]
-                0.03    0.01 9004040/20834979     autoalliance [179]
-                0.00    0.00 9004040/18647447     getplane [596]
------------------------------------------------
-[32]     2.5    0.34    0.54 12320804+19159045 <cycle 1 as a whole> [32]
-                0.04    0.46 7179154             get_modifier <cycle 1> [55]
-                0.25    0.01 10030400             effskill <cycle 1> [100]
-                0.01    0.06 7298034             skillmod <cycle 1> [214]
-                0.04    0.00 6907106             eff_skill <cycle 1> [334]
-                0.01    0.00   65155             sm_familiar <cycle 1> [520]
------------------------------------------------
-                0.88    0.00     232/232         write_reports [3]
-[33]     2.5    0.88    0.00     232         finish_reports [33]
------------------------------------------------
-                0.00    0.00       3/10375491     join_allies [693]
-                0.00    0.00      27/10375491     allysfm [1122]
-                0.00    0.00   55310/10375491     show_allies_cr [661]
-                0.01    0.00  110660/10375491     show_allies [429]
-                0.07    0.02 1205451/10375491     alliedfaction [162]
-                0.56    0.17 9004040/10375491     alliedunit [31]
-[34]     2.4    0.64    0.20 10375491         alliedgroup [34]
-                0.03    0.08 10375461/10375461     AllianceRestricted [164]
-                0.05    0.01 11830939/20834979     autoalliance [179]
-                0.02    0.00 10375461/10375461     ally_mode [456]
-                0.02    0.00 20750952/24935046     faction_alive [451]
------------------------------------------------
-                0.05    0.77  127676/127676      report_plaintext [4]
-[35]     2.4    0.05    0.77  127676         describe [35]
-                0.00    0.15  163573/1380398     nr_render [25]
-                0.01    0.08  803645/950595      f_regionid [161]
-                0.05    0.04 1838265/24887945     locale_string [27]
-                0.07    0.00  169255/2742237     paragraph [26]
-                0.00    0.06  765959/2225796     get_borders [120]
-                0.00    0.06  638271/785221      trailinto [207]
-                0.06    0.00 3045620/34611296     strlcpy [45]
-                0.03    0.01   62581/108211      report_resources [210]
-                0.04    0.00  127676/1766225     nr_curses [48]
-                0.00    0.03    8525/8892        astralregions [329]
-                0.01    0.02  163573/967784      msg_message [132]
-                0.01    0.00 4194164/36653945     wrptr [178]
-                0.00    0.00  127676/1874928     terrain_name [226]
-                0.00    0.00  127676/669051      production [417]
-                0.00    0.00   93452/190469      border_name [641]
-                0.00    0.00  255350/51974272     a_find [65]
-                0.00    0.00  179832/2605004     rpeasants [435]
-                0.00    0.00   62581/987488      is_astral [479]
-                0.00    0.00  255352/10053919     rtrees [302]
-                0.00    0.00  222964/4666665     rmoney [452]
-                0.00    0.00  164218/2494242     newline [594]
-                0.00    0.00   96621/13259934     resourcename [233]
-                0.00    0.00   96621/56052475     get_resourcetype [194]
-                0.00    0.00    8515/12246335     ct_find [114]
-                0.00    0.00    8515/10190660     get_curse [143]
-                0.00    0.00    8515/4201030     curse_active [543]
-                0.00    0.00     291/369586      r_connect [474]
-                0.00    0.00  127676/1613387     rule_region_owners [1323]
-                0.00    0.00  225630/1160345     rhorses [1369]
-                0.00    0.00  163573/1009028     msg_release [1373]
-                0.00    0.00   93452/93452       see_border [1440]
-                0.00    0.00   93450/190467      b_transparent [1420]
-                0.00    0.00   52156/515192      is_mourning [1392]
-                0.00    0.00    8515/651711      oldcursename [1381]
-                0.00    0.00    5680/109377      free_regionlist [1436]
-                0.00    0.00       2/2           b_opaque [1772]
------------------------------------------------
-                0.00    0.01     676/79180       rp_battles [618]
-                0.03    0.77   78504/79180       report_plaintext [4]
-[36]     2.3    0.03    0.78   79180         rp_messages [36]
-                0.00    0.38  405014/1380398     nr_render [25]
-                0.02    0.20 3739100/3780355     nr_section [113]
-                0.18    0.01  405014/2742237     paragraph [26]
-                0.00    0.00   31368/24887945     locale_string [27]
-                0.00    0.00   31368/37931       centre [789]
-                0.00    0.00   62736/2494242     newline [594]
------------------------------------------------
-                0.00    0.00       6/32337529     get_or_create_locale [1275]
-                0.00    0.00     337/32337529     report_computer [9]
-                0.00    0.00     957/32337529     crt_register [1006]
-                0.00    0.00     957/32337529     mt_register [1007]
-                0.00    0.00    1909/32337529     nrt_register [883]
-                0.00    0.00    2081/32337529     cr_reportspell [756]
-                0.00    0.00    3496/32337529     locale_setstring [918]
-                0.00    0.00    5588/32337529     get_locale [884]
-                0.00    0.00  174677/32337529     cr_output_resource [378]
-                0.01    0.00  301257/32337529     crt_find [321]
-                0.02    0.00  779486/32337529     locale_getstring [266]
-                0.02    0.00 1010116/32337529     mt_find [227]
-                0.12    0.00 5168717/32337529     nrt_find [98]
-                0.58    0.00 24887945/32337529     locale_string [27]
-[37]     2.2    0.76    0.00 32337529         hashstring [37]
------------------------------------------------
-                                                 <spontaneous>
-[38]     2.1    0.00    0.74                 tolua_write_summary [38]
-                0.04    0.69       1/2           make_summary [21]
-                0.00    0.01       2/2           report_summary [614]
-                0.00    0.00       2/2           free_summary [1773]
------------------------------------------------
-                             4060217             use_pooled [39]
-                0.00    0.00       1/860263      breedtrees [1148]
-                0.00    0.00       1/860263      promotion_cmd [917]
-                0.00    0.00       1/860263      use_item [765]
-                0.00    0.00       3/860263      use_healingpotion [1119]
-                0.00    0.00       5/860263      give_horses [1108]
-                0.00    0.00      21/860263      build_road [950]
-                0.00    0.00      22/860263      give_money [484]
-                0.00    0.00      38/860263      expandstealing [807]
-                0.00    0.00      51/860263      potion_water_of_life [945]
-                0.00    0.00      56/860263      use_bloodpotion [935]
-                0.00    0.00     345/860263      end_potion [814]
-                0.00    0.00     470/860263      pay_spell [805]
-                0.00    0.00    1484/860263      build [691]
-                0.00    0.00    1670/860263      do_recruiting [351]
-                0.00    0.00    6386/860263      maintain [478]
-                0.00    0.00    7475/860263      study_cmd [105]
-                0.01    0.05   71328/860263      reserve_i [213]
-                0.02    0.06   93824/860263      give_item [126]
-                0.06    0.19  282676/860263      expandselling [93]
-                0.08    0.26  394406/860263      expandbuying [49]
-[39]     2.1    0.17    0.57  860263+4060217 use_pooled [39]
-                0.03    0.26 3149695/9953180     alliedunit [31]
-                0.02    0.14 4920480/8302761     get_resource [99]
-                0.00    0.05  862087/931076      change_resource [240]
-                0.03    0.01 4154050/4851739     get_reservation [281]
-                0.01    0.00 4607888/7417541     urace [436]
-                0.01    0.00 4920480/129167539     u_race [89]
-                0.00    0.00       1/93120       change_reservation [1441]
-                             4060217             use_pooled [39]
------------------------------------------------
-                                                 <spontaneous>
-[40]     2.1    0.00    0.73                 tolua_init_summary [40]
-                0.04    0.69       1/2           make_summary [21]
------------------------------------------------
-                0.00    0.00   15708/3398582     add_travelthru_addresses [673]
-                0.00    0.01   54735/3398582     write_travelthru [327]
-                0.00    0.01   57367/3398582     count_travelthru [518]
-                0.01    0.04  204298/3398582     cr_output_travelthru [298]
-                0.08    0.53 3066474/3398582     prepare_report [8]
-[41]     2.0    0.09    0.59 3398582         travelthru_map [41]
-                0.29    0.00 18856320/18856320     cb_add_seen [94]
-                0.00    0.10 1048274/1048274     cb_write_travelthru [169]
-                0.02    0.06  967902/967902      cb_cr_travelthru_ship [204]
-                0.02    0.04 1054200/1054200     count_cb [231]
-                0.03    0.00 3398582/51974272     a_find [65]
-                0.01    0.01  967902/967902      cb_cr_travelthru_unit [466]
-                0.00    0.01  755575/755575      cb_add_address [598]
------------------------------------------------
-                             3931390             parse_string <cycle 5> [86]
-                             5612941             parse <cycle 5> [333]
-[42]     1.9    0.24    0.44 9544331         parse_symbol <cycle 5> [42]
-                0.01    0.06  799427/799427      eval_unit [223]
-                0.00    0.05  515550/515550      eval_region [245]
-                0.00    0.05  883617/883617      eval_int [268]
-                0.04    0.00 4568249/4568249     find_variable [304]
-                0.00    0.04  470529/470529      eval_resource [328]
-                0.00    0.03  127674/127674      eval_trailto [369]
-                0.03    0.00 4568249/13102790     opstack_push [202]
-                0.00    0.02  843545/843545      eval_if [393]
-                0.01    0.01  655564/655564      eval_eq [398]
-                0.00    0.02  123513/123513      eval_order [472]
-                0.01    0.00   67213/67213       eval_building [494]
-                0.01    0.00  116804/116804      eval_isnull [517]
-                0.01    0.00     163/163         eval_lt [539]
-                0.01    0.00 4976082/4976082     find_function [549]
-                0.00    0.01  127788/127788      eval_direction [608]
-                0.00    0.01  108560/108560      eval_trail [634]
-                0.00    0.00   40099/40099       eval_skill [671]
-                0.00    0.00   46224/46224       eval_faction [685]
-                0.00    0.00   25857/25857       eval_int36 [729]
-                0.00    0.00   19545/19545       eval_ship [740]
-                0.00    0.00    1520/1520        eval_race [882]
-                0.00    0.00     834/834         eval_resources [907]
-                0.00    0.00    1196/1196        eval_localize [922]
-                0.00    0.00     604/604         eval_spell [961]
-                0.00    0.00     124/124         eval_unit_dative [1076]
-                0.00    0.00      78/78          eval_weight [1102]
-                0.00    0.00      54/54          eval_add [1182]
-                             7791002             parse <cycle 5> [333]
------------------------------------------------
-                0.00    0.65       1/1           tolua_read_orders [44]
-[43]     1.9    0.00    0.65       1         readorders [43]
-                0.02    0.59  221802/221802      unitorders [46]
-                0.00    0.02   61643/1158076     getbuf [71]
-                0.00    0.01  283446/2281756     gettoken [195]
-                0.00    0.00  279151/1787006     findparam [458]
-                0.00    0.00  283446/1311302     init_tokens_str [544]
-                0.00    0.00     287/287         factionorders [983]
-                0.00    0.00       2/64          log_info [1339]
------------------------------------------------
-                                                 <spontaneous>
-[44]     1.9    0.00    0.65                 tolua_read_orders [44]
-                0.00    0.65       1/1           readorders [43]
------------------------------------------------
-                0.00    0.00      12/34611296     register_spelldata [1250]
-                0.00    0.00      15/34611296     check_dupe [1244]
-                0.00    0.00      15/34611296     sp_summon_familiar [1025]
-                0.00    0.00      22/34611296     dragon_name [1095]
-                0.00    0.00      34/34611296     dracoid_name [1126]
-                0.00    0.00      53/34611296     lua_getresource [1191]
-                0.00    0.00      76/34611296     make_name [970]
-                0.00    0.00     137/34611296     parse_spells [1120]
-                0.00    0.00     527/34611296     make_movement_order [522]
-                0.00    0.00     569/34611296     relpath [1061]
-                0.00    0.00    1146/34611296     join_path [1016]
-                0.00    0.00    1584/34611296     produce_resource [994]
-                0.00    0.00    1667/34611296     add_recruits [371]
-                0.00    0.00    2008/34611296     default_name [851]
-                0.00    0.00    2478/34611296     write_spell_modifier [964]
-                0.00    0.00    2622/34611296     nr_spell_syntax [732]
-                0.00    0.00    2660/34611296     write_regionname [280]
-                0.00    0.00    3111/34611296     sidename [867]
-                0.00    0.00    3123/34611296     limit_resource [943]
-                0.00    0.00    4921/34611296     nrt_register [883]
-                0.00    0.00    4967/34611296     report_plaintext [4]
-                0.00    0.00    6243/34611296     nr_spell [507]
-                0.00    0.00   17417/34611296     teach_cmd [272]
-                0.00    0.00   18788/34611296     sideabkz [745]
-                0.00    0.00   32943/34611296     bufunit [17]
-                0.00    0.00   54735/34611296     write_travelthru [327]
-                0.00    0.00   62870/34611296     report_template [87]
-                0.00    0.00   97114/34611296     guards [229]
-                0.00    0.00  216694/34611296     racename [133]
-                0.00    0.00  260073/34611296     nr_building [141]
-                0.01    0.00  293954/34611296     show_allies [429]
-                0.01    0.00  425391/34611296     create_order [341]
-                0.01    0.00  529305/34611296     prices [85]
-                0.01    0.00  532232/34611296     nr_ship [111]
-                0.01    0.00  598234/34611296     report_status [318]
-                0.01    0.00  785221/34611296     trailinto [207]
-                0.02    0.00  950595/34611296     f_regionid [161]
-                0.03    0.00 1380398/34611296     nr_render [25]
-                0.06    0.00 3045620/34611296     describe [35]
-                0.07    0.00 3889315/34611296     get_command [108]
-                0.07    0.00 3931390/34611296     parse_string <cycle 5> [86]
-                0.32    0.00 17451017/34611296     strlcpy_w [67]
-[45]     1.8    0.63    0.00 34611296         strlcpy [45]
------------------------------------------------
-                0.02    0.59  221802/221802      readorders [43]
-[46]     1.8    0.02    0.59  221802         unitorders [46]
-                0.00    0.36 1096433/1158076     getbuf [71]
-                0.01    0.10  874634/1481407     parse_order [117]
-                0.00    0.05  221802/221899      findunitg [279]
-                0.02    0.01  984476/5387327     parse_token [125]
-                0.00    0.01  221802/228907      getid [483]
-                0.00    0.01  984476/1787006     findparam [458]
-                0.00    0.01  221802/71815034     get_race [12]
-                0.01    0.00  573389/55492327     getkeyword [54]
-                0.00    0.00  573389/2985733     is_repeated [552]
-                0.00    0.00   56948/1644867     free_orders [306]
-                0.00    0.00  221802/129167539     u_race [89]
-                0.00    0.00  395426/1936876     free_order [1356]
------------------------------------------------
-                0.04    0.57       1/1           process [7]
-[47]     1.8    0.04    0.57       1         movement [47]
-                0.00    0.44  103494/103784      move_cmd [66]
-                0.03    0.01       1/1           move_pirates [326]
-                0.03    0.00       1/1           move_hunters [342]
-                0.01    0.02       1/1           init_transportation [384]
-                0.02    0.00 1733187/55492327     getkeyword [54]
-                0.00    0.01  178254/178254      drifting_ships [490]
-                0.00    0.00  113702/115276      can_move [736]
-                0.00    0.00  103494/1027665     init_order [613]
-                0.00    0.00   17286/3358315     ship_owner [438]
-                0.00    0.00     163/15102       cmistake [718]
-                0.00    0.00     163/1291427     set_order [1365]
------------------------------------------------
-                0.04    0.00  113592/1766225     nr_building [141]
-                0.04    0.00  127676/1766225     describe [35]
-                0.06    0.00  180598/1766225     nr_ship [111]
-                0.43    0.03 1344359/1766225     nr_unit [11]
-[48]     1.7    0.57    0.04 1766225         nr_curses [48]
-                0.00    0.02 1766225/1766225     nr_curses_i [401]
-                0.00    0.01  113592/593636      building_owner [232]
-                0.00    0.00  180598/3358315     ship_owner [438]
------------------------------------------------
-                0.01    0.59    5494/5494        produce [29]
-[49]     1.7    0.01    0.59    5494         expandbuying [49]
-                0.08    0.26  394406/860263      use_pooled [39]
-                0.02    0.16  400300/541982      get_pooled [104]
-                0.02    0.03    5484/10852       expandorders [197]
-                0.01    0.00  788812/11241829     i_change [115]
-                0.00    0.00  493465/51974272     a_find [65]
-                0.00    0.00  394406/2186159     rsetmoney [553]
-                0.00    0.00   11358/967784      msg_message [132]
-                0.00    0.00  394406/4666665     rmoney [452]
-                0.00    0.00   11358/392959      add_message [434]
-                0.00    0.00    5679/451774      a_remove [366]
-                0.00    0.00    5679/779419      a_add [555]
-                0.00    0.00    5494/2605004     rpeasants [435]
-                0.00    0.00    5494/56052475     get_resourcetype [194]
-                0.00    0.00   11358/1009028     msg_release [1373]
-                0.00    0.00    5679/779868      a_new [1376]
------------------------------------------------
-                0.00    0.54       1/1           process [7]
-[50]     1.6    0.00    0.54       1         demographics [50]
-                0.00    0.37  178254/178254      live [73]
-                0.00    0.04       1/1           immigration [294]
-                0.00    0.04   32670/32670       growing_herbs [300]
-                0.01    0.03   32670/32670       horses [330]
-                0.00    0.02       1/6           remove_empty_units [146]
-                0.00    0.01   32670/32670       calculate_emigration [603]
-                0.00    0.01   32670/32670       growing_trees [624]
-                0.00    0.01   32670/490896      wage [174]
-                0.00    0.00   32670/32670       peasants [658]
-                0.00    0.00   65214/438629      maxworkingpeasants [473]
-                0.00    0.00   32878/1336242     rng_injectable_double [396]
-                0.00    0.00     120/120         plagues [781]
-                0.00    0.00   32670/2605004     rpeasants [435]
-                0.00    0.00       1/560926      bt_find [237]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00   50673/50673       update_resources [1457]
-                0.00    0.00   32670/32670       migrate [1478]
-                0.00    0.00     208/75797       buildingtype_exists [1443]
-                0.00    0.00       2/40692       get_gamedate [1466]
------------------------------------------------
-                                                 <spontaneous>
-[51]     1.5    0.00    0.53                 tolua_planmonsters [51]
-                0.00    0.53       1/1           plan_monsters [52]
-                0.00    0.00       1/3902878     get_monsters [293]
------------------------------------------------
-                0.00    0.53       1/1           tolua_planmonsters [51]
-[52]     1.5    0.00    0.53       1         plan_monsters [52]
-                0.01    0.15  105106/105106      monster_move [129]
-                0.02    0.07  313244/313244      check_overpopulated [184]
-                0.04    0.01  160196/160206      monster_attacks [248]
-                0.00    0.05  317735/317735      monster_learn [269]
-                0.00    0.05     298/298         plan_dragon [273]
-                0.04    0.00  432765/760673      addlist [217]
-                0.00    0.03  419518/472418      produceexp [322]
-                0.00    0.01  335497/71815034     get_race [12]
-                0.00    0.01  595808/752645      chance [495]
-                0.01    0.00  419518/1644867     free_orders [306]
-                0.01    0.00  419518/1121103     monster_is_waiting [407]
-                0.01    0.00  839036/51974272     a_find [65]
-                0.00    0.00  419518/3902878     get_monsters [293]
-                0.00    0.00   31277/447808      create_order [341]
-                0.00    0.00  595142/129167539     u_race [89]
-                0.00    0.00  417554/417554      random_move_chance [754]
-                0.00    0.00  419518/21345834     skill_enabled [365]
-                0.00    0.00   12762/6610983     is_guard [211]
-                0.00    0.00   12984/748527      unit_can_study [709]
-                0.00    0.00      44/12320804     effskill <cycle 1> [100]
-                0.00    0.00      44/2934859     skillname [122]
-                0.00    0.00      40/451774      a_remove [366]
-                0.00    0.00       1/717218      config_get_flt [714]
-                0.00    0.00  315567/1342832     handle_event [1363]
-                0.00    0.00       1/1           pathfinder_cleanup [1828]
------------------------------------------------
-                0.04    0.49 1953682/1953682     bufunit [17]
-[53]     1.5    0.04    0.49 1953682         spskill [53]
-                0.03    0.15 7046371/17451017     strlcpy_w [67]
-                0.05    0.09 1953681/12320804     eff_skill <cycle 1> [334]
-                0.01    0.12 1953681/2934859     skillname [122]
-                0.01    0.01  592664/24887945     locale_string [27]
-                0.01    0.01  237880/12320804     get_modifier <cycle 1> [55]
-                0.01    0.00 1958340/36653945     wrptr [178]
-                0.00    0.00    9493/2426021     get_mage [198]
-                0.00    0.00    1551/8034        u_geteffstealth [919]
-                0.00    0.00    1088/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00      24/55492327     is_moving_ship [1231]
-                0.00    0.00     148/55492327     transport [1011]
-                0.00    0.00   17417/55492327     teach_cmd [272]
-                0.00    0.00   30554/55492327     guard_on_cmd [656]
-                0.00    0.00   30634/55492327     guard_off_cmd [711]
-                0.00    0.00   38489/55492327     move_pirates [326]
-                0.00    0.00   85384/55492327     move_hunters [342]
-                0.00    0.00  103187/55492327     cycle_route [375]
-                0.00    0.00  151532/55492327     report_template [87]
-                0.00    0.00  162752/55492327     travel_i [92]
-                0.00    0.00  204065/55492327     do_siege [515]
-                0.01    0.00  573389/55492327     unitorders [46]
-                0.01    0.00  619614/55492327     produce [29]
-                0.01    0.00  692835/55492327     write_unit [97]
-                0.01    0.00  695201/55492327     cr_output_unit [19]
-                0.01    0.00 1045507/55492327     bufunit [17]
-                0.01    0.00 1128316/55492327     magic [157]
-                0.01    0.00 1129818/55492327     start_battle [297]
-                0.01    0.00 1130203/55492327     restack_units [353]
-                0.01    0.00 1131212/55492327     defaultorders [249]
-                0.01    0.00 1132975/55492327     update_long_order [270]
-                0.01    0.00 1133099/55492327     do_contact [250]
-                0.01    0.00 1135305/55492327     follow_unit [331]
-                0.01    0.00 1136686/55492327     new_units [282]
-                0.02    0.00 1693146/55492327     init_transportation [384]
-                0.02    0.00 1733187/55492327     movement [47]
-                0.03    0.00 2855598/55492327     economics [78]
-                0.04    0.00 4529361/55492327     do_enter [128]
-                0.29    0.00 31172689/55492327     process [7]
-[54]     1.5    0.52    0.00 55492327         getkeyword [54]
------------------------------------------------
-                             6907105             eff_skill <cycle 1> [334]
-                0.00    0.00   34169/12320804     effskill_study [504]
-                0.01    0.01  237880/12320804     spskill [53]
-[55]     1.4    0.04    0.46 7179154         get_modifier <cycle 1> [55]
-                0.05    0.26 7179079/7179079     att_modification [90]
-                0.00    0.14 7179079/7179079     rc_skillmod [140]
-                0.02    0.00 7179079/129167539     u_race [89]
-                0.00    0.00 1467202/18647447     getplane [596]
-                             7179079             skillmod <cycle 1> [214]
------------------------------------------------
-                                                 <spontaneous>
-[56]     1.4    0.47    0.00                 decode_pointer [56]
------------------------------------------------
-                0.00    0.01     723/61961       report_computer [9]
-                0.00    0.46   61238/61961       cr_output_region [10]
-[57]     1.3    0.00    0.46   61961         cr_output_messages [57]
-                0.01    0.45   20176/20176       render_messages [58]
------------------------------------------------
-                0.01    0.45   20176/20176       cr_output_messages [57]
-[58]     1.3    0.01    0.45   20176         render_messages [58]
-                0.00    0.28  301257/1380398     nr_render [25]
-                0.09    0.00  297222/297222      fwritestr [191]
-                0.01    0.07  301257/301257      cr_render [196]
-                0.00    0.00  297222/297222      messagehash [1405]
------------------------------------------------
-                0.00    0.46       1/1           tolua_eressea_eressea_read_game00 [61]
-[59]     1.3    0.00    0.46       1         eressea_read_game [59]
-                0.00    0.46       1/1           readgame [60]
------------------------------------------------
-                0.00    0.46       1/1           eressea_read_game [59]
-[60]     1.3    0.00    0.46       1         readgame [60]
-                0.00    0.46       1/1           read_game [62]
-                0.00    0.00       1/3           init_locales [947]
-                0.00    0.00       1/573         join_path [1016]
-                0.00    0.00       1/5           datapath [1289]
-                0.00    0.00       2/49235       log_debug [1245]
------------------------------------------------
-                                                 <spontaneous>
-[61]     1.3    0.00    0.46                 tolua_eressea_eressea_read_game00 [61]
-                0.00    0.46       1/1           eressea_read_game [59]
------------------------------------------------
-                0.00    0.46       1/1           readgame [60]
-[62]     1.3    0.00    0.46       1         read_game [62]
-                0.01    0.36  595125/595125      read_unit [74]
-                0.00    0.08  178254/178254      readregion [209]
-                0.00    0.01    9729/10232       update_lighthouse [605]
-                0.00    0.00   46176/560926      bt_find [237]
-                0.00    0.00   65258/840577      read_attribs [388]
-                0.00    0.00       1/1           read_borders [706]
-                0.00    0.00  595125/3383689     update_interval [551]
-                0.00    0.00       1/1           resolve [757]
-                0.00    0.00     233/233         readfaction [767]
-                0.00    0.00       1/1           read_planes [1164]
-                0.00    0.00      12/180818      buildingname [621]
-                0.00    0.00       1/2           game_id [1324]
-                0.00    0.00     182/49235       log_debug [1245]
-                0.00    0.00      12/13          log_error [1340]
-                0.00    0.00   46175/46196       bhash [1464]
-                0.00    0.00   19082/19085       shash [1502]
-                0.00    0.00   19082/19082       st_find [1503]
-                0.00    0.00     233/233         fhash [1617]
-                0.00    0.00       1/1           init_genrand [1809]
-                0.00    0.00       1/1           read_alliances [1830]
------------------------------------------------
-                0.00    0.45       1/1           process [7]
-[63]     1.3    0.00    0.45       1         do_battles [63]
-                0.00    0.45  178254/178254      do_battle [64]
-                0.00    0.00       1/1           init_rules [1272]
------------------------------------------------
-                0.00    0.45  178254/178254      do_battles [63]
-[64]     1.3    0.00    0.45  178254         do_battle [64]
-                0.00    0.35     574/574         battle_attacks [79]
-                0.01    0.03  178254/178254      start_battle [297]
-                0.00    0.03     574/574         battle_flee [352]
-                0.01    0.00     780/780         battle_report [503]
-                0.00    0.01     206/206         print_stats [525]
-                0.00    0.00     206/206         join_allies [693]
-                0.00    0.00     206/206         aftermath [701]
-                0.00    0.00     206/206         print_header [838]
-                0.00    0.00     206/412         do_combatmagic [825]
-                0.00    0.00     206/361         regionname [987]
-                0.00    0.00     206/207         rule_force_leave [1175]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00     206/206         make_heroes [1298]
-                0.00    0.00     206/49235       log_debug [1245]
-                0.00    0.00     574/574         battle_update [1595]
-                0.00    0.00     206/206         free_battle [1630]
------------------------------------------------
-                0.00    0.00       1/51974272     reshow_other [823]
-                0.00    0.00       1/51974272     create_mage [1315]
-                0.00    0.00       1/51974272     a_upgradekeys [1314]
-                0.00    0.00       2/51974272     u_seteffstealth [1199]
-                0.00    0.00       3/51974272     create_newfamiliar [1288]
-                0.00    0.00       7/51974272     parse_resources [1086]
-                0.00    0.00       9/51974272     melt_iceberg [1082]
-                0.00    0.00      11/51974272     add_trigger [1260]
-                0.00    0.00      12/51974272     volcano_destruction [1022]
-                0.00    0.00      15/51974272     mail_cmd [844]
-                0.00    0.00      26/51974272     set_new_dragon_target [486]
-                0.00    0.00      27/51974272     move_iceberg [1094]
-                0.00    0.00      48/51974272     cansee [22]
-                0.00    0.00      58/51974272     tolua_dict_get [1218]
-                0.00    0.00      62/51974272     potion_luck [1176]
-                0.00    0.00      85/51974272     volcano_update [981]
-                0.00    0.00      89/51974272     add_chaoscount [1198]
-                0.00    0.00     104/51974272     set_factionstealth [183]
-                0.00    0.00     115/51974272     usetcontact [1147]
-                0.00    0.00     232/51974272     renumber_factions [1156]
-                0.00    0.00     298/51974272     plan_dragon [273]
-                0.00    0.00     324/51974272     caught_target [1003]
-                0.00    0.00     328/51974272     display_potion [1090]
-                0.00    0.00     348/51974272     ugetpotionuse [1133]
-                0.00    0.00     380/51974272     set_group [1048]
-                0.00    0.00     404/51974272     usetpotionuse [1078]
-                0.00    0.00     460/51974272     report_computer [9]
-                0.00    0.00     460/51974272     report_plaintext [4]
-                0.00    0.00     631/51974272     follow_unit [331]
-                0.00    0.00     664/51974272     ally_cmd [877]
-                0.00    0.00     760/51974272     resolve_familiar [846]
-                0.00    0.00     760/51974272     resolve_mage [856]
-                0.00    0.00     793/51974272     is_familiar [1092]
-                0.00    0.00    1297/51974272     hunted_dir [1055]
-                0.00    0.00    1422/51974272     attrib_allocation [914]
-                0.00    0.00    1429/51974272     start_battle [297]
-                0.00    0.00    1573/51974272     usetprivate [1041]
-                0.00    0.00    1593/51974272     make_fighter [424]
-                0.00    0.00    1610/51974272     transfer_curse [1039]
-                0.00    0.00    1725/51974272     max_magicians [915]
-                0.00    0.00    1774/51974272     join_battle [425]
-                0.00    0.00    2280/51974272     set_familiar [992]
-                0.00    0.00    2421/51974272     set_racename [1015]
-                0.00    0.00    2598/51974272     create_unit [296]
-                0.00    0.00    2723/51974272     get_allocator [1001]
-                0.00    0.00    2822/51974272     get_followers [254]
-                0.00    0.00    2977/51974272     change_effect [982]
-                0.00    0.00    3035/51974272     scale_number [969]
-                0.00    0.00    3078/51974272     allocate_resource [752]
-                0.00    0.00    3730/51974272     transfermen [899]
-                0.00    0.00    4475/51974272     matmod [975]
-                0.00    0.00    5049/51974272     find_piracy_target [967]
-                0.00    0.00    5903/51974272     buy [707]
-                0.00    0.00    5941/51974272     deathcounts [843]
-                0.00    0.00    6245/51974272     produce [29]
-                0.00    0.00    7815/51974272     already_seen [929]
-                0.00    0.00    7957/51974272     magic_resistance [727]
-                0.00    0.00    8034/51974272     u_geteffstealth [919]
-                0.00    0.00    8144/51974272     ucontact [927]
-                0.00    0.00    8246/51974272     horses [330]
-                0.00    0.00   12520/51974272     sell [498]
-                0.00    0.00   16132/51974272     teach_unit [426]
-                0.00    0.00   23509/51974272     setguard [815]
-                0.00    0.00   30250/51974272     peasants [658]
-                0.00    0.00   31351/51974272     update_guards [415]
-                0.00    0.00   32670/51974272     growing_trees [624]
-                0.00    0.00   34221/51974272     eff_weight [683]
-                0.00    0.00   35539/51974272     check_leuchtturm [786]
-                0.00    0.00   39729/51974272     leave_trail [704]
-                0.00    0.00   52551/51974272     update_lighthouse [605]
-                0.00    0.00   54351/51974272     get_familiar [796]
-                0.00    0.00   66058/51974272     shipspeed [669]
-                0.00    0.00   71414/51974272     get_mage [198]
-                0.00    0.00  116002/51974272     get_movement [750]
-                0.00    0.00  116914/51974272     fleechance [408]
-                0.00    0.00  169733/51974272     travelthru_add [609]
-                0.00    0.00  172276/51974272     largestbuilding [651]
-                0.00    0.00  174968/51974272     get_familiar_mage [722]
-                0.00    0.00  178254/51974272     age_traveldir [720]
-                0.00    0.00  178254/51974272     randomevents [91]
-                0.00    0.00  178257/51974272     key_get [719]
-                0.00    0.00  179235/51974272     get_chaoscount [717]
-                0.00    0.00  255350/51974272     describe [35]
-                0.00    0.00  285923/51974272     ualias [692]
-                0.00    0.00  307833/51974272     default_wage [173]
-                0.00    0.00  325282/51974272     eaten_by_monster [468]
-                0.00    0.00  325825/51974272     scared_by_monster [380]
-                0.00    0.00  329691/51974272     getguard [652]
-                0.00    0.00  355423/51974272     deathcount [674]
-                0.00    0.00  370844/51974272     expandselling [93]
-                0.00    0.00  417739/51974272     study_cmd [105]
-                0.00    0.00  493465/51974272     expandbuying [49]
-                0.01    0.00  595441/51974272     destroyfaction [392]
-                0.01    0.00  595476/51974272     dissolve_units [241]
-                0.01    0.00  839036/51974272     plan_monsters [52]
-                0.01    0.00  847828/51974272     raceprefix [222]
-                0.01    0.00  973220/51974272     cr_output_unit [19]
-                0.01    0.00 1115958/51974272     visible_faction [68]
-                0.01    0.00 1344359/51974272     nr_unit [11]
-                0.01    0.00 1401002/51974272     bufunit [17]
-                0.01    0.00 1474687/51974272     leftship [500]
-                0.01    0.00 1523708/51974272     uprivate [497]
-                0.01    0.00 1646640/51974272     terrain_name [226]
-                0.02    0.00 2275967/51974272     get_racename [368]
-                0.02    0.00 2277350/51974272     get_prefix [263]
-                0.02    0.00 2858912/51974272     get_effect [225]
-                0.03    0.00 3398582/51974272     travelthru_map [41]
-                0.05    0.00 5640296/51974272     alliedunit [31]
-                0.06    0.00 7298034/51974272     skillmod <cycle 1> [214]
-                0.09    0.00 10322799/51974272     att_modification [90]
-[65]     1.3    0.45    0.00 51974272         a_find [65]
------------------------------------------------
-                0.00    0.00      99/103784      piracy_cmd [660]
-                0.00    0.00     191/103784      follow_ship [749]
-                0.00    0.44  103494/103784      movement [47]
-[66]     1.3    0.00    0.45  103784         move_cmd [66]
-                0.00    0.35   96529/96529       travel [81]
-                0.01    0.09    7255/7255        sail [181]
-                0.00    0.00    7269/3358315     ship_owner [438]
-                0.00    0.00  103784/1291427     set_order [1365]
-                0.00    0.00  103369/109377      free_regionlist [1436]
------------------------------------------------
-                0.00    0.00     211/17451017     display_race [963]
-                0.00    0.00    1612/17451017     follow_ship [749]
-                0.00    0.00    1799/17451017     print_header [838]
-                0.00    0.00    4287/17451017     eval_trail [634]
-                0.00    0.00   25201/17451017     battle_report [503]
-                0.00    0.00   63020/17451017     cycle_route [375]
-                0.00    0.02  989920/17451017     buforder [201]
-                0.03    0.15 7046371/17451017     spskill [53]
-                0.04    0.20 9318596/17451017     bufunit [17]
-[67]     1.3    0.07    0.37 17451017         strlcpy_w [67]
-                0.32    0.00 17451017/34611296     strlcpy [45]
-                0.05    0.00 17451017/36653945     wrptr [178]
------------------------------------------------
-                0.00    0.00       8/4374788     spy_message [1038]
-                0.00    0.00     315/4374788     piracy_cmd [660]
-                0.00    0.01   67332/4374788     guards [229]
-                0.00    0.01   74068/4374788     cb_add_address [598]
-                0.00    0.02  249624/4374788     cr_output_region [10]
-                0.00    0.08  854692/4374788     get_addresses [20]
-                0.00    0.08  856373/4374788     set_factionstealth [183]
-                0.00    0.09  923633/4374788     cr_output_unit [19]
-                0.00    0.13 1348743/4374788     bufunit [17]
-[68]     1.2    0.01    0.42 4374788         visible_faction [68]
-                0.05    0.36 4374788/9953180     alliedunit [31]
-                0.01    0.00 1115958/51974272     a_find [65]
-                0.00    0.00  151469/1380007     get_otherfaction [1362]
------------------------------------------------
-                0.12    0.01  386740/1310373     cr_output_curses_compat [144]
-                0.28    0.02  923633/1310373     cr_output_unit [19]
-[69]     1.2    0.40    0.03 1310373         cr_output_curses [69]
-                0.00    0.01   12729/1380398     nr_render [25]
-                0.00    0.01  104830/593636      building_owner [232]
-                0.00    0.00   12828/26045       msg_curse [664]
-                0.00    0.00  179761/3358315     ship_owner [438]
-                0.00    0.00   28167/10103290     stream_printf [158]
-                0.00    0.00    2073/4434556     translate [75]
-                0.00    0.00    2073/24887945     locale_string [27]
-                0.00    0.00    2073/13259934     resourcename [233]
-                0.00    0.00   12828/26045       curse_cansee [1489]
-                0.00    0.00   12729/1009028     msg_release [1373]
------------------------------------------------
-                0.02    0.40   33139/33139       report_plaintext [4]
-[70]     1.2    0.02    0.40   33139         statistics [70]
-                0.00    0.18  192618/1380398     nr_render [25]
-                0.16    0.01  361771/2742237     paragraph [26]
-                0.01    0.02  192618/967784      msg_message [132]
-                0.00    0.00  169153/24887945     locale_string [27]
-                0.00    0.01   32354/490896      wage [174]
-                0.01    0.00  347340/11241829     i_change [115]
-                0.00    0.00   31155/560926      bt_find [237]
-                0.00    0.00   31676/79772       entertainmoney [643]
-                0.00    0.00   33139/669051      production [417]
-                0.00    0.00  169153/13259934     resourcename [233]
-                0.00    0.00   63509/163027      markets_module [748]
-                0.00    0.00  144924/129167539     u_race [89]
-                0.00    0.00   66278/2494242     newline [594]
-                0.00    0.00   33139/2605004     rpeasants [435]
-                0.00    0.00   31725/4666665     rmoney [452]
-                0.00    0.00   33139/21345834     skill_enabled [365]
-                0.00    0.00    1098/71815034     get_race [12]
-                0.00    0.00  192618/1009028     msg_release [1373]
-                0.00    0.00  169153/257723      i_remove [1407]
-                0.00    0.00  169153/374425      i_free [1400]
-                0.00    0.00   31155/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.00    0.02   61643/1158076     readorders [43]
-                0.00    0.36 1096433/1158076     unitorders [46]
-[71]     1.1    0.00    0.38 1158076         getbuf [71]
-                0.24    0.14 1158076/1158076     getbuf_utf8 [72]
------------------------------------------------
-                0.24    0.14 1158076/1158076     getbuf [71]
-[72]     1.1    0.24    0.14 1158076         getbuf_utf8 [72]
-                0.08    0.00 38195175/46391457     unicode_utf8_to_ucs4 [177]
-                0.04    0.01 6241702/6241702     eatwhite [243]
------------------------------------------------
-                0.00    0.37  178254/178254      demographics [50]
-[73]     1.1    0.00    0.37  178254         live [73]
-                0.15    0.17  178254/178254      get_food [88]
-                0.00    0.03  595472/595472      age_unit [336]
-                0.01    0.01  595472/2858912     get_effect [225]
------------------------------------------------
-                0.01    0.36  595125/595125      read_game [62]
-[74]     1.1    0.01    0.36  595125         read_unit [74]
-                0.00    0.12  595125/888603      findunit [123]
-                0.01    0.07  606357/1481407     parse_order [117]
-                0.02    0.02  595125/628037      read_items [320]
-                0.03    0.00 1951270/1956810     add_skill [355]
-                0.00    0.02  379049/778818      describe_race [267]
-                0.00    0.02  597254/68430117     rc_find [15]
-                0.00    0.02  595125/840577      read_attribs [388]
-                0.01    0.00  595125/1644867     free_orders [306]
-                0.00    0.01  595125/4625636     findfaction [259]
-                0.00    0.00  595125/598069      uhash [667]
-                0.00    0.00  595125/129167539     u_race [89]
-                0.00    0.00  606357/2155959     is_persistent [687]
-                0.00    0.00  595125/598129      u_setfaction [1111]
-                0.00    0.00    2129/21345834     skill_enabled [365]
-                0.00    0.00  153878/154110      rule_stealth_anon [1325]
-                0.00    0.00  595125/603524      set_number [1387]
-                0.00    0.00  595125/600145      u_setrace [1389]
-                0.00    0.00  595125/599650      setstatus [1390]
-                0.00    0.00  595125/1291427     set_order [1365]
-                0.00    0.00   47396/48455       findbuilding [1462]
-                0.00    0.00   47396/48565       u_set_building [1460]
-                0.00    0.00   27412/28818       findship [1483]
-                0.00    0.00   27412/27640       u_set_ship [1485]
------------------------------------------------
-                0.00    0.00     352/4434556     cr_resources [960]
-                0.00    0.00     356/4434556     cr_race [949]
-                0.00    0.00     446/4434556     print_items [938]
-                0.00    0.00    1896/4434556     report_computer [9]
-                0.00    0.00    2073/4434556     cr_output_curses [69]
-                0.00    0.00    5284/4434556     cr_reportspell [756]
-                0.00    0.00   20072/4434556     cr_skill [672]
-                0.00    0.00   33909/4434556     cr_output_spells [639]
-                0.00    0.01  104830/4434556     cr_output_building [239]
-                0.00    0.01  110167/4434556     cr_resource [488]
-                0.01    0.01  174677/4434556     cr_output_resource [378]
-                0.01    0.01  179761/4434556     cr_output_ship [152]
-                0.01    0.02  427650/4434556     cr_output_region [10]
-                0.11    0.17 3373083/4434556     cr_output_unit [19]
-[75]     1.0    0.14    0.22 4434556         translate [75]
-                0.01    0.21 4434556/4488684     crtag [110]
------------------------------------------------
-                0.00    0.36       1/1           tolua_eressea_eressea_write_game00 [77]
-[76]     1.0    0.00    0.36       1         eressea_write_game [76]
-                0.00    0.35       1/1           writegame [82]
-                0.01    0.00       1/1           remove_empty_factions [576]
------------------------------------------------
-                                                 <spontaneous>
-[77]     1.0    0.00    0.36                 tolua_eressea_eressea_write_game00 [77]
-                0.00    0.36       1/1           eressea_write_game [76]
------------------------------------------------
-                0.02    0.34  178254/178254      process [7]
-[78]     1.0    0.02    0.34  178254         economics [78]
-                0.00    0.26  131722/131722      give_cmd [102]
-                0.00    0.03    1594/1594        expandrecruit [349]
-                0.03    0.00 2855598/55492327     getkeyword [54]
-                0.02    0.00  178254/1375380     remove_empty_units_in_region [134]
-                0.00    0.01    1835/1835        recruit [650]
-                0.00    0.00      12/12          forget_cmd [1093]
-                0.00    0.00      23/23          destroy_cmd [1113]
-                0.00    0.00       1/1           recruit_init [1334]
------------------------------------------------
-                0.00    0.35     574/574         do_battle [64]
-[79]     1.0    0.00    0.35     574         battle_attacks [79]
-                0.01    0.34    2838/2838        do_attack [80]
-                0.00    0.00     378/378         get_tactics [1178]
------------------------------------------------
-                0.01    0.34    2838/2838        battle_attacks [79]
-[80]     1.0    0.01    0.34    2838         do_attack [80]
-                0.00    0.34  617313/617313      attack [84]
-                0.00    0.00 1501863/129167539     u_race [89]
-                0.00    0.00  251867/876979      count_enemies [611]
-                0.00    0.00      18/1486        message_all [834]
-                0.00    0.00      18/967784      msg_message [132]
-                0.00    0.00  251867/251867      attacks_per_round [1409]
-                0.00    0.00    4005/754589      preferred_weapon [1377]
-                0.00    0.00      18/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.35   96529/96529       move_cmd [66]
-[81]     1.0    0.00    0.35   96529         travel [81]
-                0.00    0.31   96555/96555       travel_i [92]
-                0.00    0.04   96527/96527       make_route [289]
-                0.00    0.00   94655/1474687     leftship [500]
-                0.00    0.00      66/15361       is_guarded [377]
-                0.00    0.00     133/133         reroute [1020]
-                0.00    0.00     133/324         caught_target [1003]
-                0.00    0.00     133/447808      create_order [341]
-                0.00    0.00     133/24887945     locale_string [27]
-                0.00    0.00   94660/95593       can_leave [1112]
-                0.00    0.00       2/41248       msg_feedback [647]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00       5/129167539     u_race [89]
-                0.00    0.00     133/1936876     free_order [1356]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.35       1/1           eressea_write_game [76]
-[82]     1.0    0.00    0.35       1         writegame [82]
-                0.01    0.34       1/1           write_game [83]
-                0.00    0.00       1/2           create_directories [1294]
-                0.00    0.00       1/573         join_path [1016]
-                0.00    0.00       1/5           datapath [1289]
-                0.00    0.00       1/1           version_no [1894]
-                0.00    0.00       1/231         eressea_version [1624]
------------------------------------------------
-                0.01    0.34       1/1           writegame [82]
-[83]     1.0    0.01    0.34       1         write_game [83]
-                0.12    0.15  596221/596221      write_unit [97]
-                0.04    0.00  534764/1248014     listlen [190]
-                0.00    0.01  178254/178254      writeregion [519]
-                0.00    0.01       1/1           clear_npc_orders [531]
-                0.00    0.00   65263/839970      write_attribs [301]
-                0.00    0.00     232/232         writefaction [762]
-                0.00    0.00       1/1           write_planes [1207]
-                0.00    0.00       1/2           game_id [1324]
-                0.00    0.00     176/49235       log_debug [1245]
-                0.00    0.00   46184/642406      write_building_reference [1383]
-                0.00    0.00   19078/615299      write_ship_reference [1386]
-                0.00    0.00       1/1           write_alliances [1896]
-                0.00    0.00       1/1           write_borders [1897]
------------------------------------------------
-                0.00    0.34  617313/617313      do_attack [80]
-[84]     1.0    0.00    0.34  617313         attack [84]
-                0.00    0.16  363071/363071      hits [131]
-                0.01    0.10  363135/363135      select_opponent [160]
-                0.00    0.05   72692/80630       terminate [242]
-                0.00    0.01   42157/146997      dice_rand [409]
-                0.00    0.01      53/53          do_extra_spell [648]
-                0.00    0.00  252753/876979      count_enemies [611]
-                0.00    0.00      38/38          do_combatspell [702]
-                0.00    0.00   47310/7641081     genrand_int31 [171]
-                0.00    0.00     112/112         attack_firesword [785]
-                0.00    0.00    5596/5596        drain_exp [850]
-                0.00    0.00   23194/129167539     u_race [89]
-                0.00    0.00  256354/619425      getreload [1385]
-                0.00    0.00  234242/754589      preferred_weapon [1377]
-                0.00    0.00   44924/1726748     is_riding [1358]
-                0.00    0.00    3639/3639        setreload [1542]
-                0.00    0.00       7/160         damage_ship [1641]
-                0.00    0.00       1/1           dazzle [1800]
------------------------------------------------
-                0.03    0.31   35287/35287       report_plaintext [4]
-[85]     1.0    0.03    0.31   35287         prices [85]
-                0.00    0.23  247009/1380398     nr_render [25]
-                0.01    0.03  247009/967784      msg_message [132]
-                0.02    0.00   35287/2742237     paragraph [26]
-                0.01    0.01  247009/24887945     locale_string [27]
-                0.01    0.00  529305/34611296     strlcpy [45]
-                0.00    0.00  776314/36653945     wrptr [178]
-                0.00    0.00  247009/1009028     msg_release [1373]
------------------------------------------------
-                             2724978             parse <cycle 5> [333]
-                0.00    0.00     605/1380398     translate [28]
-[86]     1.0    0.21    0.12 2725583         parse_string <cycle 5> [86]
-                0.07    0.00 3931390/34611296     strlcpy [45]
-                0.03    0.00 3931390/13102790     opstack_pop [176]
-                0.02    0.00 2725583/13102790     opstack_push [202]
-                0.01    0.00 2725583/13399069     balloc [363]
-                0.00    0.00 6656973/6656973     bfree [1349]
-                             3931390             parse_symbol <cycle 5> [42]
------------------------------------------------
-                0.27    0.06      99/99          write_reports [3]
-[87]     1.0    0.27    0.06      99         report_template [87]
-                0.03    0.00  195108/195108      rps_nowrap [359]
-                0.00    0.01  128725/1470505     write_order [121]
-                0.00    0.00   55807/24887945     locale_string [27]
-                0.00    0.00   10477/490896      wage [174]
-                0.00    0.00   52225/5100840     itoa36 [116]
-                0.00    0.00  151532/55492327     getkeyword [54]
-                0.00    0.00   12521/593636      building_owner [232]
-                0.00    0.00   62870/34611296     strlcpy [45]
-                0.00    0.00  216458/2494242     newline [594]
-                0.00    0.00   45033/7120688     get_money [187]
-                0.00    0.00   10477/1552289     rname [200]
-                0.00    0.00   45033/4198692     lifestyle [286]
-                0.00    0.00   45033/3351853     unit_getname [332]
-                0.00    0.00   10477/1826688     adjust_coordinates [234]
-                0.00    0.00  107804/36653945     wrptr [178]
-                0.00    0.00  151532/2155959     is_persistent [687]
-                0.00    0.00   45071/129167539     u_race [89]
-                0.00    0.00    4309/10190660     get_curse [143]
-                0.00    0.00    1258/884940      itoa10 [338]
-                0.00    0.00    7093/3358315     ship_owner [438]
-                0.00    0.00   12208/2985733     is_repeated [552]
-                0.00    0.00    4309/4201030     curse_active [543]
-                0.00    0.00   10477/18647447     getplane [596]
-                0.00    0.00      99/12246335     ct_find [114]
-                0.00    0.00      99/56052475     get_resourcetype [194]
-                0.00    0.00   10477/3587241     pnormalize [1350]
-                0.00    0.00    4066/4066        buildingmaintenance [1535]
------------------------------------------------
-                0.15    0.17  178254/178254      live [73]
-[88]     0.9    0.15    0.17  178254         get_food [88]
-                0.05    0.01 4046908/7120688     get_money [187]
-                0.01    0.03 4046861/4198692     lifestyle [286]
-                0.00    0.03 1044674/71815034     get_race [12]
-                0.00    0.01  111338/9953180     alliedunit [31]
-                0.01    0.00  726086/2599554     change_money [337]
-                0.01    0.00  178254/264251      rsetpeasants [545]
-                0.00    0.00 1771752/1771752     help_money [663]
-                0.00    0.00  106798/106798      help_feed [678]
-                0.00    0.00 1044674/129167539     u_race [89]
-                0.00    0.00  178254/2605004     rpeasants [435]
-                0.00    0.00  178257/4984610     config_get_int [348]
-                0.00    0.00   43034/2858912     get_effect [225]
-                0.00    0.00      88/88          hunger [808]
-                0.00    0.00  178254/18647447     getplane [596]
-                0.00    0.00    1461/2977        change_effect [982]
-                0.00    0.00    2148/2032164     rt_find [597]
------------------------------------------------
-                0.00    0.00       1/129167539     sp_summonshadowlords [1034]
-                0.00    0.00       1/129167539     sp_seduce [1336]
-                0.00    0.00       1/129167539     promotion_cmd [917]
-                0.00    0.00       1/129167539     oldfamiliars [1240]
-                0.00    0.00       2/129167539     make_familiar [1219]
-                0.00    0.00       2/129167539     do_fumble [1062]
-                0.00    0.00       2/129167539     create_ship [1014]
-                0.00    0.00       3/129167539     trigger_changerace [1297]
-                0.00    0.00       4/129167539     cast_cmd [760]
-                0.00    0.00       5/129167539     travel [81]
-                0.00    0.00       5/129167539     leave_cmd [721]
-                0.00    0.00       6/129167539     skill_summoned [1032]
-                0.00    0.00       8/129167539     mod_elves_only [1239]
-                0.00    0.00       9/129167539     chaos [848]
-                0.00    0.00      15/129167539     steal_cmd [766]
-                0.00    0.00      18/129167539     destroyfaction [392]
-                0.00    0.00      20/129167539     spawn_dragons [411]
-                0.00    0.00      24/129167539     make_heroes [1298]
-                0.00    0.00      28/129167539     get_friends [895]
-                0.00    0.00      31/129167539     random_unit [1174]
-                0.00    0.00      36/129167539     damage_unit [1044]
-                0.00    0.00      43/129167539     get_money_for_dragon [1087]
-                0.00    0.00      44/129167539     build_road [950]
-                0.00    0.00      45/129167539     dissolve_units [241]
-                0.00    0.00      48/129167539     reshow_other [823]
-                0.00    0.00      50/129167539     get_combatspell [874]
-                0.00    0.00      58/129167539     use_bloodpotion [935]
-                0.00    0.00      60/129167539     nb_armor [1273]
-                0.00    0.00      71/129167539     disband_men [999]
-                0.00    0.00      79/129167539     can_guard [908]
-                0.00    0.00      88/129167539     hunger [808]
-                0.00    0.00      92/129167539     spawn_undead [629]
-                0.00    0.00      97/129167539     age_stonecircle [1021]
-                0.00    0.00     111/129167539     check_steal [1234]
-                0.00    0.00     112/129167539     give_unit [952]
-                0.00    0.00     138/129167539     LongHunger [536]
-                0.00    0.00     142/129167539     transfermen [899]
-                0.00    0.00     168/129167539     loot_cmd [873]
-                0.00    0.00     188/129167539     is_freezing [1088]
-                0.00    0.00     222/129167539     enter_ship [733]
-                0.00    0.00     242/129167539     canfly [1031]
-                0.00    0.00     257/129167539     is_guardian_u [626]
-                0.00    0.00     266/129167539     income [885]
-                0.00    0.00     409/129167539     enter_building [695]
-                0.00    0.00     460/129167539     plan_dragon [273]
-                0.00    0.00     508/129167539     regeneration [942]
-                0.00    0.00     578/129167539     gift_items [891]
-                0.00    0.00     659/129167539     can_give_men [940]
-                0.00    0.00     666/129167539     generic_name [962]
-                0.00    0.00     681/129167539     absorbed_by_monster [804]
-                0.00    0.00     783/129167539     give_men [857]
-                0.00    0.00     802/129167539     heal_fighters [1158]
-                0.00    0.00     990/129167539     kill_troop [532]
-                0.00    0.00    1289/129167539     allocate_resource [752]
-                0.00    0.00    1518/129167539     start_battle [297]
-                0.00    0.00    1670/129167539     do_recruiting [351]
-                0.00    0.00    1722/129167539     aftermath [701]
-                0.00    0.00    2097/129167539     create_unit [296]
-                0.00    0.00    3241/129167539     is_guardian_r [186]
-                0.00    0.00    3340/129167539     select_recruitment [1079]
-                0.00    0.00    3551/129167539     recruit [650]
-                0.00    0.00    3836/129167539     tax_cmd [697]
-                0.00    0.00    4069/129167539     is_migrant [1047]
-                0.00    0.00    4632/129167539     add_recruits [371]
-                0.00    0.00    4777/129167539     name_unit [803]
-                0.00    0.00    5049/129167539     validate_pirate [1051]
-                0.00    0.00    5358/129167539     max_spellpoints [755]
-                0.00    0.00    5384/129167539     teach_cmd [272]
-                0.00    0.00    5915/129167539     buy [707]
-                0.00    0.00    7054/129167539     make_fighter [424]
-                0.00    0.00    7279/129167539     remove_empty_units_in_region [134]
-                0.00    0.00    7560/129167539     drown [394]
-                0.00    0.00    7938/129167539     calculate_armor [645]
-                0.00    0.00    7957/129167539     magic_resistance [727]
-                0.00    0.00    8132/129167539     battle_flee [352]
-                0.00    0.00   10979/129167539     expandwork [277]
-                0.00    0.00   11880/129167539     cansee_unit [684]
-                0.00    0.00   12787/129167539     canwalk [633]
-                0.00    0.00   15347/129167539     can_start_guarding [679]
-                0.00    0.00   15763/129167539     sell [498]
-                0.00    0.00   16132/129167539     magic_lowskill [897]
-                0.00    0.00   20370/129167539     get_reservation [281]
-                0.00    0.00   21443/129167539     ridingcapacity [694]
-                0.00    0.00   22150/129167539     do_work [612]
-                0.00    0.00   23194/129167539     attack [84]
-                0.00    0.00   25088/129167539     rmfighter [890]
-                0.00    0.00   27379/129167539     bewegung_blockiert_von [631]
-                0.00    0.00   27694/129167539     dragon_affinity_value [516]
-                0.00    0.00   45071/129167539     report_template [87]
-                0.00    0.00   45992/129167539     golem_factor [265]
-                0.00    0.00   47987/129167539     guard_on_cmd [656]
-                0.00    0.00   51382/129167539     immigration [294]
-                0.00    0.00   52873/129167539     produceexp_ex [323]
-                0.00    0.00   80630/129167539     natural_armor [788]
-                0.00    0.00   92804/129167539     canswim [682]
-                0.00    0.00  101492/129167539     report_item [106]
-                0.00    0.00  115276/129167539     can_move [736]
-                0.00    0.00  116914/129167539     fleechance [408]
-                0.00    0.00  117616/129167539     rc_specialdamage [830]
-                0.00    0.00  120592/129167539     CavalryBonus [491]
-                0.00    0.00  132028/129167539     shipspeed [669]
-                0.00    0.00  144924/129167539     statistics [70]
-                0.00    0.00  168094/129167539     monster_move [129]
-                0.00    0.00  176065/129167539     randomevents [91]
-                0.00    0.00  192570/129167539     canride [465]
-                0.00    0.00  193274/129167539     personcapacity [795]
-                0.00    0.00  193321/129167539     walkingcapacity [403]
-                0.00    0.00  221802/129167539     unitorders [46]
-                0.00    0.00  278421/129167539     movement_speed [155]
-                0.00    0.00  279395/129167539     weight [459]
-                0.00    0.00  307120/129167539     give_cmd [102]
-                0.00    0.00  325282/129167539     eaten_by_monster [468]
-                0.00    0.00  325825/129167539     scared_by_monster [380]
-                0.00    0.00  346411/129167539     travel_route [147]
-                0.00    0.00  363135/129167539     select_opponent [160]
-                0.00    0.00  372173/129167539     select_enemy [172]
-                0.00    0.00  407896/129167539     guard_flags [690]
-                0.00    0.00  417577/129167539     study_days [747]
-                0.00    0.00  420172/129167539     tolua_unit_get_race [746]
-                0.00    0.00  439954/129167539     process [7]
-                0.00    0.00  464187/129167539     skilldiff [166]
-                0.00    0.00  475770/129167539     terminate [242]
-                0.00    0.00  578592/129167539     heal_factor [619]
-                0.00    0.00  595125/129167539     read_unit [74]
-                0.00    0.00  595142/129167539     plan_monsters [52]
-                0.00    0.00  595144/129167539     monthly_healing [215]
-                0.00    0.00  595476/129167539     demon_skillchanges [246]
-                0.00    0.00  596221/129167539     prepare_report [8]
-                0.00    0.00  597269/129167539     bufunit [17]
-                0.00    0.00  742235/129167539     random_neighbour [153]
-                0.00    0.00  748527/129167539     unit_can_study [709]
-                0.00    0.00  793492/129167539     produce [29]
-                0.00    0.00  835519/129167539     study_cmd [105]
-                0.00    0.00  868104/129167539     select_armor [700]
-                0.00    0.00  949946/129167539     can_survive [640]
-                0.00    0.00 1044674/129167539     get_food [88]
-                0.00    0.00 1100763/129167539     cr_output_unit [19]
-                0.00    0.00 1121103/129167539     monster_is_waiting [407]
-                0.00    0.00 1190864/129167539     magic [157]
-                0.00    0.00 1191346/129167539     make_summary [21]
-                0.00    0.00 1194391/129167539     age_unit [336]
-                0.00    0.00 1335533/129167539     cansee [22]
-                0.00    0.00 1344397/129167539     nr_unit [11]
-                0.00    0.00 1381157/129167539     unit_max_hp [136]
-                0.00    0.00 1469625/129167539     monster_kills_peasants [230]
-                0.00    0.00 1501863/129167539     do_attack [80]
-                0.00    0.00 1555209/129167539     weapon_skill [221]
-                0.00    0.00 1747682/129167539     cansee_durchgezogen [170]
-                0.00    0.00 1771752/129167539     help_money [663]
-                0.00    0.00 1788663/129167539     write_unit [97]
-                0.01    0.00 2367342/129167539     get_pooled [104]
-                0.01    0.00 2521048/129167539     maintenance_cost [481]
-                0.01    0.00 2554959/129167539     u_description [347]
-                0.01    0.00 3891194/129167539     count_faction [219]
-                0.01    0.00 3903981/129167539     score [23]
-                0.01    0.00 4920480/129167539     use_pooled [39]
-                0.02    0.00 7179079/129167539     get_modifier <cycle 1> [55]
-                0.07    0.00 29944440/129167539     check_overpopulated [184]
-                0.08    0.00 34058224/129167539     room_for_race_in_region [165]
-[89]     0.9    0.32    0.00 129167539         u_race [89]
------------------------------------------------
-                0.05    0.26 7179079/7179079     get_modifier <cycle 1> [55]
-[90]     0.9    0.05    0.26 7179079         att_modification [90]
-                0.12    0.00 7027859/12246335     ct_find [114]
-                0.09    0.00 10322799/51974272     a_find [65]
-                0.04    0.00 3294942/10190660     get_curse [143]
-                0.01    0.00 3294942/5152236     ct_changed [592]
-                0.00    0.00  601859/4201030     curse_active [543]
-                0.00    0.00      58/432940      curse_geteffect [1395]
------------------------------------------------
-                0.04    0.27       1/1           process [7]
-[91]     0.9    0.04    0.27       1         randomevents [91]
-                0.03    0.03       1/1           dissolve_units [241]
-                0.03    0.02       1/1           demon_skillchanges [246]
-                0.01    0.03       1/1           rotting_herbs [284]
-                0.00    0.04       1/1           icebergs [285]
-                0.02    0.01       1/1           orc_growth [370]
-                0.02    0.00       1/1           godcurse [405]
-                0.01    0.00       1/1           chaos_update [514]
-                0.00    0.00  419410/3902878     get_monsters [293]
-                0.00    0.00  178254/51974272     a_find [65]
-                0.00    0.00  176065/129167539     u_race [89]
-                0.00    0.00       1/1           volcano_update [981]
-                0.00    0.00     172/2605004     rpeasants [435]
-                0.00    0.00       6/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.31   96555/96555       travel [81]
-[92]     0.9    0.00    0.31   96555         travel_i [92]
-                0.00    0.12   96482/96482       travel_route [147]
-                0.00    0.11   96450/96450       movement_speed [155]
-                0.05    0.00   96482/96482       get_followers [254]
-                0.00    0.01   96450/96450       cap_route [502]
-                0.00    0.01   96555/96555       canwalk [633]
-                0.00    0.00  162752/55492327     getkeyword [54]
-                0.00    0.00      65/282847      getunit [205]
-                0.00    0.00     105/15102       cmistake [718]
-                0.00    0.00      32/967784      msg_message [132]
-                0.00    0.00      33/392959      add_message [434]
-                0.00    0.00      65/1027665     init_order [613]
-                0.00    0.00      32/115276      can_move [736]
-                0.00    0.00      32/1629412     LongHunger [536]
-                0.00    0.00       1/41248       msg_feedback [647]
-                0.00    0.00     199/95593       can_leave [1112]
-                0.00    0.00      33/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.30    4629/4629        produce [29]
-[93]     0.9    0.00    0.30    4629         expandselling [93]
-                0.06    0.19  282676/860263      use_pooled [39]
-                0.01    0.02    4628/10852       expandorders [197]
-                0.01    0.00  282676/11241829     i_change [115]
-                0.00    0.00  283759/2599554     change_money [337]
-                0.00    0.00  370844/51974272     a_find [65]
-                0.00    0.00   12448/967784      msg_message [132]
-                0.00    0.00    5821/34409       add_income [625]
-                0.00    0.00    4629/12933       owner_buildingtyp [676]
-                0.00    0.00    9465/593636      building_owner [232]
-                0.00    0.00   12448/392959      add_message [434]
-                0.00    0.00    3778/184870      buildingeffsize [367]
-                0.00    0.00    4738/451774      a_remove [366]
-                0.00    0.00    4738/779419      a_add [555]
-                0.00    0.00    4690/2605004     rpeasants [435]
-                0.00    0.00    4629/4666665     rmoney [452]
-                0.00    0.00       3/560926      bt_find [237]
-                0.00    0.00  287458/308950      r_demand [1404]
-                0.00    0.00   12448/1009028     msg_release [1373]
-                0.00    0.00    4738/779868      a_new [1376]
-                0.00    0.00    4629/204314      bt_changed [1415]
-                0.00    0.00    4628/1511812     newterrain [1359]
-                0.00    0.00     344/75797       buildingtype_exists [1443]
-                0.00    0.00      13/217405      r_setdemand [1413]
------------------------------------------------
-                0.29    0.00 18856320/18856320     travelthru_map [41]
-[94]     0.8    0.29    0.00 18856320         cb_add_seen [94]
-                0.00    0.00   61444/745269      add_seen_nb [386]
------------------------------------------------
-                                                 <spontaneous>
-[95]     0.8    0.28    0.00                 cb_find_prefix_i [95]
------------------------------------------------
-                                                 <spontaneous>
-[96]     0.8    0.28    0.00                 from_external_node [96]
------------------------------------------------
-                0.12    0.15  596221/596221      write_game [83]
-[97]     0.8    0.12    0.15  596221         write_unit [97]
-                0.00    0.08  607926/607926      writeorder [208]
-                0.00    0.03  596221/839970      write_attribs [301]
-                0.01    0.00  596221/629123      write_items [511]
-                0.01    0.00  596221/2868601     u_irace [257]
-                0.01    0.00  596221/604861      write_unit_reference [557]
-                0.01    0.00  692835/55492327     getkeyword [54]
-                0.00    0.00   47440/593636      building_owner [232]
-                0.00    0.00 1788663/129167539     u_race [89]
-                0.00    0.00  692829/2155959     is_persistent [687]
-                0.00    0.00   68016/2985733     is_repeated [552]
-                0.00    0.00   27416/3358315     ship_owner [438]
-                0.00    0.00      40/2383101     unitname [142]
-                0.00    0.00      40/64          log_info [1339]
-                0.00    0.00  596221/647569      write_faction_reference [1382]
-                0.00    0.00  596221/642406      write_building_reference [1383]
-                0.00    0.00  596221/615299      write_ship_reference [1386]
------------------------------------------------
-                0.00    0.00    7964/5168717     report_crtypes [428]
-                0.04    0.03 1380398/5168717     nr_render [25]
-                0.11    0.09 3780355/5168717     nr_section [113]
-[98]     0.8    0.15    0.12 5168717         nrt_find [98]
-                0.12    0.00 5168717/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.00       4/8302761     reserve_i [213]
-                0.00    0.00   83859/8302761     reduce_weight [404]
-                0.00    0.03  931076/8302761     change_resource [240]
-                0.01    0.07 2367342/8302761     get_pooled [104]
-                0.02    0.14 4920480/8302761     use_pooled [39]
-[99]     0.8    0.03    0.23 8302761         get_resource [99]
-                0.03    0.21 8301368/9232125     res_changeitem [101]
-                0.00    0.00     357/443         res_changepermaura [912]
-                0.00    0.00     983/1199        res_changeaura [972]
-                0.00    0.00      53/53          lua_getresource [1191]
------------------------------------------------
-                               54349             sm_familiar <cycle 1> [520]
-                0.00    0.00       1/12320804     plant [1184]
-                0.00    0.00       1/12320804     planttrees [1206]
-                0.00    0.00       1/12320804     destroy_road [1230]
-                0.00    0.00       2/12320804     sp_bloodsacrifice [1209]
-                0.00    0.00       2/12320804     breedtrees [1148]
-                0.00    0.00       2/12320804     setstealth_cmd [182]
-                0.00    0.00       3/12320804     target_resists_magic [1154]
-                0.00    0.00       4/12320804     sail [181]
-                0.00    0.00       4/12320804     create_ship [1014]
-                0.00    0.00      15/12320804     age_stonecircle [1021]
-                0.00    0.00      22/12320804     reshow [822]
-                0.00    0.00      41/12320804     build_road [950]
-                0.00    0.00      44/12320804     plan_monsters [52]
-                0.00    0.00      65/12320804     steal_cmd [766]
-                0.00    0.00      90/12320804     sp_charmingsong [993]
-                0.00    0.00      96/12320804     spy_cmd [990]
-                0.00    0.00     165/12320804     update_spells [381]
-                0.00    0.00     170/12320804     breedhorses [742]
-                0.00    0.00     200/12320804     max_skill [1037]
-                0.00    0.00     226/12320804     fumble [973]
-                0.00    0.00     251/12320804     cancast [833]
-                0.00    0.00     329/12320804     cast_cmd [760]
-                0.00    0.00     349/12320804     research_cmd [886]
-                0.00    0.00     377/12320804     manufacture [759]
-                0.00    0.00     432/12320804     continue_ship [813]
-                0.00    0.00     489/12320804     u_hasspell [951]
-                0.00    0.00     508/12320804     regeneration [942]
-                0.00    0.00     621/12320804     build_building [696]
-                0.00    0.00    1230/12320804     build [691]
-                0.00    0.00    1302/12320804     get_combatspelllevel [880]
-                0.00    0.00    1334/12320804     bufunit [17]
-                0.00    0.00    1423/12320804     leveled_allocation [888]
-                0.00    0.00    1717/12320804     faction_getmages [382]
-                0.00    0.00    2273/12320804     do_combatmagic [825]
-                0.00    0.00    2659/12320804     tax_cmd [697]
-                0.00    0.00    2909/12320804     make_fighter [424]
-                0.00    0.00    2939/12320804     allocate_resource [752]
-                0.00    0.00    3116/12320804     drifting_ships [490]
-                0.00    0.00    3403/12320804     lighthouse_range [728]
-                0.00    0.00    5358/12320804     max_spellpoints [755]
-                0.00    0.00    5903/12320804     buy [707]
-                0.00    0.00    5988/12320804     herbsearch [493]
-                0.00    0.00    6428/12320804     cansee_unit [684]
-                0.00    0.00    6580/12320804     study_cmd [105]
-                0.00    0.00    7254/12320804     ship_ready [354]
-                0.00    0.00    7957/12320804     magic_resistance [727]
-                0.00    0.00    8873/12320804     bewegung_blockiert_von [631]
-                0.00    0.00   10679/12320804     move_ship [374]
-                0.00    0.00   12787/12320804     canwalk [633]
-                0.00    0.00   20459/12320804     crew_skill [344]
-                0.00    0.00   28293/12320804     sell [498]
-                0.00    0.00   33015/12320804     ridingcapacity [694]
-                0.00    0.00   33156/12320804     entertain_cmd [665]
-                0.00    0.01  116914/12320804     horse_fleeing_bonus [604]
-                0.00    0.01  116914/12320804     fleechance [408]
-                0.00    0.01  137709/12320804     CavalryBonus [491]
-                0.00    0.01  172836/12320804     cansee_durchgezogen [170]
-                0.00    0.01  179414/12320804     walkingcapacity [403]
-                0.01    0.01  192556/12320804     canride [465]
-                0.01    0.01  207188/12320804     report_resources [210]
-                0.02    0.02  551693/12320804     weapon_skill [221]
-                0.02    0.03  604957/12320804     cr_output_unit [19]
-                0.03    0.05 1188531/12320804     eff_stealth [163]
-                0.03    0.05 1213526/12320804     make_summary [21]
-                0.04    0.06 1327770/12320804     armedmen [151]
-                0.04    0.06 1381157/12320804     unit_max_hp [136]
-                0.07    0.10 2363341/12320804     cansee [22]
-[100]    0.8    0.25    0.01 10030400         effskill <cycle 1> [100]
-                0.01    0.00 10030400/21345834     skill_enabled [365]
-                             4953357             eff_skill <cycle 1> [334]
------------------------------------------------
-                0.00    0.02  930757/9232125     change_resource [240]
-                0.03    0.21 8301368/9232125     get_resource [99]
-[101]    0.8    0.03    0.23 9232125         res_changeitem [101]
-                0.17    0.00 9232120/11241829     i_change [115]
-                0.02    0.03 9163148/9163148     golem_factor [265]
-                0.01    0.00 9232120/9298667     resource2item [546]
-                0.00    0.00       1/3178        scale_number [969]
------------------------------------------------
-                0.00    0.26  131722/131722      economics [78]
-[102]    0.7    0.00    0.26  131722         give_cmd [102]
-                0.00    0.18   95533/95533       give_item [126]
-                0.00    0.04  131722/282847      getunit [205]
-                0.00    0.01  102699/102705      can_give_to [600]
-                0.00    0.01  102606/9953180     alliedunit [31]
-                0.00    0.01  231035/2281756     gettoken [195]
-                0.00    0.00  102606/71815034     get_race [12]
-                0.00    0.00   28910/41248       msg_feedback [647]
-                0.00    0.00   29028/392959      add_message [434]
-                0.00    0.00  131722/1027665     init_order [613]
-                0.00    0.00  307120/129167539     u_race [89]
-                0.00    0.00   94233/534930      isparam [668]
-                0.00    0.00   93568/191379      finditemtype [735]
-                0.00    0.00   18400/6010308     i_find [127]
-                0.00    0.00   45456/1787006     findparam [458]
-                0.00    0.00   24010/4851739     get_reservation [281]
-                0.00    0.00     588/588         give_men [857]
-                0.00    0.00     965/15102       cmistake [718]
-                0.00    0.00  102739/18647447     getplane [596]
-                0.00    0.00     114/114         give_unit [952]
-                0.00    0.00      71/71          disband_men [999]
-                0.00    0.00  102761/102761      check_give [1138]
-                0.00    0.00      50/8898        ucontact [927]
-                0.00    0.00  114935/217696      can_give [1335]
-                0.00    0.00  131729/203117      atoip [1416]
-                0.00    0.00   29028/1009028     msg_release [1373]
------------------------------------------------
-                0.02    0.10  700757/1405457     cr_output_unit [19]
-                0.03    0.10  704700/1405457     bufunit [17]
-[103]    0.7    0.05    0.20 1405457         report_items [103]
-                0.06    0.11 8843052/12353561     report_item [106]
-                0.02    0.00 1017568/12246335     ct_find [114]
-                0.01    0.00 1017568/10190660     get_curse [143]
------------------------------------------------
-                             1825360             get_pooled [104]
-                0.00    0.00       1/541982      planttrees [1206]
-                0.00    0.00       1/541982      breedtrees [1148]
-                0.00    0.00       1/541982      promotion_cmd [917]
-                0.00    0.00       2/541982      plant [1184]
-                0.00    0.00      23/541982      build_road [950]
-                0.00    0.00      59/541982      expandstealing [807]
-                0.00    0.00     122/541982      maxbuild [946]
-                0.00    0.00     404/541982      academy_can_teach [527]
-                0.00    0.00     489/541982      eff_spelllevel [845]
-                0.00    0.00     503/541982      cancast [833]
-                0.00    0.00     590/541982      use_item [765]
-                0.00    0.00    1670/541982      do_recruiting [351]
-                0.00    0.00    1816/541982      build [691]
-                0.00    0.00    3359/541982      recruit [650]
-                0.00    0.00    7821/541982      study_cmd [105]
-                0.00    0.01   13492/541982      maintain [478]
-                0.00    0.01   15796/541982      sell [498]
-                0.01    0.04   95533/541982      give_item [126]
-                0.02    0.16  400300/541982      expandbuying [49]
-[104]    0.7    0.03    0.21  541982+1825360 get_pooled [104]
-                0.01    0.11 1273750/9953180     alliedunit [31]
-                0.01    0.07 2367342/8302761     get_resource [99]
-                0.00    0.00  671315/4851739     get_reservation [281]
-                0.01    0.00 2367342/129167539     u_race [89]
-                0.00    0.00 1849529/7417541     urace [436]
-                             1825360             get_pooled [104]
------------------------------------------------
-                0.03    0.21  417808/417808      process [7]
-[105]    0.7    0.03    0.21  417808         study_cmd [105]
-                0.00    0.04  420075/560926      bt_find [237]
-                0.01    0.02  417577/451774      a_remove [366]
-                0.00    0.02  417775/435022      getskill [387]
-                0.02    0.00  417730/418134      study_cost [433]
-                0.01    0.01  836342/2858912     get_effect [225]
-                0.00    0.01  417740/71815034     get_race [12]
-                0.01    0.00  417580/424669      active_building [560]
-                0.00    0.01  417577/892307      learn_skill [471]
-                0.00    0.00    7475/860263      use_pooled [39]
-                0.00    0.01  405840/779419      a_add [555]
-                0.00    0.00  835616/4984610     config_get_int [348]
-                0.00    0.00  417739/51974272     a_find [65]
-                0.00    0.00    7821/541982      get_pooled [104]
-                0.00    0.00  417775/1027665     init_order [613]
-                0.00    0.00   20072/967784      msg_message [132]
-                0.00    0.00  169917/12246335     ct_find [114]
-                0.00    0.00  169917/10190660     get_curse [143]
-                0.00    0.00  835519/129167539     u_race [89]
-                0.00    0.00  417808/748527      unit_can_study [709]
-                0.00    0.00  417577/417577      study_days [747]
-                0.00    0.00   20258/392959      add_message [434]
-                0.00    0.00    6326/9953180     alliedunit [31]
-                0.00    0.00    6580/12320804     effskill <cycle 1> [100]
-                0.00    0.00  169917/4201030     curse_active [543]
-                0.00    0.00       4/4           count_skill [868]
-                0.00    0.00     234/15102       cmistake [718]
-                0.00    0.00   15296/56052475     get_resourcetype [194]
-                0.00    0.00     186/41248       msg_feedback [647]
-                0.00    0.00    3659/3659        ExpensiveMigrants [1004]
-                0.00    0.00     589/2624955     has_skill [193]
-                0.00    0.00     524/2426021     get_mage [198]
-                0.00    0.00    1118/2977        change_effect [982]
-                0.00    0.00    3659/3659        is_migrant [1047]
-                0.00    0.00     524/793         is_familiar [1092]
-                0.00    0.00      91/1441945     is_mage [262]
-                0.00    0.00      17/45891       get_level [934]
-                0.00    0.00       4/1583        skill_limit [1172]
-                0.00    0.00  417577/417577      study_speedup [1398]
-                0.00    0.00  405840/779868      a_new [1376]
-                0.00    0.00  169917/651711      oldcursename [1381]
-                0.00    0.00   20258/1009028     msg_release [1373]
-                0.00    0.00    2495/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.01    0.02 1727391/12353561     cr_output_unit [19]
-                0.01    0.02 1783118/12353561     bufunit [17]
-                0.06    0.11 8843052/12353561     report_items [103]
-[106]    0.7    0.08    0.16 12353561         report_item [106]
-                0.04    0.04 1783118/24887945     locale_string [27]
-                0.05    0.00 11478488/13259934     resourcename [233]
-                0.02    0.00 12353561/56052475     get_resourcetype [194]
-                0.00    0.00  101492/129167539     u_race [89]
------------------------------------------------
-                0.03    0.00  884940/5985780     itoa10 [338]
-                0.20    0.00 5100840/5985780     itoa36 [116]
-[107]    0.7    0.23    0.00 5985780         itoab [107]
------------------------------------------------
-                0.00    0.00   41086/2006524     cr_order [489]
-                0.01    0.04  494960/2006524     buforder [201]
-                0.04    0.13 1470478/2006524     write_order [121]
-[108]    0.7    0.05    0.18 2006524         get_command [108]
-                0.05    0.05 2006524/24887945     locale_string [27]
-                0.07    0.00 3889315/34611296     strlcpy [45]
-                0.01    0.00 3889315/36653945     wrptr [178]
-                0.00    0.00 2006524/2009097     keyword [1355]
------------------------------------------------
-                0.00    0.00     145/1118718     findunitr [991]
-                0.00    0.00     754/1118718     createunitid [317]
-                0.00    0.00    1794/1118718     remove_unit [499]
-                0.00    0.00    5523/1118718     newunitid [319]
-                0.04    0.00  221899/1118718     findunitg [279]
-                0.17    0.01  888603/1118718     findunit [123]
-[109]    0.7    0.22    0.01 1118718         ufindhash [109]
-                0.01    0.00 1118718/2903884     jenkins_hash [439]
------------------------------------------------
-                0.00    0.00    3232/4488684     cr_output_resources [238]
-                0.00    0.00   50896/4488684     write_translations [689]
-                0.01    0.21 4434556/4488684     translate [75]
-[110]    0.6    0.01    0.22 4488684         crtag [110]
-                0.11    0.11 4488684/24887945     locale_string [27]
-                0.00    0.00       1/5588        get_locale [884]
------------------------------------------------
-                0.01    0.21  180598/180598      report_plaintext [4]
-[111]    0.6    0.01    0.21  180598         nr_ship [111]
-                0.08    0.00  180598/2742237     paragraph [26]
-                0.06    0.00  180598/1766225     nr_curses [48]
-                0.03    0.00   18693/47902       getshipweight [212]
-                0.01    0.01  373674/24887945     locale_string [27]
-                0.01    0.00  532232/34611296     strlcpy [45]
-                0.00    0.01  180598/1065211     shipname [290]
-                0.00    0.00   18693/47887       shipcapacity [567]
-                0.00    0.00  743981/36653945     wrptr [178]
-                0.00    0.00  180598/2494242     newline [594]
-                0.00    0.00   30150/30150       ship_damage_percent [1482]
------------------------------------------------
-                                                 <spontaneous>
-[112]    0.6    0.22    0.00                 ql_advance [112]
------------------------------------------------
-                0.00    0.00   41255/3780355     log_orders [251]
-                0.02    0.20 3739100/3780355     rp_messages [36]
-[113]    0.6    0.02    0.20 3780355         nr_section [113]
-                0.11    0.09 3780355/5168717     nrt_find [98]
------------------------------------------------
-                0.00    0.00       1/12246335     unit_max_hp [136]
-                0.00    0.00       1/12246335     sp_holyground [1068]
-                0.00    0.00       1/12246335     monthly_healing [215]
-                0.00    0.00       1/12246335     spawn_undead [629]
-                0.00    0.00       2/12246335     sp_charmingsong [993]
-                0.00    0.00       2/12246335     sp_generous [1040]
-                0.00    0.00       2/12246335     sp_enterastral [1045]
-                0.00    0.00       2/12246335     shipcurse_flyingship [1072]
-                0.00    0.00       3/12246335     sp_song_of_peace [939]
-                0.00    0.00       3/12246335     sp_eternizewall [988]
-                0.00    0.00       3/12246335     init_rules [1272]
-                0.00    0.00       3/12246335     skilldiff [166]
-                0.00    0.00       4/12246335     sp_goodwinds [974]
-                0.00    0.00       6/12246335     forget_cmd [1093]
-                0.00    0.00       9/12246335     is_freezing [1088]
-                0.00    0.00      13/12246335     sp_blessedharvest [847]
-                0.00    0.00      15/12246335     age_stonecircle [1021]
-                0.00    0.00      17/12246335     produce [29]
-                0.00    0.00      17/12246335     process [7]
-                0.00    0.00      17/12246335     magic [157]
-                0.00    0.00      22/12246335     drifting_ships [490]
-                0.00    0.00      27/12246335     sp_stormwinds [871]
-                0.00    0.00      34/12246335     sp_viewreality [784]
-                0.00    0.00      99/12246335     report_template [87]
-                0.00    0.00     349/12246335     can_give_men [940]
-                0.00    0.00     406/12246335     make_fighter [424]
-                0.00    0.00     450/12246335     spellpower [1000]
-                0.00    0.00     452/12246335     fumble [973]
-                0.00    0.00     488/12246335     give_men [857]
-                0.00    0.00     508/12246335     regenerate_aura [346]
-                0.00    0.00    1689/12246335     recruit [650]
-                0.00    0.00    2815/12246335     count_faction [219]
-                0.00    0.00    4020/12246335     curse_read [770]
-                0.00    0.00    5358/12246335     max_spellpoints [755]
-                0.00    0.00    5380/12246335     teach_cmd [272]
-                0.00    0.00    5948/12246335     deathcounts [843]
-                0.00    0.00    8515/12246335     describe [35]
-                0.00    0.00    8573/12246335     magic_resistance [727]
-                0.00    0.00    9250/12246335     movement_speed [155]
-                0.00    0.00   16560/12246335     entertain_cmd [665]
-                0.00    0.00   29173/12246335     horses [330]
-                0.00    0.00   32649/12246335     growing_trees [624]
-                0.00    0.00   37300/12246335     cr_output_region [10]
-                0.00    0.00   39858/12246335     sail [181]
-                0.00    0.00   67682/12246335     shipspeed [669]
-                0.00    0.00   91155/12246335     godcurse [405]
-                0.00    0.00   91483/12246335     orc_growth [370]
-                0.00    0.00   94865/12246335     ageing [185]
-                0.00    0.00  104368/12246335     roadto [606]
-                0.00    0.00  159633/12246335     entertainmoney [643]
-                0.00    0.00  169917/12246335     study_cmd [105]
-                0.00    0.00  173175/12246335     can_survive [640]
-                0.00    0.00  178254/12246335     maintain_buildings [339]
-                0.00    0.00  282968/12246335     move_blocked [283]
-                0.01    0.00  669051/12246335     production [417]
-                0.01    0.00  733941/12246335     default_wage [173]
-                0.02    0.00 1017568/12246335     report_items [103]
-                0.02    0.00 1174371/12246335     terrain_name [226]
-                0.12    0.00 7027859/12246335     att_modification [90]
-[114]    0.6    0.21    0.00 12246335         ct_find [114]
------------------------------------------------
-                0.00    0.00       1/11241829     age_stonecircle [1021]
-                0.00    0.00       4/11241829     claim_cmd [1242]
-                0.00    0.00      26/11241829     gift_items [891]
-                0.00    0.00     121/11241829     tolua_unit_add_item [1103]
-                0.00    0.00     129/11241829     create_potion [821]
-                0.00    0.00     306/11241829     manufacture [759]
-                0.00    0.00     340/11241829     aftermath [701]
-                0.00    0.00    1091/11241829     loot_items [810]
-                0.00    0.00    2825/11241829     split_allocations [743]
-                0.00    0.00    3221/11241829     terminate [242]
-                0.00    0.00    5896/11241829     herbsearch [493]
-                0.00    0.00   12859/11241829     breedhorses [742]
-                0.00    0.00   22496/11241829     rotting_herbs [284]
-                0.00    0.00   93119/11241829     give_item [126]
-                0.01    0.00  282676/11241829     expandselling [93]
-                0.01    0.00  347340/11241829     statistics [70]
-                0.01    0.00  448447/11241829     read_items [320]
-                0.01    0.00  788812/11241829     expandbuying [49]
-                0.17    0.00 9232120/11241829     res_changeitem [101]
-[115]    0.6    0.21    0.00 11241829         i_change [115]
-                0.00    0.00  735776/822780      i_new [1375]
-                0.00    0.00   98482/374425      i_free [1400]
------------------------------------------------
-                0.00    0.00       1/5100840     give_men [857]
-                0.00    0.00       2/5100840     new_ship [1229]
-                0.00    0.00       5/5100840     factionorders [983]
-                0.00    0.00      11/5100840     new_building [1059]
-                0.00    0.00      52/5100840     update_nmrs [1155]
-                0.00    0.00     232/5100840     write_script [853]
-                0.00    0.00     232/5100840     writepasswd [1074]
-                0.00    0.00     233/5100840     readfaction [767]
-                0.00    0.00     462/5100840     score [23]
-                0.00    0.00     559/5100840     write_reports [3]
-                0.00    0.00    1196/5100840     create_order [341]
-                0.00    0.00    2008/5100840     default_name [851]
-                0.00    0.00   17417/5100840     teach_cmd [272]
-                0.00    0.00   18788/5100840     sideabkz [745]
-                0.00    0.00   25857/5100840     eval_int36 [729]
-                0.00    0.00   52225/5100840     report_template [87]
-                0.00    0.00   56643/5100840     groupid [698]
-                0.00    0.01  180818/5100840     write_buildingname [622]
-                0.00    0.04 1065211/5100840     write_shipname [291]
-                0.00    0.05 1295787/5100840     factionname [247]
-                0.00    0.09 2383101/5100840     write_unitname [148]
-[116]    0.6    0.00    0.20 5100840         itoa36 [116]
-                0.20    0.00 5100840/5985780     itoab [107]
------------------------------------------------
-                0.00    0.00       1/1481407     tolua_unit_add_order [1276]
-                0.00    0.00      47/1481407     give_peasants [1060]
-                0.00    0.00     136/1481407     make_movement_order [522]
-                0.00    0.00     232/1481407     defaultorders [249]
-                0.01    0.07  606357/1481407     read_unit [74]
-                0.01    0.10  874634/1481407     unitorders [46]
-[117]    0.6    0.02    0.17 1481407         parse_order [117]
-                0.04    0.04 1481407/1929215     create_order_i [175]
-                0.00    0.05 1505792/2066777     parse_token_depr [220]
-                0.03    0.02 1481407/1481616     get_keyword [274]
-                0.00    0.00   24385/534930      isparam [668]
------------------------------------------------
-                0.00    0.00   22644/2248440     new_border [705]
-                0.19    0.00 2225796/2248440     get_borders [120]
-[118]    0.5    0.19    0.00 2248440         get_borders_i [118]
------------------------------------------------
-                                                 <spontaneous>
-[119]    0.5    0.19    0.00                 bin_r_int_pak [119]
------------------------------------------------
-                0.00    0.00      22/2225796     rsetroad [1152]
-                0.00    0.01  106203/2225796     travel_route [147]
-                0.00    0.01  113487/2225796     next_region [601]
-                0.00    0.01  143730/2225796     rroad [508]
-                0.00    0.03  300501/2225796     move_blocked [283]
-                0.00    0.06  765959/2225796     describe [35]
-                0.00    0.07  795894/2225796     cr_borders [135]
-[120]    0.5    0.00    0.19 2225796         get_borders [120]
-                0.19    0.00 2225796/2248440     get_borders_i [118]
------------------------------------------------
-                0.00    0.01  123513/1470505     eval_order [472]
-                0.00    0.01  128725/1470505     report_template [87]
-                0.01    0.07  607926/1470505     writeorder [208]
-                0.01    0.07  610341/1470505     stream_order [167]
-[121]    0.5    0.02    0.17 1470505         write_order [121]
-                0.04    0.13 1470478/2006524     get_command [108]
------------------------------------------------
-                0.00    0.00       8/2934859     sp_summon_familiar [1025]
-                0.00    0.00      17/2934859     recruit_dracoids [837]
-                0.00    0.00      44/2934859     plan_monsters [52]
-                0.00    0.00      48/2934859     spy_message [1038]
-                0.00    0.00      58/2934859     create_data [252]
-                0.00    0.00     119/2934859     plan_dragon [273]
-                0.00    0.00   20072/2934859     cr_skill [672]
-                0.00    0.00   40099/2934859     eval_skill [671]
-                0.00    0.02  317467/2934859     monster_learn [269]
-                0.00    0.04  603246/2934859     cr_output_unit [19]
-                0.01    0.12 1953681/2934859     spskill [53]
-[122]    0.5    0.01    0.18 2934859         skillname [122]
-                0.07    0.07 2934859/24887945     locale_string [27]
-                0.01    0.03 2934859/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00       1/888603      tolua_get_unit [1254]
-                0.00    0.00      16/888603      verify_unit [1028]
-                0.00    0.00      20/888603      restack_units [353]
-                0.00    0.00     147/888603      contact_cmd [965]
-                0.00    0.00     900/888603      follow_unit [331]
-                0.00    0.00    9926/888603      resolve_unit [703]
-                0.00    0.06  282468/888603      getunit [205]
-                0.00    0.12  595125/888603      read_unit [74]
-[123]    0.5    0.00    0.18  888603         findunit [123]
-                0.17    0.01  888603/1118718     ufindhash [109]
------------------------------------------------
-                                                 <spontaneous>
-[124]    0.5    0.18    0.00                 fs_write [124]
------------------------------------------------
-                0.00    0.00   54318/5387327     getstrtoken [710]
-                0.02    0.01  984476/5387327     unitorders [46]
-                0.05    0.02 2066777/5387327     parse_token_depr [220]
-                0.06    0.02 2281756/5387327     gettoken [195]
-[125]    0.5    0.13    0.05 5387327         parse_token [125]
-                0.05    0.00 5306964/5329742     eatwhitespace_c [255]
-                0.00    0.00   85158/46391457     unicode_utf8_to_ucs4 [177]
------------------------------------------------
-                0.00    0.18   95533/95533       give_cmd [102]
-[126]    0.5    0.00    0.18   95533         give_item [126]
-                0.02    0.06   93824/860263      use_pooled [39]
-                0.01    0.04   95533/541982      get_pooled [104]
-                0.01    0.02   94308/94420       add_give [379]
-                0.02    0.00   51003/51003       give_money [484]
-                0.01    0.00  283665/283711      item2resource [561]
-                0.00    0.00   93119/11241829     i_change [115]
-                0.00    0.00   41876/41882       GiveRestriction [836]
-                0.00    0.00   93119/93119       give_quota [858]
-                0.00    0.00    1225/41248       msg_feedback [647]
-                0.00    0.00    1225/392959      add_message [434]
-                0.00    0.00    2364/4851739     get_reservation [281]
-                0.00    0.00    1761/1761        give_horses [1108]
-                0.00    0.00  186260/1342832     handle_event [1363]
-                0.00    0.00   93119/93120       change_reservation [1441]
-                0.00    0.00    1225/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       2/6010308     claim_cmd [1242]
-                0.00    0.00      11/6010308     build_road [950]
-                0.00    0.00    1356/6010308     build [691]
-                0.00    0.00   18400/6010308     give_cmd [102]
-                0.02    0.00  595476/6010308     rotting_herbs [284]
-                0.15    0.00 5395063/6010308     i_get [130]
-[127]    0.5    0.17    0.00 6010308         i_find [127]
------------------------------------------------
-                0.03    0.01  178254/713016      enter_2 [295]
-                0.09    0.03  534762/713016      enter_1 [145]
-[128]    0.5    0.12    0.05  713016         do_enter [128]
-                0.04    0.00 4529361/55492327     getkeyword [54]
-                0.00    0.00     405/405         enter_building [695]
-                0.00    0.00     222/222         enter_ship [733]
-                0.00    0.00     639/228907      getid [483]
-                0.00    0.00     639/2281756     gettoken [195]
-                0.00    0.00     639/6530        findparam_ex [926]
-                0.00    0.00     639/1027665     init_order [613]
-                0.00    0.00     514/1936876     free_order [1356]
------------------------------------------------
-                0.01    0.15  105106/105106      plan_monsters [52]
-[129]    0.5    0.01    0.15  105106         monster_move [129]
-                0.00    0.11   84017/84017       random_neighbour [153]
-                0.00    0.02   83723/83859       reduce_weight [404]
-                0.00    0.01   83723/447808      create_order [341]
-                0.00    0.00   83723/24887945     locale_string [27]
-                0.00    0.00   84047/71815034     get_race [12]
-                0.00    0.00  105106/1121103     monster_is_waiting [407]
-                0.00    0.00  168094/129167539     u_race [89]
-                0.00    0.00      30/30          treeman_neighbour [1201]
------------------------------------------------
-                0.00    0.00       4/5395063     damage_unit [1044]
-                0.00    0.00      59/5395063     reshow_other [823]
-                0.00    0.00     118/5395063     steal_cmd [766]
-                0.00    0.00     170/5395063     breedhorses [742]
-                0.00    0.00     225/5395063     spellpower [1000]
-                0.00    0.00     242/5395063     canfly [1031]
-                0.00    0.00     372/5395063     bewegung_blockiert_von [631]
-                0.00    0.00    2594/5395063     make_fighter [424]
-                0.00    0.00    2938/5395063     allocate_resource [752]
-                0.00    0.00    5358/5395063     max_spellpoints [755]
-                0.00    0.00    7957/5395063     magic_resistance [727]
-                0.00    0.00   10900/5395063     terminate [242]
-                0.00    0.00   47287/5395063     canswim [682]
-                0.00    0.00   83224/5395063     trollbelts [677]
-                0.00    0.00   85655/5395063     movement_speed [155]
-                0.00    0.00   96637/5395063     walkingcapacity [403]
-                0.00    0.01  279395/5395063     weight [459]
-                0.00    0.02  566190/5395063     invisible [139]
-                0.00    0.02  703334/5395063     make_summary [21]
-                0.01    0.10 3502404/5395063     item_invis [149]
-[130]    0.5    0.01    0.15 5395063         i_get [130]
-                0.15    0.00 5395063/6010308     i_find [127]
------------------------------------------------
-                0.00    0.16  363071/363071      attack [84]
-[131]    0.5    0.00    0.16  363071         hits [131]
-                0.00    0.10  353422/353422      skilldiff [166]
-                0.01    0.04  726142/1662377     get_unitrow [154]
-                0.00    0.00  353422/353422      contest [654]
-                0.00    0.00  706844/868104      select_armor [700]
-                0.00    0.00  363071/1218663     select_weapon [1367]
-                0.00    0.00  363071/619425      getreload [1385]
------------------------------------------------
-                0.00    0.00       1/967784      sp_holyground [1068]
-                0.00    0.00       1/967784      sp_summonshadowlords [1034]
-                0.00    0.00       1/967784      sp_generous [1040]
-                0.00    0.00       1/967784      do_battle [64]
-                0.00    0.00       1/967784      breedtrees [1148]
-                0.00    0.00       1/967784      promotion_cmd [917]
-                0.00    0.00       1/967784      age_stonecircle [1021]
-                0.00    0.00       1/967784      verify_building [1255]
-                0.00    0.00       1/967784      cast_cmd [760]
-                0.00    0.00       1/967784      sp_flying_ship [1064]
-                0.00    0.00       1/967784      use_skillpotion [1233]
-                0.00    0.00       2/967784      sp_summon_familiar [1025]
-                0.00    0.00       2/967784      sp_bloodsacrifice [1209]
-                0.00    0.00       2/967784      sp_charmingsong [993]
-                0.00    0.00       2/967784      sp_viewreality [784]
-                0.00    0.00       2/967784      magic [157]
-                0.00    0.00       2/967784      create_icebergs [538]
-                0.00    0.00       2/967784      make_wormhole [1150]
-                0.00    0.00       2/967784      summon_allies [925]
-                0.00    0.00       3/967784      wormhole_age [1130]
-                0.00    0.00       3/967784      sp_eternizewall [988]
-                0.00    0.00       3/967784      report_failed_spell [1187]
-                0.00    0.00       3/967784      begin_potion [1096]
-                0.00    0.00       3/967784      give_control_cmd [287]
-                0.00    0.00       3/967784      drown [394]
-                0.00    0.00       3/967784      melt_iceberg [1082]
-                0.00    0.00       3/967784      use_healingpotion [1119]
-                0.00    0.00       4/967784      caught_target [1003]
-                0.00    0.00       4/967784      movement_error [1193]
-                0.00    0.00       4/967784      sp_goodwinds [974]
-                0.00    0.00       4/967784      sp_enterastral [1045]
-                0.00    0.00       4/967784      terminate [242]
-                0.00    0.00       4/967784      give_men [857]
-                0.00    0.00       4/967784      quit [276]
-                0.00    0.00       4/967784      move_iceberg [1094]
-                0.00    0.00       4/967784      factionorders [983]
-                0.00    0.00       5/967784      sp_song_of_peace [939]
-                0.00    0.00       6/967784      spy_cmd [990]
-                0.00    0.00       6/967784      cinfo_skillmod [1192]
-                0.00    0.00       7/967784      sp_healing [989]
-                0.00    0.00       9/967784      sp_stormwinds [871]
-                0.00    0.00      10/967784      spawn_dragons [411]
-                0.00    0.00      12/967784      drifting_ships [490]
-                0.00    0.00      12/967784      sp_mallornhain [968]
-                0.00    0.00      12/967784      sp_summonundead [896]
-                0.00    0.00      12/967784      forget_cmd [1093]
-                0.00    0.00      13/967784      volcano_destruction [1022]
-                0.00    0.00      15/967784      do_fumble [1062]
-                0.00    0.00      18/967784      sp_hain [931]
-                0.00    0.00      18/967784      do_attack [80]
-                0.00    0.00      18/967784      attack_firesword [785]
-                0.00    0.00      21/967784      sp_kampfzauber [957]
-                0.00    0.00      21/967784      build_road [950]
-                0.00    0.00      22/967784      spy_message [1038]
-                0.00    0.00      24/967784      nmr_warnings [878]
-                0.00    0.00      24/967784      cinfo_slave [1118]
-                0.00    0.00      26/967784      sp_blessedharvest [847]
-                0.00    0.00      28/967784      cinfo_speed [1110]
-                0.00    0.00      30/967784      steal_cmd [766]
-                0.00    0.00      32/967784      travel_i [92]
-                0.00    0.00      37/967784      volcano_update [981]
-                0.00    0.00      38/967784      expandstealing [807]
-                0.00    0.00      39/967784      deliverMail [966]
-                0.00    0.00      39/967784      display_item [1054]
-                0.00    0.00      39/967784      random_growl [1065]
-                0.00    0.00      41/967784      dissolve_units [241]
-                0.00    0.00      48/967784      caddmessage [1070]
-                0.00    0.00      51/967784      potion_water_of_life [945]
-                0.00    0.00      51/967784      chaos [848]
-                0.00    0.00      53/967784      sp_dragonodem [627]
-                0.00    0.00      56/967784      use_bloodpotion [935]
-                0.00    0.00      58/967784      add_recruits [371]
-                0.00    0.00      71/967784      disband_men [999]
-                0.00    0.00      88/967784      hunger [808]
-                0.00    0.00      92/967784      spawn_undead [629]
-                0.00    0.00     100/967784      age_reduceproduction [1017]
-                0.00    0.00     110/967784      peasants [658]
-                0.00    0.00     115/967784      build_ship [839]
-                0.00    0.00     120/967784      plagues [781]
-                0.00    0.00     129/967784      create_potion [821]
-                0.00    0.00     163/967784      cinfo_shipnodrift [997]
-                0.00    0.00     170/967784      breedhorses [742]
-                0.00    0.00     174/967784      cinfo_magicrunes [996]
-                0.00    0.00     306/967784      manufacture [759]
-                0.00    0.00     325/967784      mail_cmd [844]
-                0.00    0.00     345/967784      end_potion [814]
-                0.00    0.00     349/967784      research_cmd [886]
-                0.00    0.00     395/967784      reportcasualties [881]
-                0.00    0.00     490/967784      build_building [696]
-                0.00    0.00     508/967784      regenerate_aura [346]
-                0.00    0.00     567/967784      eaten_by_monster [468]
-                0.00    0.00     614/967784      print_fighters [616]
-                0.00    0.00     676/967784      rp_battles [618]
-                0.00    0.00     679/967784      print_header [838]
-                0.00    0.00     681/967784      absorbed_by_monster [804]
-                0.00    0.00    1080/967784      report_plaintext [4]
-                0.00    0.00    1911/967784      cinfo_magicresistance [824]
-                0.00    0.00    1992/967784      aftermath [701]
-                0.00    0.00    2069/967784      nr_curses_i [401]
-                0.00    0.00    2274/967784      cinfo_ship [812]
-                0.00    0.00    2317/967784      print_stats [525]
-                0.00    0.00    2594/967784      battle_report [503]
-                0.00    0.00    2699/967784      scared_by_monster [380]
-                0.00    0.00    2938/967784      split_allocations [743]
-                0.00    0.00    5049/967784      piracy_cmd [660]
-                0.00    0.00    5810/967784      report_transfer [724]
-                0.00    0.00    5907/967784      cinfo_simple [751]
-                0.00    0.00    5966/967784      herbsearch [493]
-                0.00    0.00    7042/967784      sail [181]
-                0.00    0.00    8710/967784      maintain_buildings [339]
-                0.00    0.00   11358/967784      expandbuying [49]
-                0.00    0.00   12398/967784      fbattlerecord [688]
-                0.00    0.00   12448/967784      expandselling [93]
-                0.00    0.00   14939/967784      maintain [478]
-                0.00    0.00   15359/967784      cinfo_building [686]
-                0.00    0.00   20072/967784      study_cmd [105]
-                0.00    0.00   34409/967784      add_income [625]
-                0.00    0.01   80478/967784      add_give [379]
-                0.00    0.01   96460/967784      travel_route [147]
-                0.01    0.02  163573/967784      describe [35]
-                0.01    0.02  192618/967784      statistics [70]
-                0.01    0.03  247009/967784      prices [85]
-[132]    0.4    0.03    0.12  967784         msg_message [132]
-                0.04    0.02  967784/1010116     mt_find [227]
-                0.00    0.06  967784/1009159     msg_create [228]
------------------------------------------------
-                0.00    0.00     923/1351796     name_unit [803]
-                0.01    0.14 1350873/1351796     bufunit [17]
-[133]    0.4    0.01    0.14 1351796         racename [133]
-                0.04    0.03 1460143/24887945     locale_string [27]
-                0.01    0.03 1351796/2275429     raceprefix [222]
-                0.01    0.01 1351796/2818494     rc_name_s [260]
-                0.00    0.00  216694/34611296     strlcpy [45]
-                0.00    0.00  108347/4133717     mkname [261]
-                0.00    0.00  216694/36653945     wrptr [178]
------------------------------------------------
-                0.00    0.00      12/1375380     volcano_destruction [1022]
-                0.01    0.00  127590/1375380     drown [394]
-                0.02    0.00  178254/1375380     economics [78]
-                0.11    0.01 1069524/1375380     remove_empty_units [146]
-[134]    0.4    0.14    0.01 1375380         remove_empty_units_in_region [134]
-                0.00    0.00     493/1794        remove_unit [499]
-                0.00    0.00 4181205/24935046     faction_alive [451]
-                0.00    0.00    7279/71815034     get_race [12]
-                0.00    0.00    7279/129167539     u_race [89]
------------------------------------------------
-                0.06    0.09  209572/209572      cr_output_region [10]
-[135]    0.4    0.06    0.09  209572         cr_borders [135]
-                0.00    0.07  795894/2225796     get_borders [120]
-                0.00    0.01   97014/143730      rroad [508]
-                0.00    0.00   97017/24887945     locale_string [27]
-                0.00    0.00   97017/190469      border_name [641]
-                0.00    0.00   51044/369586      r_connect [474]
-                0.00    0.00   97017/4133717     mkname [261]
-                0.00    0.00  103026/196476      b_finvisible [1417]
-                0.00    0.00  103026/196476      b_rvisibleroad [1418]
-                0.00    0.00   97017/190467      b_transparent [1420]
-                0.00    0.00   12323/26515       b_uinvisible [1487]
------------------------------------------------
-                0.00    0.00       1/1381157     make_familiar [1219]
-                0.00    0.00       1/1381157     make_zombie [1267]
-                0.00    0.00       2/1381157     summon_allies [925]
-                0.00    0.00       4/1381157     heal [1224]
-                0.00    0.00       6/1381157     skill_summoned [1032]
-                0.00    0.00       8/1381157     age_firedragon [1123]
-                0.00    0.00      10/1381157     age_dragon [1098]
-                0.00    0.00      14/1381157     age_ghoul [1024]
-                0.00    0.00      30/1381157     equip_unit_mask [776]
-                0.00    0.00      34/1381157     age_zombie [1019]
-                0.00    0.00      38/1381157     age_skeleton [1008]
-                0.00    0.00      52/1381157     terminate [242]
-                0.00    0.00      92/1381157     spawn_undead [629]
-                0.00    0.00     369/1381157     add_recruits [371]
-                0.00    0.00    2889/1381157     create_unit [296]
-                0.00    0.00    8962/1381157     battle_flee [352]
-                0.00    0.06  595454/1381157     monthly_healing [215]
-                0.01    0.07  773191/1381157     hp_status [206]
-[136]    0.4    0.01    0.13 1381157         unit_max_hp [136]
-                0.04    0.06 1381157/12320804     effskill <cycle 1> [100]
-                0.02    0.00 1366398/10190660     get_curse [143]
-                0.00    0.01 1381157/4984610     config_get_int [348]
-                0.00    0.00 1381157/129167539     u_race [89]
-                0.00    0.00 1366398/5152236     ct_changed [592]
-                0.00    0.00       1/12246335     ct_find [114]
------------------------------------------------
-                                                 <spontaneous>
-[137]    0.4    0.14    0.00                 fstream_done [137]
------------------------------------------------
-                                                 <spontaneous>
-[138]    0.4    0.14    0.00                 ql_get [138]
------------------------------------------------
-                0.00    0.00      12/1753922     spy_cmd [990]
-                0.00    0.00    8873/1753922     bewegung_blockiert_von [631]
-                0.00    0.00   13580/1753922     cansee_unit [684]
-                0.00    0.02  218268/1753922     cansee_durchgezogen [170]
-                0.00    0.12 1513189/1753922     cansee [22]
-[139]    0.4    0.00    0.14 1753922         invisible [139]
-                0.01    0.11 1751202/1751202     item_invis [149]
-                0.00    0.02  566190/5395063     i_get [130]
-                0.00    0.00  566190/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.14 7179079/7179079     get_modifier <cycle 1> [55]
-[140]    0.4    0.00    0.14 7179079         rc_skillmod [140]
-                0.05    0.03 7179079/7910500     r_isforest [199]
-                0.02    0.03 7179079/7179079     skill_mod [264]
-                0.01    0.00 7179079/21345834     skill_enabled [365]
-                0.00    0.00  469309/12560453     rc_changed [256]
-                0.00    0.00       1/71815034     get_race [12]
------------------------------------------------
-                0.01    0.12  113592/113592      report_plaintext [4]
-[141]    0.4    0.01    0.12  113592         nr_building [141]
-                0.05    0.00  113592/2742237     paragraph [26]
-                0.04    0.00  113592/1766225     nr_curses [48]
-                0.00    0.01  113592/218422      report_building [397]
-                0.01    0.01  227343/24887945     locale_string [27]
-                0.00    0.00  260073/34611296     strlcpy [45]
-                0.00    0.00  113592/180818      buildingname [621]
-                0.00    0.00  373665/36653945     wrptr [178]
-                0.00    0.00  113592/2494242     newline [594]
-                0.00    0.00  113592/147171      building_finished [1428]
------------------------------------------------
-                0.00    0.00       1/2383101     tolua_unit_tostring [1300]
-                0.00    0.00       2/2383101     sp_igjarjuk [923]
-                0.00    0.00      40/2383101     write_unit [97]
-                0.00    0.00     122/2383101     eval_unit_dative [1076]
-                0.00    0.00   75486/2383101     cb_cr_travelthru_unit [466]
-                0.00    0.01  159282/2383101     cb_write_travelthru [169]
-                0.00    0.04  799425/2383101     eval_unit [223]
-                0.01    0.07 1348743/2383101     bufunit [17]
-[142]    0.4    0.01    0.12 2383101         unitname [142]
-                0.00    0.12 2383101/2383101     write_unitname [148]
------------------------------------------------
-                0.00    0.00       1/10190660     sp_generous [1040]
-                0.00    0.00       2/10190660     sp_enterastral [1045]
-                0.00    0.00       2/10190660     shipcurse_flyingship [1072]
-                0.00    0.00       3/10190660     skilldiff [166]
-                0.00    0.00       6/10190660     forget_cmd [1093]
-                0.00    0.00       9/10190660     is_freezing [1088]
-                0.00    0.00      10/10190660     sp_stormwinds [871]
-                0.00    0.00      13/10190660     set_curseingmagician [1265]
-                0.00    0.00      15/10190660     age_stonecircle [1021]
-                0.00    0.00      17/10190660     produce [29]
-                0.00    0.00      17/10190660     process [7]
-                0.00    0.00      17/10190660     magic [157]
-                0.00    0.00      22/10190660     drifting_ships [490]
-                0.00    0.00      34/10190660     sp_viewreality [784]
-                0.00    0.00      45/10190660     create_curse [800]
-                0.00    0.00     349/10190660     can_give_men [940]
-                0.00    0.00     406/10190660     make_fighter [424]
-                0.00    0.00     450/10190660     spellpower [1000]
-                0.00    0.00     452/10190660     fumble [973]
-                0.00    0.00     488/10190660     give_men [857]
-                0.00    0.00     508/10190660     regenerate_aura [346]
-                0.00    0.00    1689/10190660     recruit [650]
-                0.00    0.00    2815/10190660     count_faction [219]
-                0.00    0.00    2974/10190660     start_battle [297]
-                0.00    0.00    4309/10190660     report_template [87]
-                0.00    0.00    5358/10190660     max_spellpoints [755]
-                0.00    0.00    5380/10190660     teach_cmd [272]
-                0.00    0.00    5948/10190660     deathcounts [843]
-                0.00    0.00    7957/10190660     magic_resistance [727]
-                0.00    0.00    8515/10190660     describe [35]
-                0.00    0.00    9250/10190660     movement_speed [155]
-                0.00    0.00   16560/10190660     entertain_cmd [665]
-                0.00    0.00   19730/10190660     can_survive [640]
-                0.00    0.00   29173/10190660     horses [330]
-                0.00    0.00   32649/10190660     growing_trees [624]
-                0.00    0.00   37300/10190660     cr_output_region [10]
-                0.00    0.00   39858/10190660     sail [181]
-                0.00    0.00   46175/10190660     maintain_buildings [339]
-                0.00    0.00   67682/10190660     shipspeed [669]
-                0.00    0.00   90436/10190660     spawn_undead [629]
-                0.00    0.00   91155/10190660     godcurse [405]
-                0.00    0.00   91176/10190660     monthly_healing [215]
-                0.00    0.00   91483/10190660     orc_growth [370]
-                0.00    0.00   94865/10190660     ageing [185]
-                0.00    0.00  159633/10190660     entertainmoney [643]
-                0.00    0.00  169917/10190660     study_cmd [105]
-                0.00    0.00  208736/10190660     roadto [606]
-                0.00    0.00  282968/10190660     move_blocked [283]
-                0.01    0.00  669051/10190660     production [417]
-                0.01    0.00 1017568/10190660     report_items [103]
-                0.01    0.00 1041773/10190660     default_wage [173]
-                0.01    0.00 1174371/10190660     terrain_name [226]
-                0.02    0.00 1366398/10190660     unit_max_hp [136]
-                0.04    0.00 3294942/10190660     att_modification [90]
-[143]    0.4    0.13    0.00 10190660         get_curse [143]
------------------------------------------------
-                0.00    0.03  102149/386740      cr_output_region [10]
-                0.00    0.03  104830/386740      cr_output_building [239]
-                0.00    0.06  179761/386740      cr_output_ship [152]
-[144]    0.4    0.00    0.13  386740         cr_output_curses_compat [144]
-                0.12    0.01  386740/1310373     cr_output_curses [69]
------------------------------------------------
-                0.00    0.12  534762/534762      process [7]
-[145]    0.4    0.00    0.12  534762         enter_1 [145]
-                0.09    0.03  534762/713016      do_enter [128]
------------------------------------------------
-                0.00    0.02       1/6           reports [2]
-                0.00    0.02       1/6           demographics [50]
-                0.00    0.02       1/6           quit [276]
-                0.00    0.02       1/6           processorders [6]
-                0.00    0.02       1/6           magic [157]
-                0.00    0.02       1/6           dissolve_units [241]
-[146]    0.4    0.01    0.11       6         remove_empty_units [146]
-                0.11    0.01 1069524/1375380     remove_empty_units_in_region [134]
------------------------------------------------
-                0.00    0.12   96482/96482       travel_i [92]
-[147]    0.4    0.00    0.12   96482         travel_route [147]
-                0.00    0.03   96240/103187      cycle_route [375]
-                0.00    0.02   96240/109785      move_unit [421]
-                0.00    0.01  105958/300501      move_blocked [283]
-                0.00    0.01   96460/967784      msg_message [132]
-                0.00    0.01   96240/192556      canride [465]
-                0.00    0.01  106203/2225796     get_borders [120]
-                0.00    0.01   96240/106919      mark_travelthru [610]
-                0.00    0.01    9680/9680        bewegung_blockiert_von [631]
-                0.00    0.00   96460/392959      add_message [434]
-                0.00    0.00  106203/263302      reldirection [528]
-                0.00    0.00  105958/71815034     get_race [12]
-                0.00    0.00  346411/129167539     u_race [89]
-                0.00    0.00   10581/472418      produceexp [322]
-                0.00    0.00  192722/337987      setguard [815]
-                0.00    0.00    1953/47287       canswim [682]
-                0.00    0.00     234/242         canfly [1031]
-                0.00    0.00     234/1874928     terrain_name [226]
-                0.00    0.00       9/188         is_freezing [1088]
-                0.00    0.00       2/15102       cmistake [718]
-                0.00    0.00  105958/105958      entrance_allowed [1437]
-                0.00    0.00   96460/1009028     msg_release [1373]
-                0.00    0.00   96208/96208       var_copy_regions [1439]
-                0.00    0.00    1727/744202      has_horses [1378]
-                0.00    0.00    1567/59694       r_insectstalled [1446]
------------------------------------------------
-                0.00    0.12 2383101/2383101     unitname [142]
-[148]    0.3    0.00    0.12 2383101         write_unitname [148]
-                0.00    0.09 2383101/5100840     itoa36 [116]
-                0.00    0.03 2383101/3351853     unit_getname [332]
-                0.00    0.00 2383101/5461936     slprintf [548]
------------------------------------------------
-                0.01    0.11 1751202/1751202     invisible [139]
-[149]    0.3    0.01    0.11 1751202         item_invis [149]
-                0.01    0.10 3502404/5395063     i_get [130]
-                0.01    0.00 3502404/56052475     get_resourcetype [194]
------------------------------------------------
-                0.01    0.00 1336242/11253756     genrand_real2 [395]
-                0.02    0.00 2276433/11253756     scramble [244]
-                0.08    0.00 7641081/11253756     genrand_int31 [171]
-[150]    0.3    0.12    0.00 11253756         genrand_int32 [150]
------------------------------------------------
-                0.00    0.00      42/771861      loot_cmd [873]
-                0.00    0.00      79/771861      can_guard [908]
-                0.00    0.00     960/771861      tax_cmd [697]
-                0.00    0.00   15347/771861      can_start_guarding [679]
-                0.01    0.04  351667/771861      make_summary [21]
-                0.01    0.05  403766/771861      is_guardian_r [186]
-[151]    0.3    0.02    0.10  771861         armedmen [151]
-                0.04    0.06 1327770/12320804     effskill <cycle 1> [100]
-                0.00    0.00  771861/7417541     urace [436]
-                0.00    0.00 2375762/2379316     resource2weapon [1353]
------------------------------------------------
-                0.00    0.12  179761/179761      cr_output_region [10]
-[152]    0.3    0.00    0.12  179761         cr_output_ship [152]
-                0.00    0.06  179761/386740      cr_output_curses_compat [144]
-                0.03    0.00   18850/47902       getshipweight [212]
-                0.01    0.01  179761/4434556     translate [75]
-                0.00    0.00  179761/24887945     locale_string [27]
-                0.00    0.00   18850/47887       shipcapacity [567]
-                0.00    0.00   18850/66134       shipspeed [669]
-                0.00    0.00  160572/4503145     omniscient [470]
------------------------------------------------
-                0.00    0.11   84017/84017       monster_move [129]
-[153]    0.3    0.00    0.11   84017         random_neighbour [153]
-                0.02    0.08  742235/742235      room_for_race_in_region [165]
-                0.00    0.01  797286/797288      can_survive [640]
-                0.00    0.00  742235/129167539     u_race [89]
-                0.00    0.00   84017/1087065     get_neighbours [480]
-                0.00    0.00   83698/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00      33/1662377     select_ally [1132]
-                0.00    0.00     308/1662377     fighters [1012]
-                0.00    0.00   25256/1662377     count_enemies_i [636]
-                0.00    0.00   49445/1662377     count_side [666]
-                0.01    0.04  726142/1662377     hits [131]
-                0.01    0.05  861193/1662377     select_enemy [172]
-[154]    0.3    0.02    0.09 1662377         get_unitrow [154]
-                0.09    0.00 1390078/1390078     get_row [189]
-                0.00    0.00 1662377/4301501     statusrow [550]
------------------------------------------------
-                0.00    0.11   96450/96450       travel_i [92]
-[155]    0.3    0.00    0.11   96450         movement_speed [155]
-                0.01    0.08   96316/2480226     old_race [14]
-                0.00    0.01   96316/192556      canride [465]
-                0.00    0.00   75870/1441945     is_mage [262]
-                0.00    0.00   85655/5395063     i_get [130]
-                0.00    0.00   85655/2858912     get_effect [225]
-                0.00    0.00   85655/1177511     it_find [385]
-                0.00    0.00   85643/987488      is_astral [479]
-                0.00    0.00  278421/129167539     u_race [89]
-                0.00    0.00    9250/12246335     ct_find [114]
-                0.00    0.00    9250/10190660     get_curse [143]
-                0.00    0.00       9/2977        change_effect [982]
-                0.00    0.00       1/2426021     get_mage [198]
------------------------------------------------
-                                                 <spontaneous>
-[156]    0.3    0.02    0.09                 ql_set_insert_ex [156]
-                0.05    0.00 4746218/7252744     cmp_transfer [203]
-                0.04    0.00 3573165/3573165     cmp_faction [305]
------------------------------------------------
-                0.01    0.10       1/1           process [7]
-[157]    0.3    0.01    0.10       1         magic [157]
-                0.01    0.04 1190864/71815034     get_race [12]
-                0.00    0.02       1/6           remove_empty_units [146]
-                0.00    0.02  595478/1441945     is_mage [262]
-                0.01    0.00 1128316/55492327     getkeyword [54]
-                0.00    0.00 1190864/129167539     u_race [89]
-                0.00    0.00     222/222         cast_cmd [760]
-                0.00    0.00       2/2           sp_viewreality [784]
-                0.00    0.00     192/273         pay_spell [805]
-                0.00    0.00     220/251         cancast [833]
-                0.00    0.00      13/13          sp_blessedharvest [847]
-                0.00    0.00     220/251         eff_spelllevel [845]
-                0.00    0.00       9/9           sp_stormwinds [871]
-                0.00    0.00       6/6           sp_summonundead [896]
-                0.00    0.00    2062/2831        countspells [903]
-                0.00    0.00       3/3           sp_song_of_peace [939]
-                0.00    0.00       9/10          sp_hain [931]
-                0.00    0.00       6/6           sp_mallornhain [968]
-                0.00    0.00       4/4           sp_goodwinds [974]
-                0.00    0.00     195/226         fumble [973]
-                0.00    0.00       3/3           sp_eternizewall [988]
-                0.00    0.00       3/3           sp_charmingsong [993]
-                0.00    0.00     196/225         spellpower [1000]
-                0.00    0.00       2/2           sp_summon_familiar [1025]
-                0.00    0.00     196/196         verify_targets [1027]
-                0.00    0.00       1/1           sp_summonshadowlords [1034]
-                0.00    0.00       1/1           sp_generous [1040]
-                0.00    0.00       1/1           sp_enterastral [1045]
-                0.00    0.00     152/472418      produceexp [322]
-                0.00    0.00       8/8           do_fumble [1062]
-                0.00    0.00       1/1           sp_flying_ship [1064]
-                0.00    0.00       1/1           sp_holyground [1068]
-                0.00    0.00       2/2           sp_bloodsacrifice [1209]
-                0.00    0.00     196/499         MagicPower [1195]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00      17/12246335     ct_find [114]
-                0.00    0.00      17/10190660     get_curse [143]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00      17/4201030     curse_active [543]
-                0.00    0.00       1/1           sp_seduce [1336]
-                0.00    0.00    8501/59694       r_insectstalled [1446]
-                0.00    0.00     220/229         add_castorder [1626]
-                0.00    0.00     220/608         co_get_region [1594]
-                0.00    0.00     119/121         lua_callspell [1645]
-                0.00    0.00      99/99          spl_costtyp [1650]
-                0.00    0.00      17/651711      oldcursename [1381]
-                0.00    0.00       9/3717        free_castorders [1541]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   28167/10103290     cr_output_curses [69]
-                0.00    0.00   35101/10103290     cr_output_spells [639]
-                0.01    0.00  610341/10103290     stream_order [167]
-                0.10    0.00 9429681/10103290     cr_output_unit [19]
-[158]    0.3    0.11    0.00 10103290         stream_printf [158]
------------------------------------------------
-                                                 <spontaneous>
-[159]    0.3    0.11    0.00                 fs_writeln [159]
------------------------------------------------
-                0.01    0.10  363135/363135      attack [84]
-[160]    0.3    0.01    0.10  363135         select_opponent [160]
-                0.03    0.07  363135/372173      select_enemy [172]
-                0.00    0.00  363135/129167539     u_race [89]
------------------------------------------------
-                0.00    0.02  146950/950595      f_regionid_s [477]
-                0.01    0.08  803645/950595      describe [35]
-[161]    0.3    0.01    0.10  950595         f_regionid [161]
-                0.01    0.04  950595/1552289     rname [200]
-                0.03    0.00  950595/1826688     adjust_coordinates [234]
-                0.02    0.00  950595/34611296     strlcpy [45]
-                0.00    0.00  950595/18647447     getplane [596]
-                0.00    0.00  950595/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.00      14/1205451     allysfm [1122]
-                0.00    0.00    1449/1205451     nmr_warnings [878]
-                0.00    0.00    5926/1205451     writefaction [762]
-                0.00    0.00   10565/1205451     list_address [635]
-                0.01    0.10 1187497/1205451     bufunit [17]
-[162]    0.3    0.01    0.10 1205451         alliedfaction [162]
-                0.07    0.02 1205451/10375491     alliedgroup [34]
------------------------------------------------
-                0.00    0.00    9680/1188532     bewegung_blockiert_von [631]
-                0.00    0.00    9999/1188532     cansee_unit [684]
-                0.00    0.02  208440/1188532     cansee_durchgezogen [170]
-                0.02    0.07  960413/1188532     cansee [22]
-[163]    0.3    0.02    0.09 1188532         eff_stealth [163]
-                0.03    0.05 1188531/12320804     effskill <cycle 1> [100]
-                0.00    0.00 1188531/21345834     skill_enabled [365]
-                0.00    0.00    4846/8034        u_geteffstealth [919]
------------------------------------------------
-                0.03    0.08 10375461/10375461     alliedgroup [34]
-[164]    0.3    0.03    0.08 10375461         AllianceRestricted [164]
-                0.01    0.03 10375461/10383360     HelpMask [288]
-                0.01    0.02 10375461/20777534     config_get [224]
------------------------------------------------
-                0.02    0.08  742235/742235      random_neighbour [153]
-[165]    0.3    0.02    0.08  742235         room_for_race_in_region [165]
-                0.08    0.00 34058224/129167539     u_race [89]
------------------------------------------------
-                0.00    0.10  353422/353422      hits [131]
-[166]    0.3    0.00    0.10  353422         skilldiff [166]
-                0.02    0.07  706844/860166      weapon_effskill [168]
-                0.00    0.01  463903/71815034     get_race [12]
-                0.00    0.00   11599/11599       building_protection [708]
-                0.00    0.00  464187/129167539     u_race [89]
-                0.00    0.00       3/12246335     ct_find [114]
-                0.00    0.00       3/10190660     get_curse [143]
-                0.00    0.00       3/4201030     curse_active [543]
-                0.00    0.00  706844/1218663     select_weapon [1367]
------------------------------------------------
-                0.01    0.09  610341/610341      cr_output_unit [19]
-[167]    0.3    0.01    0.09  610341         stream_order [167]
-                0.01    0.07  610341/1470505     write_order [121]
-                0.01    0.00  610341/618305      escape_string [556]
-                0.01    0.00  610341/10103290     stream_printf [158]
------------------------------------------------
-                0.00    0.01  153322/860166      terminate [242]
-                0.02    0.07  706844/860166      skilldiff [166]
-[168]    0.3    0.02    0.08  860166         weapon_effskill [168]
-                0.01    0.05  489652/546579      weapon_skill [221]
-                0.00    0.01  120592/137709      CavalryBonus [491]
-                0.00    0.01  116873/12320804     skillmod <cycle 1> [214]
-                0.00    0.00  116873/7417541     urace [436]
-                0.00    0.00 1601194/1726748     is_riding [1358]
------------------------------------------------
-                0.00    0.10 1048274/1048274     travelthru_map [41]
-[169]    0.3    0.00    0.10 1048274         cb_write_travelthru [169]
-                0.01    0.04 1028195/1996097     travelthru_cansee [180]
-                0.02    0.00   55063/2742237     paragraph [26]
-                0.00    0.02  435946/1065211     shipname [290]
-                0.00    0.01  159282/2383101     unitname [142]
-                0.00    0.00   35368/24887945     locale_string [27]
------------------------------------------------
-                0.01    0.03  613860/1747682     count_cb [231]
-                0.02    0.05 1133822/1747682     travelthru_cansee [180]
-[170]    0.3    0.03    0.07 1747682         cansee_durchgezogen [170]
-                0.00    0.02  208440/1188532     eff_stealth [163]
-                0.00    0.02  218268/1753922     invisible [139]
-                0.00    0.02 1394913/6610983     is_guard [211]
-                0.00    0.01  172836/12320804     effskill <cycle 1> [100]
-                0.00    0.00 1747682/129167539     u_race [89]
-                0.00    0.00 1394913/4835422     usiege [593]
------------------------------------------------
-                0.00    0.00       1/7641081     select_familiar [1322]
-                0.00    0.00       1/7641081     breedtrees [1148]
-                0.00    0.00       1/7641081     use_bloodpotion [935]
-                0.00    0.00       2/7641081     sp_charmingsong [993]
-                0.00    0.00       3/7641081     select_wormhole_regions [909]
-                0.00    0.00       6/7641081     randomevents [91]
-                0.00    0.00       6/7641081     rrandneighbour [1221]
-                0.00    0.00      10/7641081     do_fumble [1062]
-                0.00    0.00      12/7641081     volcano_destruction [1022]
-                0.00    0.00      13/7641081     newcontainerid [1263]
-                0.00    0.00      15/7641081     drift_target [1053]
-                0.00    0.00      15/7641081     random_unit [1174]
-                0.00    0.00      21/7641081     do_combatspell [702]
-                0.00    0.00      24/7641081     equip_unit_mask [776]
-                0.00    0.00      25/7641081     treeman_neighbour [1201]
-                0.00    0.00      27/7641081     nrand [1232]
-                0.00    0.00      29/7641081     select_ally [1132]
-                0.00    0.00      29/7641081     move_icebergs [534]
-                0.00    0.00      36/7641081     expandloot [816]
-                0.00    0.00      37/7641081     move_iceberg [1094]
-                0.00    0.00      48/7641081     chaosterrain [1213]
-                0.00    0.00      60/7641081     do_recruiting [351]
-                0.00    0.00      83/7641081     fumble [973]
-                0.00    0.00      92/7641081     dragon_name [1095]
-                0.00    0.00     112/7641081     attack_firesword [785]
-                0.00    0.00     116/7641081     terraform_default [1165]
-                0.00    0.00     170/7641081     use_default [1149]
-                0.00    0.00     176/7641081     default_spoil [1144]
-                0.00    0.00     182/7641081     age_firedragon [1123]
-                0.00    0.00     208/7641081     dracoid_name [1126]
-                0.00    0.00     290/7641081     scramble_fighters [1116]
-                0.00    0.00     295/7641081     age_dragon [1098]
-                0.00    0.00     298/7641081     terraform_region [932]
-                0.00    0.00     360/7641081     plan_dragon [273]
-                0.00    0.00     412/7641081     piracy_cmd [660]
-                0.00    0.00     503/7641081     expandwork [277]
-                0.00    0.00     588/7641081     make_name [970]
-                0.00    0.00     598/7641081     makename [1084]
-                0.00    0.00     648/7641081     volcano_update [981]
-                0.00    0.00     653/7641081     age_ghoul [1024]
-                0.00    0.00     665/7641081     age_zombie [1019]
-                0.00    0.00     725/7641081     age_skeleton [1008]
-                0.00    0.00    1279/7641081     scale_number [969]
-                0.00    0.00    1281/7641081     leveled_allocation [888]
-                0.00    0.00    1596/7641081     attrib_allocation [914]
-                0.00    0.00    1918/7641081     spawn_braineaters [505]
-                0.00    0.00    2126/7641081     dissolve_units [241]
-                0.00    0.00    2204/7641081     loot_items [810]
-                0.00    0.00    2818/7641081     newunitid [319]
-                0.00    0.00    3890/7641081     chaos [848]
-                0.00    0.00    9552/7641081     spawn_undead [629]
-                0.00    0.00   11021/7641081     drain_exp [850]
-                0.00    0.00   11540/7641081     absorbed_by_monster [804]
-                0.00    0.00   13338/7641081     terminate [242]
-                0.00    0.00   17902/7641081     make_fighter [424]
-                0.00    0.00   18025/7641081     chaos_update [514]
-                0.00    0.00   18444/7641081     demon_skillchange [826]
-                0.00    0.00   33436/7641081     scareaway [768]
-                0.00    0.00   39919/7641081     sail [181]
-                0.00    0.00   41004/7641081     dice [787]
-                0.00    0.00   47310/7641081     attack [84]
-                0.00    0.00   60896/7641081     breedhorses [742]
-                0.00    0.00   83698/7641081     random_neighbour [153]
-                0.00    0.00  139786/7641081     spawn_dragons [411]
-                0.00    0.00  204245/7641081     term_eval [410]
-                0.00    0.00  317467/7641081     monster_learn [269]
-                0.00    0.00  325282/7641081     eaten_by_monster [468]
-                0.00    0.00  325825/7641081     scared_by_monster [380]
-                0.00    0.00  361320/7641081     growing_trees [624]
-                0.00    0.00  372078/7641081     select_enemy [172]
-                0.00    0.00  373896/7641081     contest_classic [655]
-                0.00    0.00  403488/7641081     lovar [644]
-                0.00    0.01  479588/7641081     learn_skill [471]
-                0.00    0.01  889716/7641081     skill_weeks [509]
-                0.01    0.03 3017598/7641081     growing_herbs [300]
-[171]    0.3    0.02    0.08 7641081         genrand_int31 [171]
-                0.08    0.00 7641081/11253756     genrand_int32 [150]
------------------------------------------------
-                0.00    0.00      45/372173      sp_kampfzauber [957]
-                0.00    0.00     580/372173      attack_firesword [785]
-                0.00    0.00    1100/372173      loot_items [810]
-                0.00    0.00    7313/372173      sp_dragonodem [627]
-                0.03    0.07  363135/372173      select_opponent [160]
-[172]    0.3    0.03    0.07  372173         select_enemy [172]
-                0.01    0.05  861193/1662377     get_unitrow [154]
-                0.00    0.00  372078/7641081     genrand_int31 [171]
-                0.00    0.00  372173/876979      count_enemies [611]
-                0.00    0.00 1405349/4301501     statusrow [550]
-                0.00    0.00  372173/129167539     u_race [89]
------------------------------------------------
-                0.03    0.07  490896/490896      wage [174]
-[173]    0.3    0.03    0.07  490896         default_wage [173]
-                0.01    0.02  169490/184870      buildingeffsize [367]
-                0.01    0.00 1041773/10190660     get_curse [143]
-                0.01    0.00  733941/12246335     ct_find [114]
-                0.00    0.01  490896/490901      largestbuilding [651]
-                0.00    0.00  125515/71815034     get_race [12]
-                0.00    0.00  396300/1106528     is_building_type [554]
-                0.00    0.00  307833/51974272     a_find [65]
-                0.00    0.00  615666/4201030     curse_active [543]
-                0.00    0.00  490896/5152236     ct_changed [592]
-                0.00    0.00  426107/508632      rule_blessed_harvest [1327]
-                0.00    0.00  426107/515192      is_mourning [1392]
-                0.00    0.00  426107/432940      curse_geteffect [1395]
------------------------------------------------
-                0.00    0.00   10477/490896      report_template [87]
-                0.00    0.00   10979/490896      do_work [612]
-                0.00    0.01   32354/490896      statistics [70]
-                0.00    0.01   32670/490896      demographics [50]
-                0.00    0.01   36929/490896      cr_output_region [10]
-                0.00    0.04  178254/490896      immigration [294]
-                0.00    0.04  189233/490896      expandwork [277]
-[174]    0.3    0.00    0.10  490896         wage [174]
-                0.03    0.07  490896/490896      default_wage [173]
------------------------------------------------
-                0.01    0.01  447808/1929215     create_order [341]
-                0.04    0.04 1481407/1929215     parse_order [117]
-[175]    0.3    0.05    0.05 1929215         create_order_i [175]
-                0.02    0.03 1929215/1929215     create_data [252]
-                0.00    0.00 1929215/2124526     locale_index [1354]
-                0.00    0.00 1207012/11194781     keyword_disabled [1348]
------------------------------------------------
-                0.00    0.00      78/13102790     eval_weight [1102]
-                0.00    0.00     108/13102790     eval_add [1182]
-                0.00    0.00     124/13102790     eval_unit_dative [1076]
-                0.00    0.00     326/13102790     eval_lt [539]
-                0.00    0.00     604/13102790     eval_spell [961]
-                0.00    0.00     834/13102790     eval_resources [907]
-                0.00    0.00    1196/13102790     eval_localize [922]
-                0.00    0.00    3040/13102790     eval_race [882]
-                0.00    0.00   19545/13102790     eval_ship [740]
-                0.00    0.00   25857/13102790     eval_int36 [729]
-                0.00    0.00   40099/13102790     eval_skill [671]
-                0.00    0.00   46224/13102790     eval_faction [685]
-                0.00    0.00   67213/13102790     eval_building [494]
-                0.00    0.00  108560/13102790     eval_trail [634]
-                0.00    0.00  116804/13102790     eval_isnull [517]
-                0.00    0.00  123513/13102790     eval_order [472]
-                0.00    0.00  127674/13102790     eval_trailto [369]
-                0.00    0.00  127788/13102790     eval_direction [608]
-                0.00    0.00  515550/13102790     eval_region [245]
-                0.01    0.00  799427/13102790     eval_unit [223]
-                0.01    0.00  883617/13102790     eval_int [268]
-                0.01    0.00  941058/13102790     eval_resource [328]
-                0.01    0.00 1311128/13102790     eval_eq [398]
-                0.01    0.00 1380398/13102790     translate [28]
-                0.02    0.00 2530635/13102790     eval_if [393]
-                0.03    0.00 3931390/13102790     parse_string <cycle 5> [86]
-[176]    0.3    0.10    0.00 13102790         opstack_pop [176]
------------------------------------------------
-                0.00    0.00     130/46391457     transliterate [358]
-                0.00    0.00     248/46391457     unicode_utf8_strcasecmp [1216]
-                0.00    0.00    5132/46391457     eatwhitespace_c [255]
-                0.00    0.00   85158/46391457     parse_token [125]
-                0.00    0.00  176717/46391457     addtoken [811]
-                0.00    0.00 1232688/46391457     findtoken [501]
-                0.01    0.00 6696209/46391457     eatwhite [243]
-                0.08    0.00 38195175/46391457     getbuf_utf8 [72]
-[177]    0.3    0.10    0.00 46391457         unicode_utf8_to_ucs4 [177]
------------------------------------------------
-                0.00    0.00      15/36653945     sp_summon_familiar [1025]
-                0.00    0.00     191/36653945     follow_ship [749]
-                0.00    0.00     456/36653945     display_race [963]
-                0.00    0.00     527/36653945     make_movement_order [522]
-                0.00    0.00    1490/36653945     eval_resources [907]
-                0.00    0.00    5871/36653945     report_plaintext [4]
-                0.00    0.00    7912/36653945     nr_spell_syntax [732]
-                0.00    0.00   12000/36653945     nr_spell [507]
-                0.00    0.00   19276/36653945     eval_trail [634]
-                0.00    0.00   97114/36653945     guards [229]
-                0.00    0.00  107804/36653945     report_template [87]
-                0.00    0.00  216694/36653945     racename [133]
-                0.00    0.00  293954/36653945     show_allies [429]
-                0.00    0.00  373665/36653945     nr_building [141]
-                0.00    0.00  425391/36653945     create_order [341]
-                0.00    0.00  743981/36653945     nr_ship [111]
-                0.00    0.00  776314/36653945     prices [85]
-                0.01    0.00 1958340/36653945     spskill [53]
-                0.01    0.00 3889315/36653945     get_command [108]
-                0.01    0.00 4194164/36653945     describe [35]
-                0.02    0.00 6078454/36653945     bufunit [17]
-                0.05    0.00 17451017/36653945     strlcpy_w [67]
-[178]    0.3    0.10    0.00 36653945         wrptr [178]
------------------------------------------------
-                0.03    0.01 9004040/20834979     alliedunit [31]
-                0.05    0.01 11830939/20834979     alliedgroup [34]
-[179]    0.3    0.08    0.02 20834979         autoalliance [179]
-                0.02    0.00 20834975/20836359     f_get_alliance [455]
------------------------------------------------
-                0.00    0.00   94066/1996097     cb_cr_travelthru_unit [466]
-                0.01    0.03  873836/1996097     cb_cr_travelthru_ship [204]
-                0.01    0.04 1028195/1996097     cb_write_travelthru [169]
-[180]    0.3    0.02    0.08 1996097         travelthru_cansee [180]
-                0.02    0.05 1133822/1747682     cansee_durchgezogen [170]
-                0.01    0.00 1731771/3358315     ship_owner [438]
------------------------------------------------
-                0.01    0.09    7255/7255        move_cmd [66]
-[181]    0.3    0.01    0.09    7255         sail [181]
-                0.00    0.03    7254/7254        ship_ready [354]
-                0.02    0.01    6947/6963        move_ship [374]
-                0.00    0.00   39714/300501      move_blocked [283]
-                0.00    0.01   42665/252446      movewhere [350]
-                0.00    0.00   39731/39810       check_ship_allowed [657]
-                0.00    0.00   47093/66134       shipspeed [669]
-                0.00    0.00    6947/103187      cycle_route [375]
-                0.00    0.00    6947/12933       owner_buildingtyp [676]
-                0.00    0.00   42665/54318       getstrtoken [710]
-                0.00    0.00    7042/967784      msg_message [132]
-                0.00    0.00    6947/560926      bt_find [237]
-                0.00    0.00   39858/12246335     ct_find [114]
-                0.00    0.00   39926/39926       check_leuchtturm [786]
-                0.00    0.00   39919/7641081     genrand_int31 [171]
-                0.00    0.00   39858/10190660     get_curse [143]
-                0.00    0.00    7043/392959      add_message [434]
-                0.00    0.00    4325/4361        can_takeoff [854]
-                0.00    0.00    6947/6962        set_coast [875]
-                0.00    0.00    1613/9953180     alliedunit [31]
-                0.00    0.00   39858/4201030     curse_active [543]
-                0.00    0.00   14510/4984610     config_get_int [348]
-                0.00    0.00    7273/717218      config_get_flt [714]
-                0.00    0.00     191/324         caught_target [1003]
-                0.00    0.00     112/15102       cmistake [718]
-                0.00    0.00     951/955         movement_error [1193]
-                0.00    0.00       8/369586      r_connect [474]
-                0.00    0.00       4/12320804     effskill <cycle 1> [100]
-                0.00    0.00   39909/44216       flying_ship [1465]
-                0.00    0.00   39904/40692       get_gamedate [1466]
-                0.00    0.00   39714/192815      add_regionlist [1419]
-                0.00    0.00    7043/1009028     msg_release [1373]
-                0.00    0.00    6947/1291427     set_order [1365]
-                0.00    0.00     149/651711      oldcursename [1381]
-                0.00    0.00      29/160         damage_ship [1641]
------------------------------------------------
-                0.00    0.09     799/799         process [7]
-[182]    0.3    0.00    0.09     799         setstealth_cmd [182]
-                0.01    0.08     150/150         set_factionstealth [183]
-                0.00    0.00     209/40046       rule_stealth_other [530]
-                0.00    0.00    1238/2281756     gettoken [195]
-                0.00    0.00     231/338         findrace [1030]
-                0.00    0.00     209/1481616     get_keyword [274]
-                0.00    0.00     799/1027665     init_order [613]
-                0.00    0.00     209/688711      atoi36 [440]
-                0.00    0.00     461/1787006     findparam [458]
-                0.00    0.00     150/4625636     findfaction [259]
-                0.00    0.00     569/569         u_seteffstealth [1199]
-                0.00    0.00     231/21345834     skill_enabled [365]
-                0.00    0.00       2/12320804     effskill <cycle 1> [100]
-                0.00    0.00      59/178429      a_removeall [958]
-                0.00    0.00     230/154110      rule_stealth_anon [1325]
------------------------------------------------
-                0.01    0.08     150/150         setstealth_cmd [182]
-[183]    0.3    0.01    0.08     150         set_factionstealth [183]
-                0.00    0.08  856373/4374788     visible_faction [68]
-                0.00    0.00     109/1437425     cansee [22]
-                0.00    0.00     104/51974272     a_find [65]
-                0.00    0.00       2/779419      a_add [555]
-                0.00    0.00       2/433         make_otherfaction [1603]
------------------------------------------------
-                0.02    0.07  313244/313244      plan_monsters [52]
-[184]    0.3    0.02    0.07  313244         check_overpopulated [184]
-                0.07    0.00 29944440/129167539     u_race [89]
------------------------------------------------
-                0.04    0.05       1/1           processorders [6]
-[185]    0.3    0.04    0.05       1         ageing [185]
-                0.02    0.01 1190908/2858912     get_effect [225]
-                0.01    0.00  614764/839202      a_age [418]
-                0.00    0.00  178254/178254      age_region [659]
-                0.00    0.00   94865/12246335     ct_find [114]
-                0.00    0.00   46184/46184       age_building [712]
-                0.00    0.00   94865/10190660     get_curse [143]
-                0.00    0.00   94865/4201030     curse_active [543]
-                0.00    0.00  178254/1613387     rule_region_owners [1323]
-                0.00    0.00  614764/1342832     handle_event [1363]
-                0.00    0.00   94865/651711      oldcursename [1381]
-                0.00    0.00       1/1           age_borders [1789]
------------------------------------------------
-                0.00    0.02 1841323/8452306     is_guarded [377]
-                0.02    0.06 6610983/8452306     is_guard [211]
-[186]    0.3    0.02    0.07 8452306         is_guardian_r [186]
-                0.01    0.05  403766/771861      armedmen [151]
-                0.01    0.00 8451974/8506411     besieged [547]
-                0.00    0.00    3241/129167539     u_race [89]
-                0.00    0.00  913774/1613387     rule_region_owners [1323]
------------------------------------------------
-                0.00    0.00       9/7120688     destroyfaction [392]
-                0.00    0.00      43/7120688     plan_dragon [273]
-                0.00    0.00     752/7120688     monster_attacks [248]
-                0.00    0.00   11448/7120688     all_money [529]
-                0.00    0.00   45033/7120688     report_template [87]
-                0.00    0.00  106798/7120688     help_feed [678]
-                0.00    0.00  174965/7120688     cr_output_unit [19]
-                0.01    0.00 1191719/7120688     score [23]
-                0.02    0.00 1543013/7120688     make_summary [21]
-                0.05    0.01 4046908/7120688     get_food [88]
-[187]    0.3    0.08    0.01 7120688         get_money [187]
-                0.01    0.00 7120688/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00  102149/50553492     cr_output_region [10]
-                0.04    0.00 21341107/50553492     report_plaintext [4]
-                0.05    0.00 29110236/50553492     get_addresses [20]
-[188]    0.3    0.09    0.00 50553492         stealth_modifier [188]
------------------------------------------------
-                0.09    0.00 1390078/1390078     get_unitrow [154]
-[189]    0.3    0.09    0.00 1390078         get_row [189]
------------------------------------------------
-                0.00    0.00       1/1248014     report_summary [614]
-                0.00    0.00       1/1248014     write_planes [1207]
-                0.00    0.00     232/1248014     writefaction [762]
-                0.04    0.00  534764/1248014     write_game [83]
-                0.05    0.00  713016/1248014     make_summary [21]
-[190]    0.3    0.09    0.00 1248014         listlen [190]
------------------------------------------------
-                0.09    0.00  297222/297222      render_messages [58]
-[191]    0.3    0.09    0.00  297222         fwritestr [191]
------------------------------------------------
-                                                 <spontaneous>
-[192]    0.3    0.09    0.00                 qli_more [192]
------------------------------------------------
-                0.00    0.00     224/2624955     give_unit [952]
-                0.00    0.00     589/2624955     study_cmd [105]
-                0.00    0.00     659/2624955     can_give_men [940]
-                0.00    0.00    1758/2624955     give_men [857]
-                0.00    0.00    3340/2624955     recruit [650]
-                0.00    0.00    5253/2624955     count_skill [868]
-                0.01    0.00  187111/2624955     orc_growth [370]
-                0.08    0.00 2426021/2624955     get_mage [198]
-[193]    0.3    0.09    0.00 2624955         has_skill [193]
------------------------------------------------
-                0.00    0.00       1/56052475     sp_seduce [1336]
-                0.00    0.00       1/56052475     plant [1184]
-                0.00    0.00       1/56052475     planttrees [1206]
-                0.00    0.00       1/56052475     promotion_cmd [917]
-                0.00    0.00       2/56052475     breedtrees [1148]
-                0.00    0.00       2/56052475     make_summary [21]
-                0.00    0.00       5/56052475     set_money [1326]
-                0.00    0.00      41/56052475     expandstealing [807]
-                0.00    0.00      55/56052475     build_road [950]
-                0.00    0.00      99/56052475     report_template [87]
-                0.00    0.00     111/56052475     steal_cmd [766]
-                0.00    0.00     112/56052475     give_unit [952]
-                0.00    0.00     124/56052475     age_stonecircle [1021]
-                0.00    0.00     174/56052475     breedhorses [742]
-                0.00    0.00     251/56052475     eff_spelllevel [845]
-                0.00    0.00     251/56052475     cancast [833]
-                0.00    0.00     273/56052475     pay_spell [805]
-                0.00    0.00     404/56052475     academy_can_teach [527]
-                0.00    0.00     505/56052475     mm_smithy [1203]
-                0.00    0.00     521/56052475     breed_cmd [741]
-                0.00    0.00     767/56052475     spellcost [995]
-                0.00    0.00    1356/56052475     build [691]
-                0.00    0.00    3335/56052475     region_setresource [1097]
-                0.00    0.00    3340/56052475     do_recruiting [351]
-                0.00    0.00    3359/56052475     recruit [650]
-                0.00    0.00    3606/56052475     gift_items [891]
-                0.00    0.00    3891/56052475     make_fighter [424]
-                0.00    0.00    5494/56052475     expandbuying [49]
-                0.00    0.00    5877/56052475     allocate_resource [752]
-                0.00    0.00    6714/56052475     region_getresource [1058]
-                0.00    0.00    7957/56052475     magic_resistance [727]
-                0.00    0.00    9680/56052475     bewegung_blockiert_von [631]
-                0.00    0.00   15296/56052475     study_cmd [105]
-                0.00    0.00   83871/56052475     reduce_weight [404]
-                0.00    0.00   93119/56052475     limited_give [879]
-                0.00    0.00   96621/56052475     describe [35]
-                0.00    0.00  279395/56052475     weight [459]
-                0.00    0.00  325282/56052475     eaten_by_monster [468]
-                0.00    0.00  350742/56052475     horse_fleeing_bonus [604]
-                0.00    0.00  566190/56052475     invisible [139]
-                0.00    0.00  577668/56052475     canride [465]
-                0.00    0.00 2599554/56052475     change_money [337]
-                0.01    0.00 3502404/56052475     item_invis [149]
-                0.01    0.00 7120688/56052475     get_money [187]
-                0.01    0.00 9703478/56052475     get_reservation [281]
-                0.02    0.00 12353561/56052475     report_item [106]
-                0.03    0.00 18326296/56052475     golem_factor [265]
-[194]    0.2    0.09    0.00 56052475         get_resourcetype [194]
-                0.00    0.00  310783/2032164     rt_find [597]
------------------------------------------------
-                0.00    0.00       1/2281756     destroy_road [1230]
-                0.00    0.00       3/2281756     claim_cmd [1242]
-                0.00    0.00       6/2281756     send_cmd [1202]
-                0.00    0.00      12/2281756     forget_cmd [1093]
-                0.00    0.00      20/2281756     restack_units [353]
-                0.00    0.00      38/2281756     destroy_cmd [1113]
-                0.00    0.00     100/2281756     combatspell_cmd [898]
-                0.00    0.00     179/2281756     breed_cmd [741]
-                0.00    0.00     241/2281756     reshow_cmd [818]
-                0.00    0.00     250/2281756     renumber_cmd [780]
-                0.00    0.00     262/2281756     defaultorders [249]
-                0.00    0.00     286/2281756     factionorders [983]
-                0.00    0.00     348/2281756     mail_cmd [844]
-                0.00    0.00     378/2281756     recruit [650]
-                0.00    0.00     395/2281756     cast_cmd [760]
-                0.00    0.00     639/2281756     do_enter [128]
-                0.00    0.00     677/2281756     ally_cmd [877]
-                0.00    0.00     754/2281756     new_units [282]
-                0.00    0.00     900/2281756     use_cmd [763]
-                0.00    0.00    1238/2281756     setstealth_cmd [182]
-                0.00    0.00    1700/2281756     status_cmd [904]
-                0.00    0.00    2013/2281756     display_cmd [859]
-                0.00    0.00    3117/2281756     name_cmd [835]
-                0.00    0.00    5762/2281756     buy [707]
-                0.00    0.00   15176/2281756     make_cmd [383]
-                0.00    0.00   31531/2281756     sell [498]
-                0.00    0.00   57138/2281756     getint [699]
-                0.00    0.00   69432/2281756     getparam [681]
-                0.00    0.00  131765/2281756     give_control_cmd [287]
-                0.00    0.00  142423/2281756     cycle_route [375]
-                0.00    0.00  142776/2281756     reserve_i [213]
-                0.00    0.01  209781/2281756     make_route [289]
-                0.00    0.01  228907/2281756     getid [483]
-                0.00    0.01  231035/2281756     give_cmd [102]
-                0.00    0.01  283446/2281756     readorders [43]
-                0.00    0.01  284005/2281756     read_unitid [413]
-                0.00    0.01  435022/2281756     getskill [387]
-[195]    0.2    0.01    0.08 2281756         gettoken [195]
-                0.06    0.02 2281756/5387327     parse_token [125]
------------------------------------------------
-                0.01    0.07  301257/301257      render_messages [58]
-[196]    0.2    0.01    0.07  301257         cr_render [196]
-                0.03    0.01  301257/301257      crt_find [321]
-                0.00    0.01  110167/110167      cr_resource [488]
-                0.01    0.00   41095/41095       cr_order [489]
-                0.00    0.00  133873/133873      cr_region [662]
-                0.00    0.00   20072/20072       cr_skill [672]
-                0.00    0.00   12407/12407       cr_regions [840]
-                0.00    0.00     356/356         cr_race [949]
-                0.00    0.00     210/210         cr_resources [960]
-                0.00    0.00     279/279         cr_spell [1026]
-                0.00    0.00  330438/330438      cr_unit [1403]
-                0.00    0.00  279072/279072      cr_int [1406]
-                0.00    0.00   31688/31688       cr_building [1481]
-                0.00    0.00   23233/23233       cr_faction [1493]
-                0.00    0.00   14994/14994       cr_string [1510]
-                0.00    0.00    7153/7153        cr_ship [1530]
------------------------------------------------
-                0.00    0.00      36/10852       expandloot [816]
-                0.00    0.00      41/10852       expandstealing [807]
-                0.00    0.00     663/10852       expandtax [278]
-                0.01    0.02    4628/10852       expandselling [93]
-                0.02    0.03    5484/10852       expandbuying [49]
-[197]    0.2    0.03    0.05   10852         expandorders [197]
-                0.03    0.02   10846/10846       scramble [244]
-                0.00    0.00   19315/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00       1/2426021     movement_speed [155]
-                0.00    0.00       1/2426021     spy_message [1038]
-                0.00    0.00      10/2426021     set_combatspell [1146]
-                0.00    0.00      43/2426021     unset_combatspell [1167]
-                0.00    0.00     226/2426021     fumble [973]
-                0.00    0.00     412/2426021     teach_cmd [272]
-                0.00    0.00     443/2426021     change_maxspellpoints [911]
-                0.00    0.00     524/2426021     study_cmd [105]
-                0.00    0.00    1201/2426021     change_spellpoints [971]
-                0.00    0.00    1339/2426021     get_combatspelllevel [880]
-                0.00    0.00    1717/2426021     update_spells [381]
-                0.00    0.00    1873/2426021     set_spellpoints [933]
-                0.00    0.00    2831/2426021     countspells [903]
-                0.00    0.00    4875/2426021     get_combatspell [874]
-                0.00    0.00    4915/2426021     get_spellpoints [872]
-                0.00    0.00    5358/2426021     get_spchange [862]
-                0.00    0.00    9493/2426021     spskill [53]
-                0.00    0.01  174965/2426021     cr_output_unit [19]
-                0.00    0.01  176043/2426021     faction_getmages [382]
-                0.00    0.02  597806/2426021     unit_get_spellbook [427]
-                0.00    0.05 1441945/2426021     is_mage [262]
-[198]    0.2    0.00    0.08 2426021         get_mage [198]
-                0.08    0.00 2426021/2624955     has_skill [193]
-                0.00    0.00   71414/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00     326/7910500     make_fighter [424]
-                0.00    0.00  152504/7910500     plain_name [715]
-                0.00    0.00  578591/7910500     heal_factor [619]
-                0.05    0.03 7179079/7910500     rc_skillmod [140]
-[199]    0.2    0.05    0.03 7910500         r_isforest [199]
-                0.03    0.00 8199466/10053919     rtrees [302]
------------------------------------------------
-                0.00    0.00      18/1552289     dragon_name [1095]
-                0.00    0.00      39/1552289     random_growl [1065]
-                0.00    0.00   10477/1552289     report_template [87]
-                0.00    0.00   77909/1552289     cr_output_region [10]
-                0.01    0.02  513251/1552289     write_regionname [280]
-                0.01    0.04  950595/1552289     f_regionid [161]
-[200]    0.2    0.02    0.06 1552289         rname [200]
-                0.02    0.02  751188/24887945     locale_string [27]
-                0.00    0.02  752225/1874928     terrain_name [226]
------------------------------------------------
-                0.00    0.08  494960/494960      bufunit [17]
-[201]    0.2    0.00    0.08  494960         buforder [201]
-                0.01    0.04  494960/2006524     get_command [108]
-                0.00    0.02  989920/17451017     strlcpy_w [67]
------------------------------------------------
-                0.00    0.00      54/13102790     eval_add [1182]
-                0.00    0.00      78/13102790     eval_weight [1102]
-                0.00    0.00     124/13102790     eval_unit_dative [1076]
-                0.00    0.00     163/13102790     eval_lt [539]
-                0.00    0.00     604/13102790     eval_spell [961]
-                0.00    0.00     834/13102790     eval_resources [907]
-                0.00    0.00    1196/13102790     eval_localize [922]
-                0.00    0.00    1520/13102790     eval_race [882]
-                0.00    0.00   19545/13102790     eval_ship [740]
-                0.00    0.00   25857/13102790     eval_int36 [729]
-                0.00    0.00   40099/13102790     eval_skill [671]
-                0.00    0.00   46224/13102790     eval_faction [685]
-                0.00    0.00   67213/13102790     eval_building [494]
-                0.00    0.00  108560/13102790     eval_trail [634]
-                0.00    0.00  116804/13102790     eval_isnull [517]
-                0.00    0.00  123513/13102790     eval_order [472]
-                0.00    0.00  127674/13102790     eval_trailto [369]
-                0.00    0.00  127788/13102790     eval_direction [608]
-                0.00    0.00  470529/13102790     eval_resource [328]
-                0.00    0.00  515550/13102790     eval_region [245]
-                0.00    0.00  655564/13102790     eval_eq [398]
-                0.00    0.00  799427/13102790     eval_unit [223]
-                0.01    0.00  832876/13102790     parse_int [649]
-                0.01    0.00  843545/13102790     eval_if [393]
-                0.01    0.00  883617/13102790     eval_int [268]
-                0.02    0.00 2725583/13102790     parse_string <cycle 5> [86]
-                0.03    0.00 4568249/13102790     parse_symbol <cycle 5> [42]
-[202]    0.2    0.08    0.00 13102790         opstack_push [202]
------------------------------------------------
-                0.03    0.00 2506526/7252744     ql_set_find_ex [373]
-                0.05    0.00 4746218/7252744     ql_set_insert_ex [156]
-[203]    0.2    0.08    0.00 7252744         cmp_transfer [203]
------------------------------------------------
-                0.02    0.06  967902/967902      travelthru_map [41]
-[204]    0.2    0.02    0.06  967902         cb_cr_travelthru_ship [204]
-                0.01    0.03  873836/1996097     travelthru_cansee [180]
-                0.00    0.02  434165/1065211     shipname [290]
------------------------------------------------
-                0.00    0.00      16/282847      spy_cmd [990]
-                0.00    0.00      65/282847      travel_i [92]
-                0.00    0.00      70/282847      transport [1011]
-                0.00    0.00     145/282847      init_transportation [384]
-                0.00    0.00    1487/282847      start_battle [297]
-                0.00    0.00   17577/282847      teach_cmd [272]
-                0.00    0.04  131722/282847      give_cmd [102]
-                0.00    0.04  131765/282847      give_control_cmd [287]
-[205]    0.2    0.00    0.08  282847         getunit [205]
-                0.00    0.06  282468/888603      findunit [123]
-                0.00    0.02  282847/284005      read_unitid [413]
------------------------------------------------
-                0.00    0.02  174965/773191      cr_output_unit [19]
-                0.00    0.06  598226/773191      bufunit [17]
-[206]    0.2    0.00    0.08  773191         hp_status [206]
-                0.01    0.07  773191/1381157     unit_max_hp [136]
-                0.00    0.00    8974/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00   19276/785221      eval_trail [634]
-                0.00    0.01  127674/785221      eval_trailto [369]
-                0.00    0.06  638271/785221      describe [35]
-[207]    0.2    0.00    0.08  785221         trailinto [207]
-                0.02    0.02  785221/24887945     locale_string [27]
-                0.00    0.02  785221/1874928     terrain_name [226]
-                0.01    0.00  785221/34611296     strlcpy [45]
-                0.00    0.00  785221/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.08  607926/607926      write_unit [97]
-[208]    0.2    0.00    0.08  607926         writeorder [208]
-                0.01    0.07  607926/1470505     write_order [121]
------------------------------------------------
-                0.00    0.08  178254/178254      read_game [62]
-[209]    0.2    0.00    0.08  178254         readregion [209]
-                0.00    0.05  178254/178254      new_region [275]
-                0.01    0.00   32679/32727       rsetherbtype [537]
-                0.00    0.01  178254/459083      findregion [420]
-                0.00    0.01  178254/840577      read_attribs [388]
-                0.00    0.00  178254/1206547     findplane [457]
-                0.00    0.00   32679/628037      read_items [320]
-                0.00    0.00   32679/264251      rsetpeasants [545]
-                0.00    0.00  249361/2032164     rt_find [597]
-                0.00    0.00   32679/2186159     rsetmoney [553]
-                0.00    0.00  217392/217405      r_setdemand [1413]
-                0.00    0.00  178254/178311      region_setinfo [1422]
-                0.00    0.00  178254/178270      get_terrain [1423]
-                0.00    0.00   98037/229715      rsettrees [1410]
-                0.00    0.00   32679/257693      rsethorses [1408]
-                0.00    0.00   32679/101322      rsetherbs [1438]
-                0.00    0.00   32679/32727       region_set_morale [1476]
-                0.00    0.00   32679/32679       read_owner [1477]
-                0.00    0.00   25441/25441       rmt_find [1490]
------------------------------------------------
-                0.03    0.01   45630/108211      cr_output_resources [238]
-                0.03    0.01   62581/108211      describe [35]
-[210]    0.2    0.06    0.02  108211         report_resources [210]
-                0.01    0.01  207188/12320804     effskill <cycle 1> [100]
-                0.00    0.00  182290/10053919     rtrees [302]
-                0.00    0.00   91145/2605004     rpeasants [435]
-                0.00    0.00   91145/4666665     rmoney [452]
-                0.00    0.00   59445/9298667     resource2item [546]
-                0.00    0.00  348444/348444      report_resource [1402]
-                0.00    0.00   91145/1160345     rhorses [1369]
-                0.00    0.00    7915/7915        visible_default [1525]
------------------------------------------------
-                0.00    0.00       3/6610983     destroy_road [1230]
-                0.00    0.00      10/6610983     get_money_for_dragon [1087]
-                0.00    0.00    6102/6610983     make_side [876]
-                0.00    0.00   11880/6610983     cansee_unit [684]
-                0.00    0.00   12762/6610983     plan_monsters [52]
-                0.00    0.00   36821/6610983     allocate_resource [752]
-                0.00    0.00   63046/6610983     is_guardian_u [626]
-                0.00    0.00  216875/6610983     bewegung_blockiert_von [631]
-                0.00    0.01  923633/6610983     cr_output_unit [19]
-                0.00    0.01 1211531/6610983     cansee [22]
-                0.00    0.02 1348743/6610983     bufunit [17]
-                0.00    0.02 1384664/6610983     guards [229]
-                0.00    0.02 1394913/6610983     cansee_durchgezogen [170]
-[211]    0.2    0.00    0.08 6610983         is_guard [211]
-                0.02    0.06 6610983/8452306     is_guardian_r [186]
-                0.00    0.01  329691/329691      getguard [652]
------------------------------------------------
-                0.00    0.00      15/47902       overload [1002]
-                0.02    0.00   10344/47902       cansail [469]
-                0.03    0.00   18693/47902       nr_ship [111]
-                0.03    0.00   18850/47902       cr_output_ship [152]
-[212]    0.2    0.07    0.00   47902         getshipweight [212]
-                0.00    0.00   70174/279395      weight [459]
------------------------------------------------
-                0.00    0.04   35708/71416       reserve_cmd [324]
-                0.00    0.04   35708/71416       reserve_self [325]
-[213]    0.2    0.00    0.07   71416         reserve_i [213]
-                0.01    0.05   71328/860263      use_pooled [39]
-                0.00    0.00  142776/2281756     gettoken [195]
-                0.00    0.00   68977/931076      change_resource [240]
-                0.00    0.00   31520/57138       getint [699]
-                0.00    0.00   71388/1787006     findparam [458]
-                0.00    0.00   71388/1027665     init_order [613]
-                0.00    0.00   71364/191379      finditemtype [735]
-                0.00    0.00   71390/7417541     urace [436]
-                0.00    0.00       4/8302761     get_resource [99]
-                0.00    0.00  140305/140305      set_resvalue [1430]
-                0.00    0.00   71388/203117      atoip [1416]
------------------------------------------------
-                             7179079             get_modifier <cycle 1> [55]
-                0.00    0.00     377/12320804     manufacture [759]
-                0.00    0.00    1705/12320804     build [691]
-                0.00    0.01  116873/12320804     weapon_effskill [168]
-[214]    0.2    0.01    0.06 7298034         skillmod <cycle 1> [214]
-                0.06    0.00 7298034/51974272     a_find [65]
-                0.00    0.00       8/8           mod_elves_only [1239]
-                0.00    0.00     248/248         sm_smithy [1613]
-                               65155             sm_familiar <cycle 1> [520]
------------------------------------------------
-                0.00    0.07       1/1           process [7]
-[215]    0.2    0.00    0.07       1         monthly_healing [215]
-                0.00    0.06  595454/1381157     unit_max_hp [136]
-                0.00    0.01  578591/578591      heal_factor [619]
-                0.00    0.00  595144/129167539     u_race [89]
-                0.00    0.00   91176/10190660     get_curse [143]
-                0.00    0.00    5206/560926      bt_find [237]
-                0.00    0.00    7542/47287       canswim [682]
-                0.00    0.00    5206/424669      active_building [560]
-                0.00    0.00    2988/752645      chance [495]
-                0.00    0.00       1/12246335     ct_find [114]
------------------------------------------------
-                                                 <spontaneous>
-[216]    0.2    0.07    0.00                 bin_r_str_buf [216]
------------------------------------------------
-                0.00    0.00       2/760673      new_ship [1229]
-                0.00    0.00      13/760673      read_planes [1164]
-                0.00    0.00      17/760673      recruit_dracoids [837]
-                0.00    0.00      42/760673      loot_cmd [873]
-                0.00    0.00      59/760673      steal_cmd [766]
-                0.00    0.00     232/760673      defaultorders [249]
-                0.00    0.00     406/760673      faction_setorigin [979]
-                0.00    0.00     736/760673      monster_attacks [248]
-                0.00    0.00     948/760673      tax_cmd [697]
-                0.00    0.00    1670/760673      recruit [650]
-                0.00    0.00    2889/760673      move_unit [421]
-                0.00    0.00    2889/760673      create_unit [296]
-                0.00    0.00    5757/760673      buy [707]
-                0.00    0.00    7630/760673      addstrlist [769]
-                0.00    0.00   12520/760673      sell [498]
-                0.01    0.00  113844/760673      translist [430]
-                0.02    0.00  178254/760673      new_region [275]
-                0.04    0.00  432765/760673      plan_monsters [52]
-[217]    0.2    0.07    0.00  760673         addlist [217]
------------------------------------------------
-                                                 <spontaneous>
-[218]    0.2    0.07    0.00                 bin_w_int_pak [218]
------------------------------------------------
-                0.00    0.00      45/2247        count_migrants [731]
-                0.01    0.00     481/2247        count_units [487]
-                0.02    0.00     754/2247        checkunitnumber [402]
-                0.03    0.00     967/2247        count_all [357]
-[219]    0.2    0.06    0.01    2247         count_faction [219]
-                0.01    0.00 3891194/129167539     u_race [89]
-                0.00    0.00    2815/12246335     ct_find [114]
-                0.00    0.00    2815/10190660     get_curse [143]
-                0.00    0.00    2815/4201030     curse_active [543]
-                0.00    0.00    2815/651711      oldcursename [1381]
------------------------------------------------
-                0.00    0.02  560985/2066777     create_data [252]
-                0.00    0.05 1505792/2066777     parse_order [117]
-[220]    0.2    0.00    0.07 2066777         parse_token_depr [220]
-                0.05    0.02 2066777/5387327     parse_token [125]
------------------------------------------------
-                0.00    0.01   56927/546579      make_fighter [424]
-                0.01    0.05  489652/546579      weapon_effskill [168]
-[221]    0.2    0.01    0.06  546579         weapon_skill [221]
-                0.02    0.02  551693/12320804     effskill <cycle 1> [100]
-                0.00    0.01  236296/71815034     get_race [12]
-                0.01    0.00    2284/3147        i_canuse [569]
-                0.00    0.00 1555209/129167539     u_race [89]
------------------------------------------------
-                0.00    0.02  923633/2275429     cr_output_unit [19]
-                0.01    0.03 1351796/2275429     racename [133]
-[222]    0.2    0.01    0.06 2275429         raceprefix [222]
-                0.03    0.02 2275429/2277350     get_prefix [263]
-                0.01    0.00  847828/51974272     a_find [65]
------------------------------------------------
-                0.01    0.06  799427/799427      parse_symbol <cycle 5> [42]
-[223]    0.2    0.01    0.06  799427         eval_unit [223]
-                0.00    0.04  799425/2383101     unitname [142]
-                0.01    0.00  799427/13102790     opstack_pop [176]
-                0.00    0.00  799427/13102790     opstack_push [202]
-                0.00    0.00  799427/13399069     balloc [363]
-                0.00    0.00       2/24887945     locale_string [27]
------------------------------------------------
-                0.00    0.00       1/20777534     parse_inifile [1317]
-                0.00    0.00       2/20777534     init_locale [948]
-                0.00    0.00       2/20777534     default_order [902]
-                0.00    0.00      73/20777534     hunger_damage [1223]
-                0.00    0.00     279/20777534     MagicPower [1195]
-                0.00    0.00     462/20777534     game_name [1168]
-                0.00    0.00    1297/20777534     AllianceAuto [535]
-                0.00    0.00   16597/20777534     entertain_cmd [665]
-                0.01    0.02 10375461/20777534     AllianceRestricted [164]
-                0.01    0.02 10383360/20777534     HelpMask [288]
-[224]    0.2    0.02    0.05 20777534         config_get [224]
-                0.05    0.00 20777534/26776263     get_param [235]
------------------------------------------------
-                0.00    0.00       4/2858912     damage_unit [1044]
-                0.00    0.00      11/2858912     build_road [950]
-                0.00    0.00    1230/2858912     build [691]
-                0.00    0.00    1297/2858912     make_fighter [424]
-                0.00    0.00    2938/2858912     allocate_resource [752]
-                0.00    0.00    5384/2858912     teach_cmd [272]
-                0.00    0.00   43034/2858912     get_food [88]
-                0.00    0.00   85655/2858912     movement_speed [155]
-                0.00    0.00   96637/2858912     walkingcapacity [403]
-                0.01    0.01  595472/2858912     live [73]
-                0.01    0.01  836342/2858912     study_cmd [105]
-                0.02    0.01 1190908/2858912     ageing [185]
-[225]    0.2    0.04    0.02 2858912         get_effect [225]
-                0.02    0.00 2858912/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00     234/1874928     travel_route [147]
-                0.00    0.00  127676/1874928     describe [35]
-                0.00    0.01  209572/1874928     cr_output_region [10]
-                0.00    0.02  752225/1874928     rname [200]
-                0.00    0.02  785221/1874928     trailinto [207]
-[226]    0.2    0.01    0.05 1874928         terrain_name [226]
-                0.02    0.00 1174371/12246335     ct_find [114]
-                0.01    0.00 1174371/10190660     get_curse [143]
-                0.01    0.00 1646640/51974272     a_find [65]
-                0.00    0.00 1174371/4201030     curse_active [543]
-                0.00    0.00  152504/152504      plain_name [715]
------------------------------------------------
-                0.00    0.00     127/1010116     msg_create_message [1080]
-                0.00    0.00     957/1010116     parse_messages [832]
-                0.00    0.00   41248/1010116     msg_feedback [647]
-                0.04    0.02  967784/1010116     msg_message [132]
-[227]    0.2    0.04    0.02 1010116         mt_find [227]
-                0.02    0.00 1010116/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.00       6/1009159     msg_send_region [1210]
-                0.00    0.00     121/1009159     msg_send_faction [1042]
-                0.00    0.00   41248/1009159     msg_feedback [647]
-                0.00    0.06  967784/1009159     msg_message [132]
-[228]    0.2    0.00    0.06 1009159         msg_create [228]
-                0.01    0.04 1009159/1009159     log_orders [251]
-                0.01    0.00 2481220/2481220     copy_arg [521]
------------------------------------------------
-                0.02    0.04   62581/62581       report_plaintext [4]
-[229]    0.2    0.02    0.04   62581         guards [229]
-                0.00    0.02 1384664/6610983     is_guard [211]
-                0.01    0.00   27498/2742237     paragraph [26]
-                0.00    0.01   67332/4374788     visible_faction [68]
-                0.00    0.00   60360/24887945     locale_string [27]
-                0.00    0.00   97114/34611296     strlcpy [45]
-                0.00    0.00   34482/1295787     factionname [247]
-                0.00    0.00   97114/36653945     wrptr [178]
-                0.00    0.00   27498/2494242     newline [594]
------------------------------------------------
-                0.00    0.06  595478/595478      process [7]
-[230]    0.2    0.00    0.06  595478         monster_kills_peasants [230]
-                0.01    0.02  325825/325825      scared_by_monster [380]
-                0.01    0.01  325282/325282      eaten_by_monster [468]
-                0.01    0.00  595478/1121103     monster_is_waiting [407]
-                0.00    0.00 1469625/129167539     u_race [89]
-                0.00    0.00   11540/11540       absorbed_by_monster [804]
------------------------------------------------
-                0.02    0.04 1054200/1054200     travelthru_map [41]
-[231]    0.2    0.02    0.04 1054200         count_cb [231]
-                0.01    0.03  613860/1747682     cansee_durchgezogen [170]
-                0.01    0.00  875741/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.00       1/593636      give_control_cmd [287]
-                0.00    0.00       1/593636      display_cmd [859]
-                0.00    0.00       3/593636      try_rename [1225]
-                0.00    0.00       5/593636      name_cmd [835]
-                0.00    0.00       6/593636      bewegung_blockiert_von [631]
-                0.00    0.00       6/593636      restack_units [353]
-                0.00    0.00      26/593636      renumber_cmd [780]
-                0.00    0.00     401/593636      mayenter [936]
-                0.00    0.00    8710/593636      maintain_buildings [339]
-                0.00    0.00    9465/593636      expandselling [93]
-                0.00    0.00   11409/593636      lighthouse_range [728]
-                0.00    0.00   12521/593636      report_template [87]
-                0.00    0.00   21463/593636      maintain [478]
-                0.00    0.00   28665/593636      owner_buildingtyp [676]
-                0.00    0.00   37894/593636      reorder_units [400]
-                0.00    0.00   47440/593636      write_unit [97]
-                0.00    0.01   92368/593636      score [23]
-                0.00    0.01  104830/593636      cr_output_curses [69]
-                0.00    0.01  104830/593636      cr_output_region [10]
-                0.00    0.01  113592/593636      nr_curses [48]
-[232]    0.2    0.01    0.05  593636         building_owner [232]
-                0.05    0.00  209480/209572      building_owner_ex [253]
------------------------------------------------
-                0.00    0.00      39/13259934     display_item [1054]
-                0.00    0.00     352/13259934     cr_resources [960]
-                0.00    0.00     446/13259934     print_items [938]
-                0.00    0.00     628/13259934     add_itemname_cb [980]
-                0.00    0.00     648/13259934     add_resourcename_cb [977]
-                0.00    0.00    1490/13259934     eval_resources [907]
-                0.00    0.00    1539/13259934     report_plaintext [4]
-                0.00    0.00    1543/13259934     make_cmd [383]
-                0.00    0.00    1876/13259934     report_computer [9]
-                0.00    0.00    2073/13259934     cr_output_curses [69]
-                0.00    0.00    2096/13259934     a_writeeffect [1073]
-                0.00    0.00    3203/13259934     cr_reportspell [756]
-                0.00    0.00    3203/13259934     nr_spell [507]
-                0.00    0.00   96621/13259934     describe [35]
-                0.00    0.00  110167/13259934     cr_resource [488]
-                0.00    0.00  169153/13259934     statistics [70]
-                0.00    0.00  218078/13259934     cr_output_region [10]
-                0.00    0.00  249352/13259934     writeregion [519]
-                0.00    0.00  448410/13259934     write_items [511]
-                0.00    0.00  470529/13259934     eval_resource [328]
-                0.05    0.00 11478488/13259934     report_item [106]
-[233]    0.2    0.06    0.00 13259934         resourcename [233]
------------------------------------------------
-                0.00    0.00     493/1826688     report_computer [9]
-                0.00    0.00    7499/1826688     cr_regions [840]
-                0.00    0.00   10477/1826688     report_template [87]
-                0.00    0.00  132705/1826688     cr_region [662]
-                0.01    0.00  211668/1826688     cr_output_region [10]
-                0.02    0.00  513251/1826688     write_regionname [280]
-                0.03    0.00  950595/1826688     f_regionid [161]
-[234]    0.2    0.06    0.00 1826688         adjust_coordinates [234]
-                0.00    0.00 1785077/1785077     faction_getorigin [1357]
-                0.00    0.00  221718/221723      plane_center_x [1411]
-                0.00    0.00  221718/221723      plane_center_y [1412]
-                0.00    0.00  221718/734392      plane_width [1380]
-                0.00    0.00  221718/734392      plane_height [1379]
------------------------------------------------
-                0.00    0.00      88/26776263     hunger_damage [1223]
-                0.00    0.00  216069/26776263     check_param [793]
-                0.00    0.00  717287/26776263     get_param_flt [713]
-                0.01    0.00 5065285/26776263     get_param_int [422]
-                0.05    0.00 20777534/26776263     config_get [224]
-[235]    0.2    0.06    0.00 26776263         get_param [235]
------------------------------------------------
-                0.00    0.00      39/560965      bt_get_or_create [1114]
-                0.06    0.00  560926/560965      bt_find [237]
-[236]    0.2    0.06    0.00  560965         bt_find_i [236]
------------------------------------------------
-                0.00    0.00       1/560926      buy [707]
-                0.00    0.00       1/560926      breedhorses [742]
-                0.00    0.00       1/560926      produce [29]
-                0.00    0.00       1/560926      demographics [50]
-                0.00    0.00       1/560926      wormholes_update [906]
-                0.00    0.00       2/560926      sell [498]
-                0.00    0.00       3/560926      expandselling [93]
-                0.00    0.00       5/560926      build_road [950]
-                0.00    0.00       6/560926      remove_building [1153]
-                0.00    0.00     232/560926      prepare_report [8]
-                0.00    0.00     322/560926      can_takeoff [854]
-                0.00    0.00    1302/560926      academy_can_teach [527]
-                0.00    0.00    5206/560926      monthly_healing [215]
-                0.00    0.00    6947/560926      sail [181]
-                0.00    0.00    9680/560926      bewegung_blockiert_von [631]
-                0.00    0.00   31155/560926      statistics [70]
-                0.00    0.00   39810/560926      check_ship_allowed [657]
-                0.00    0.00   46176/560926      read_game [62]
-                0.00    0.04  420075/560926      study_cmd [105]
-[237]    0.2    0.00    0.06  560926         bt_find [237]
-                0.06    0.00  560926/560965      bt_find_i [236]
------------------------------------------------
-                0.00    0.06   45630/45630       cr_output_region [10]
-[238]    0.2    0.00    0.06   45630         cr_output_resources [238]
-                0.03    0.01   45630/108211      report_resources [210]
-                0.00    0.03  174677/174677      cr_output_resource [378]
-                0.00    0.00   91260/10053919     rtrees [302]
-                0.00    0.00    3232/4488684     crtag [110]
------------------------------------------------
-                0.00    0.06  104830/104830      cr_output_region [10]
-[239]    0.2    0.00    0.06  104830         cr_output_building [239]
-                0.00    0.03  104830/386740      cr_output_curses_compat [144]
-                0.00    0.01  104830/218422      report_building [397]
-                0.00    0.01  104830/4434556     translate [75]
-                0.00    0.00  104830/24887945     locale_string [27]
------------------------------------------------
-                0.00    0.00      12/931076      reduce_weight [404]
-                0.00    0.00   68977/931076      reserve_i [213]
-                0.00    0.05  862087/931076      use_pooled [39]
-[240]    0.2    0.00    0.06  931076         change_resource [240]
-                0.00    0.03  931076/8302761     get_resource [99]
-                0.00    0.02  930757/9232125     res_changeitem [101]
-                0.00    0.00      86/443         res_changepermaura [912]
-                0.00    0.00     216/1199        res_changeaura [972]
-                0.00    0.00      15/15          res_changepeasants [1200]
-                0.00    0.00       2/2           res_changehp [1779]
------------------------------------------------
-                0.03    0.03       1/1           randomevents [91]
-[241]    0.2    0.03    0.03       1         dissolve_units [241]
-                0.00    0.02       1/6           remove_empty_units [146]
-                0.01    0.00  595476/51974272     a_find [65]
-                0.00    0.00    2126/7641081     genrand_int31 [171]
-                0.00    0.00      41/967784      msg_message [132]
-                0.00    0.00      41/392959      add_message [434]
-                0.00    0.00      19/264251      rsetpeasants [545]
-                0.00    0.00      41/3178        scale_number [969]
-                0.00    0.00      19/2605004     rpeasants [435]
-                0.00    0.00       4/71815034     get_race [12]
-                0.00    0.00      45/129167539     u_race [89]
-                0.00    0.00      20/10053919     rtrees [302]
-                0.00    0.00      41/1009028     msg_release [1373]
-                0.00    0.00      20/229715      rsettrees [1410]
------------------------------------------------
-                0.00    0.00      45/80630       sp_kampfzauber [957]
-                0.00    0.00     580/80630       attack_firesword [785]
-                0.00    0.00    7313/80630       sp_dragonodem [627]
-                0.00    0.05   72692/80630       attack [84]
-[242]    0.2    0.00    0.05   80630         terminate [242]
-                0.00    0.01  153322/860166      weapon_effskill [168]
-                0.00    0.02  100532/146997      dice_rand [409]
-                0.00    0.00  154155/71815034     get_race [12]
-                0.00    0.01   80630/80630       calculate_armor [645]
-                0.00    0.00   10897/25088       kill_troop [532]
-                0.00    0.00   17117/137709      CavalryBonus [491]
-                0.00    0.00   92981/752645      chance [495]
-                0.00    0.00  475770/129167539     u_race [89]
-                0.00    0.00   39357/1474687     leftship [500]
-                0.00    0.00   10900/5395063     i_get [130]
-                0.00    0.00   72692/72692       rc_specialdamage [830]
-                0.00    0.00   13338/7641081     genrand_int31 [171]
-                0.00    0.00    3221/11241829     i_change [115]
-                0.00    0.00      52/1381157     unit_max_hp [136]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       4/31214       message_faction [716]
-                0.00    0.00  148748/1218663     select_weapon [1367]
-                0.00    0.00   80630/1726748     is_riding [1358]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.04    0.01 6241702/6241702     getbuf_utf8 [72]
-[243]    0.2    0.04    0.01 6241702         eatwhite [243]
-                0.01    0.00 6696209/46391457     unicode_utf8_to_ucs4 [177]
------------------------------------------------
-                0.03    0.02   10846/10846       expandorders [197]
-[244]    0.2    0.03    0.02   10846         scramble [244]
-                0.02    0.00 2276433/11253756     genrand_int32 [150]
------------------------------------------------
-                0.00    0.05  515550/515550      parse_symbol <cycle 5> [42]
-[245]    0.2    0.00    0.05  515550         eval_region [245]
-                0.00    0.05  515550/515911      write_regionname [280]
-                0.00    0.00  515550/13102790     opstack_pop [176]
-                0.00    0.00  515550/13102790     opstack_push [202]
-                0.00    0.00  515550/13399069     balloc [363]
------------------------------------------------
-                0.03    0.02       1/1           randomevents [91]
-[246]    0.2    0.03    0.02       1         demon_skillchanges [246]
-                0.00    0.02  595476/71815034     get_race [12]
-                0.00    0.00  595476/129167539     u_race [89]
-                0.00    0.00    2148/2148        demon_skillchange [826]
------------------------------------------------
-                0.00    0.00       4/1295787     checkpasswd [1268]
-                0.00    0.00       5/1295787     tolua_faction_tostring [1257]
-                0.00    0.00     230/1295787     report_plaintext [4]
-                0.00    0.00     232/1295787     write_reports [3]
-                0.00    0.00     251/1295787     out_faction [615]
-                0.00    0.00    3111/1295787     sidename [867]
-                0.00    0.00   10794/1295787     list_address [635]
-                0.00    0.00   34482/1295787     guards [229]
-                0.00    0.00   46224/1295787     eval_faction [685]
-                0.00    0.00   55330/1295787     show_allies [429]
-                0.00    0.05 1145124/1295787     bufunit [17]
-[247]    0.2    0.00    0.05 1295787         factionname [247]
-                0.00    0.05 1295787/5100840     itoa36 [116]
-                0.00    0.00 1295787/5461936     slprintf [548]
------------------------------------------------
-                0.00    0.00      10/160206      get_money_for_dragon [1087]
-                0.04    0.01  160196/160206      plan_monsters [52]
-[248]    0.1    0.04    0.01  160206         monster_attacks [248]
-                0.01    0.00   11080/1437425     cansee [22]
-                0.00    0.00     752/752         monster_attack [764]
-                0.00    0.00     736/760673      addlist [217]
-                0.00    0.00     752/7120688     get_money [187]
-                0.00    0.00    1042/1042        in_safe_building [1585]
------------------------------------------------
-                0.03    0.02       1/1           process [7]
-[249]    0.1    0.03    0.02       1         defaultorders [249]
-                0.01    0.00 1131212/55492327     getkeyword [54]
-                0.00    0.01     524/524         remove_exclusive [571]
-                0.00    0.00     232/1481407     parse_order [117]
-                0.00    0.00     232/760673      addlist [217]
-                0.00    0.00     262/2281756     gettoken [195]
-                0.00    0.00     262/1027665     init_order [613]
-                0.00    0.00     262/1936876     free_order [1356]
-                0.00    0.00       1/11194781     keyword_disabled [1348]
------------------------------------------------
-                0.04    0.01  178254/178254      process [7]
-[250]    0.1    0.04    0.01  178254         do_contact [250]
-                0.01    0.00 1133099/55492327     getkeyword [54]
-                0.00    0.00     147/147         contact_cmd [965]
------------------------------------------------
-                0.01    0.04 1009159/1009159     msg_create [228]
-[251]    0.1    0.01    0.04 1009159         log_orders [251]
-                0.00    0.04   41255/1380398     nr_render [25]
-                0.00    0.00   41255/3780355     nr_section [113]
-                0.00    0.00   41255/49235       log_debug [1245]
------------------------------------------------
-                0.02    0.03 1929215/1929215     create_order_i [175]
-[252]    0.1    0.02    0.03 1929215         create_data [252]
-                0.00    0.02  560985/2066777     parse_token_depr [220]
-                0.01    0.01  560985/996009      get_skill [423]
-                0.00    0.00      58/2934859     skillname [122]
-                0.00    0.00 1252028/1252028     mkdata [1366]
------------------------------------------------
-                0.00    0.00      92/209572      building_update_owner [1010]
-                0.05    0.00  209480/209572      building_owner [232]
-[253]    0.1    0.05    0.00  209572         building_owner_ex [253]
-                0.00    0.00  209544/216069      config_token [794]
------------------------------------------------
-                0.05    0.00   96482/96482       travel_i [92]
-[254]    0.1    0.05    0.00   96482         get_followers [254]
-                0.00    0.00    2822/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00   22778/5329742     parser_end [849]
-                0.05    0.00 5306964/5329742     parse_token [125]
-[255]    0.1    0.05    0.00 5329742         eatwhitespace_c [255]
-                0.00    0.00    5132/46391457     unicode_utf8_to_ucs4 [177]
------------------------------------------------
-                0.00    0.00     150/12560453     is_migrant [1047]
-                0.00    0.00     230/12560453     report_computer [9]
-                0.00    0.00     298/12560453     plan_dragon [273]
-                0.00    0.00     410/12560453     rc_specialdamage [830]
-                0.00    0.00   14447/12560453     heal_factor [619]
-                0.00    0.00   16132/12560453     magic_lowskill [897]
-                0.00    0.00  377253/12560453     guard_flags [690]
-                0.00    0.00  469309/12560453     rc_skillmod [140]
-                0.02    0.00 4503145/12560453     omniscient [470]
-                0.03    0.00 7179079/12560453     skill_mod [264]
-[256]    0.1    0.05    0.00 12560453         rc_changed [256]
------------------------------------------------
-                0.00    0.00       1/2868601     use_bloodpotion [935]
-                0.00    0.00       3/2868601     trigger_changerace [1297]
-                0.01    0.00  596221/2868601     write_unit [97]
-                0.02    0.00  923633/2868601     cr_output_unit [19]
-                0.02    0.00 1348743/2868601     bufunit [17]
-[257]    0.1    0.05    0.00 2868601         u_irace [257]
------------------------------------------------
-                                                 <spontaneous>
-[258]    0.1    0.05    0.00                 qli_init [258]
------------------------------------------------
-                0.00    0.00       4/4625636     mailfaction [1106]
-                0.00    0.00      12/4625636     tolua_faction_get [1246]
-                0.00    0.00     150/4625636     setstealth_cmd [182]
-                0.00    0.00     233/4625636     readfaction [767]
-                0.00    0.00     287/4625636     factionorders [983]
-                0.00    0.00     791/4625636     getfaction [937]
-                0.00    0.00    5925/4625636     addally [913]
-                0.00    0.00   30872/4625636     resolve_faction [820]
-                0.00    0.00   39836/4625636     read_of [524]
-                0.00    0.00   49522/4625636     read_groups [782]
-                0.00    0.01  595125/4625636     read_unit [74]
-                0.01    0.03 3902879/4625636     get_or_create_monsters [292]
-[259]    0.1    0.01    0.04 4625636         findfaction [259]
-                0.04    0.00 4625636/4625636     ffindhash [315]
------------------------------------------------
-                0.00    0.00      10/2818494     spawn_dragons [411]
-                0.00    0.00      47/2818494     display_race [963]
-                0.00    0.00      71/2818494     report_summary [614]
-                0.00    0.00      92/2818494     spawn_undead [629]
-                0.00    0.00     230/2818494     report_computer [9]
-                0.00    0.00     230/2818494     report_plaintext [4]
-                0.00    0.00     251/2818494     out_faction [615]
-                0.00    0.00     272/2818494     init_locale [948]
-                0.00    0.00     356/2818494     cr_race [949]
-                0.00    0.00     666/2818494     generic_name [962]
-                0.00    0.00    1520/2818494     eval_race [882]
-                0.00    0.01  537193/2818494     unit_getname [332]
-                0.01    0.01  925760/2818494     cr_output_unit [19]
-                0.01    0.01 1351796/2818494     racename [133]
-[260]    0.1    0.02    0.03 2818494         rc_name_s [260]
-                0.03    0.00 2818494/2818494     rc_name [364]
------------------------------------------------
-                0.00    0.00       2/4133717     b_namequestportal [1279]
-                0.00    0.00      10/4133717     init_locale [948]
-                0.00    0.00      18/4133717     parse_calendar [1252]
-                0.00    0.00      44/4133717     curse_name [1140]
-                0.00    0.00      47/4133717     display_item [1054]
-                0.00    0.00      58/4133717     skill_key [1205]
-                0.00    0.00      61/4133717     json_keyword [1127]
-                0.00    0.00      86/4133717     display_race [963]
-                0.00    0.00     140/4133717     nr_spell_syntax [732]
-                0.00    0.00     464/4133717     report_computer [9]
-                0.00    0.00     567/4133717     report_plaintext [4]
-                0.00    0.00    1088/4133717     spskill [53]
-                0.00    0.00    1911/4133717     cinfo_magicresistance [824]
-                0.00    0.00    2081/4133717     cr_reportspell [756]
-                0.00    0.00    2252/4133717     cinfo_ship [812]
-                0.00    0.00    4162/4133717     spell_info [841]
-                0.00    0.00    5907/4133717     cinfo_simple [751]
-                0.00    0.00    8974/4133717     hp_status [206]
-                0.00    0.00   15359/4133717     cinfo_building [686]
-                0.00    0.00   20072/4133717     cr_skill [672]
-                0.00    0.00   33909/4133717     cr_output_spells [639]
-                0.00    0.00   86400/4133717     spell_name [646]
-                0.00    0.00   93450/4133717     b_nameroad [642]
-                0.00    0.00   97017/4133717     cr_borders [135]
-                0.00    0.00  108347/4133717     racename [133]
-                0.00    0.01  716432/4133717     cr_output_unit [19]
-                0.01    0.03 2934859/4133717     skillname [122]
-[261]    0.1    0.01    0.04 4133717         mkname [261]
-                0.04    0.00 4133717/4136059     mkname_buf [316]
------------------------------------------------
-                0.00    0.00      87/1441945     age_stonecircle [1021]
-                0.00    0.00      91/1441945     study_cmd [105]
-                0.00    0.00   75870/1441945     movement_speed [155]
-                0.00    0.01  174965/1441945     cr_output_unit [19]
-                0.00    0.02  595454/1441945     regenerate_aura [346]
-                0.00    0.02  595478/1441945     magic [157]
-[262]    0.1    0.00    0.05 1441945         is_mage [262]
-                0.00    0.05 1441945/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00    1921/2277350     report_computer [9]
-                0.03    0.02 2275429/2277350     raceprefix [222]
-[263]    0.1    0.03    0.02 2277350         get_prefix [263]
-                0.02    0.00 2277350/51974272     a_find [65]
------------------------------------------------
-                0.02    0.03 7179079/7179079     rc_skillmod [140]
-[264]    0.1    0.02    0.03 7179079         skill_mod [264]
-                0.03    0.00 7179079/12560453     rc_changed [256]
-                0.00    0.00       2/71815034     get_race [12]
-                0.00    0.00  722366/1511812     newterrain [1359]
------------------------------------------------
-                0.02    0.03 9163148/9163148     res_changeitem [101]
-[265]    0.1    0.02    0.03 9163148         golem_factor [265]
-                0.03    0.00 18326296/56052475     get_resourcetype [194]
-                0.00    0.00   45992/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      39/779486      display_item [1054]
-                0.00    0.00      47/779486      display_race [963]
-                0.00    0.00      58/779486      dragon_name [1095]
-                0.00    0.00     117/779486      count_particles [1089]
-                0.00    0.00     407/779486      make_name [970]
-                0.03    0.02  778818/779486      describe_race [267]
-[266]    0.1    0.03    0.02  779486         locale_getstring [266]
-                0.02    0.00  779486/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.02  379049/778818      read_unit [74]
-                0.00    0.02  399769/778818      u_description [347]
-[267]    0.1    0.00    0.05  778818         describe_race [267]
-                0.03    0.02  778818/779486      locale_getstring [266]
------------------------------------------------
-                0.00    0.05  883617/883617      parse_symbol <cycle 5> [42]
-[268]    0.1    0.00    0.05  883617         eval_int [268]
-                0.00    0.03  883617/884940      itoa10 [338]
-                0.01    0.00  883617/13102790     opstack_pop [176]
-                0.01    0.00  883617/13102790     opstack_push [202]
-                0.00    0.00  883617/13399069     balloc [363]
------------------------------------------------
-                0.00    0.05  317735/317735      plan_monsters [52]
-[269]    0.1    0.00    0.05  317735         monster_learn [269]
-                0.00    0.02  317467/447808      create_order [341]
-                0.00    0.02  317467/2934859     skillname [122]
-                0.00    0.00  317467/7641081     genrand_int31 [171]
-                0.00    0.00  317735/748527      unit_can_study [709]
------------------------------------------------
-                0.01    0.04  595896/595896      process [7]
-[270]    0.1    0.01    0.04  595896         update_long_order [270]
-                0.02    0.00  575221/635885      copy_order [441]
-                0.01    0.00 1132975/55492327     getkeyword [54]
-                0.00    0.00  152977/1644867     free_orders [306]
-                0.00    0.00  595896/1629412     LongHunger [536]
-                0.00    0.00  451283/2985733     is_repeated [552]
-                0.00    0.00    1178/15102       cmistake [718]
-                0.00    0.00      56/3110        default_order [902]
-                0.00    0.00 1132609/1132609     is_long [1370]
-                0.00    0.00  581697/1291427     set_order [1365]
------------------------------------------------
-                0.01    0.00  178254/1006923     new_region [275]
-                0.01    0.00  369586/1006923     r_connect [474]
-                0.02    0.00  459083/1006923     findregion [420]
-[271]    0.1    0.04    0.01 1006923         rfindhash [271]
-                0.01    0.00 1006923/2903884     jenkins_hash [439]
------------------------------------------------
-                0.00    0.05    5384/5384        process [7]
-[272]    0.1    0.00    0.05    5384         teach_cmd [272]
-                0.01    0.01   16132/16132       teach_unit [426]
-                0.01    0.00   34486/34486       effskill_study [504]
-                0.00    0.00   17577/282847      getunit [205]
-                0.00    0.00    5384/14326       replace_order [526]
-                0.00    0.00   17247/435022      getskill [387]
-                0.00    0.00    9353/9953180     alliedunit [31]
-                0.00    0.00   17417/5100840     itoa36 [116]
-                0.00    0.00    5384/447808      create_order [341]
-                0.00    0.00   17417/34611296     strlcpy [45]
-                0.00    0.00   28057/1027665     init_order [613]
-                0.00    0.00   22843/22843       parser_end [849]
-                0.00    0.00    5384/69432       getparam [681]
-                0.00    0.00    1323/41248       msg_feedback [647]
-                0.00    0.00   17417/55492327     getkeyword [54]
-                0.00    0.00    5384/2858912     get_effect [225]
-                0.00    0.00    5380/12246335     ct_find [114]
-                0.00    0.00    5380/10190660     get_curse [143]
-                0.00    0.00    1323/392959      add_message [434]
-                0.00    0.00     412/2426021     get_mage [198]
-                0.00    0.00    5384/129167539     u_race [89]
-                0.00    0.00     167/167         academy_teaching_bonus [1128]
-                0.00    0.00    5384/18647447     getplane [596]
-                0.00    0.00      42/54318       getstrtoken [710]
-                0.00    0.00      42/534930      isparam [668]
-                0.00    0.00   17289/17289       parser_pushstate [1507]
-                0.00    0.00   17289/17289       parser_popstate [1506]
-                0.00    0.00    5384/1936876     free_order [1356]
-                0.00    0.00    1323/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.05     298/298         plan_monsters [52]
-[273]    0.1    0.00    0.05     298         plan_dragon [273]
-                0.00    0.02     249/252         path_exists [431]
-                0.00    0.01      40/40          set_new_dragon_target [486]
-                0.00    0.01     249/249         make_movement_order [522]
-                0.00    0.00      17/17          recruit_dracoids [837]
-                0.00    0.00     249/2480226     old_race [14]
-                0.00    0.00      49/133         income [885]
-                0.00    0.00     136/83859       reduce_weight [404]
-                0.00    0.00      39/39          random_growl [1065]
-                0.00    0.00     119/447808      create_order [341]
-                0.00    0.00     119/2934859     skillname [122]
-                0.00    0.00      49/49          get_money_for_dragon [1087]
-                0.00    0.00     306/752645      chance [495]
-                0.00    0.00     360/7641081     genrand_int31 [171]
-                0.00    0.00     298/51974272     a_find [65]
-                0.00    0.00      44/71815034     get_race [12]
-                0.00    0.00     298/12560453     rc_changed [256]
-                0.00    0.00     460/129167539     u_race [89]
-                0.00    0.00      74/2605004     rpeasants [435]
-                0.00    0.00      43/7120688     get_money [187]
-                0.00    0.00      74/4666665     rmoney [452]
-                0.00    0.00     119/21345834     skill_enabled [365]
------------------------------------------------
-                0.00    0.00     209/1481616     setstealth_cmd [182]
-                0.03    0.02 1481407/1481616     parse_order [117]
-[274]    0.1    0.03    0.02 1481616         get_keyword [274]
-                0.01    0.00 1481616/4457785     transliterate [358]
-                0.01    0.00 1481616/4558423     get_translations [437]
-                0.00    0.00 1481322/11194781     keyword_disabled [1348]
------------------------------------------------
-                0.00    0.05  178254/178254      readregion [209]
-[275]    0.1    0.00    0.05  178254         new_region [275]
-                0.02    0.00  178254/178254      hash_uid [442]
-                0.02    0.00  178254/760673      addlist [217]
-                0.01    0.00  178254/1006923     rfindhash [271]
-                0.00    0.00  178254/178290      rhash [737]
-                0.00    0.00  178254/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.05       1/1           process [7]
-[276]    0.1    0.00    0.05       1         quit [276]
-                0.00    0.03       1/1           remove_idle_players [391]
-                0.00    0.02       1/6           remove_empty_units [146]
-                0.00    0.00     237/16493       NewbieImmunity [900]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.05  178254/178254      produce [29]
-[277]    0.1    0.00    0.05  178254         expandwork [277]
-                0.00    0.04  189233/490896      wage [174]
-                0.00    0.00  342640/2605004     rpeasants [435]
-                0.00    0.00   10979/34409       add_income [625]
-                0.00    0.00  178254/2186159     rsetmoney [553]
-                0.00    0.00  178254/4666665     rmoney [452]
-                0.00    0.00   10979/2599554     change_money [337]
-                0.00    0.00   10979/129167539     u_race [89]
-                0.00    0.00     503/7641081     genrand_int31 [171]
-                0.00    0.00   82525/508632      rule_blessed_harvest [1327]
------------------------------------------------
-                0.00    0.05     663/663         produce [29]
-[278]    0.1    0.00    0.05     663         expandtax [278]
-                0.02    0.00 1524933/2599554     change_money [337]
-                0.01    0.00 3049883/4666665     rmoney [452]
-                0.01    0.00 1524933/2186159     rsetmoney [553]
-                0.00    0.00     663/10852       expandorders [197]
-                0.00    0.00     948/34409       add_income [625]
------------------------------------------------
-                0.00    0.00      38/221899      renumber_cmd [780]
-                0.00    0.00      59/221899      expandstealing [807]
-                0.00    0.05  221802/221899      unitorders [46]
-[279]    0.1    0.00    0.05  221899         findunitg [279]
-                0.04    0.00  221899/1118718     ufindhash [109]
------------------------------------------------
-                0.00    0.00     361/515911      regionname [987]
-                0.00    0.05  515550/515911      eval_region [245]
-[280]    0.1    0.00    0.05  515911         write_regionname [280]
-                0.01    0.02  513251/1552289     rname [200]
-                0.02    0.00  513251/1826688     adjust_coordinates [234]
-                0.00    0.00  513251/5461936     slprintf [548]
-                0.00    0.00  513251/18647447     getplane [596]
-                0.00    0.00    2660/34611296     strlcpy [45]
-                0.00    0.00  513251/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.00    2364/4851739     give_item [126]
-                0.00    0.00   24010/4851739     give_cmd [102]
-                0.00    0.00  671315/4851739     get_pooled [104]
-                0.03    0.01 4154050/4851739     use_pooled [39]
-[281]    0.1    0.03    0.02 4851739         get_reservation [281]
-                0.01    0.00 9703478/56052475     get_resourcetype [194]
-                0.00    0.00   20370/129167539     u_race [89]
------------------------------------------------
-                0.00    0.04       1/1           process [7]
-[282]    0.1    0.00    0.04       1         new_units [282]
-                0.00    0.02     754/754         checkunitnumber [402]
-                0.00    0.01     754/2889        create_unit [296]
-                0.01    0.00 1136686/55492327     getkeyword [54]
-                0.00    0.00     754/228907      getid [483]
-                0.00    0.00     754/2281756     gettoken [195]
-                0.00    0.00     754/779419      a_add [555]
-                0.00    0.00     754/1474687     leftship [500]
-                0.00    0.00     754/1027665     init_order [613]
-                0.00    0.00     754/779868      a_new [1376]
-                0.00    0.00     754/599650      setstatus [1390]
------------------------------------------------
-                0.00    0.00   39714/300501      sail [181]
-                0.00    0.01  105958/300501      travel_route [147]
-                0.01    0.02  154829/300501      movewhere [350]
-[283]    0.1    0.01    0.03  300501         move_blocked [283]
-                0.00    0.03  300501/2225796     get_borders [120]
-                0.00    0.00  282968/12246335     ct_find [114]
-                0.00    0.00  282968/10190660     get_curse [143]
-                0.00    0.00  282968/4201030     curse_active [543]
-                0.00    0.00   37024/37024       b_blocknone [1471]
-                0.00    0.00       2/2           b_blockquestportal [1770]
------------------------------------------------
-                0.01    0.03       1/1           randomevents [91]
-[284]    0.1    0.01    0.03       1         rotting_herbs [284]
-                0.02    0.00  595476/6010308     i_find [127]
-                0.00    0.01  595476/1177511     it_find [385]
-                0.00    0.00   22496/147217      normalvariate [376]
-                0.00    0.00   22496/11241829     i_change [115]
-                0.00    0.00       1/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.04       1/1           randomevents [91]
-[285]    0.1    0.00    0.04       1         icebergs [285]
-                0.01    0.01  178254/178263      drown [394]
-                0.01    0.00       1/1           move_icebergs [534]
-                0.01    0.00       1/1           create_icebergs [538]
------------------------------------------------
-                0.00    0.00   45033/4198692     report_template [87]
-                0.00    0.00  106798/4198692     help_feed [678]
-                0.01    0.03 4046861/4198692     get_food [88]
-[286]    0.1    0.01    0.03 4198692         lifestyle [286]
-                0.00    0.02 1677644/3902878     get_monsters [293]
-                0.01    0.01 2521048/2765718     maintenance_cost [481]
-                0.00    0.00 2521048/18647447     getplane [596]
------------------------------------------------
-                0.00    0.04  131765/131765      process [7]
-[287]    0.1    0.00    0.04  131765         give_control_cmd [287]
-                0.00    0.04  131765/282847      getunit [205]
-                0.00    0.00  131765/2281756     gettoken [195]
-                0.00    0.00  131765/1027665     init_order [613]
-                0.00    0.00  131764/534930      isparam [668]
-                0.00    0.00       6/102705      can_give_to [600]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       3/15102       cmistake [718]
-                0.00    0.00       3/392959      add_message [434]
-                0.00    0.00       1/593636      building_owner [232]
-                0.00    0.00       5/3358315     ship_owner [438]
-                0.00    0.00       3/3           give_control [1763]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     677/10383360     ally_cmd [877]
-                0.00    0.00    1297/10383360     AllianceAuto [535]
-                0.00    0.00    5925/10383360     addally [913]
-                0.01    0.03 10375461/10383360     AllianceRestricted [164]
-[288]    0.1    0.01    0.03 10383360         HelpMask [288]
-                0.01    0.02 10383360/20777534     config_get [224]
------------------------------------------------
-                0.00    0.04   96527/96527       travel [81]
-[289]    0.1    0.00    0.04   96527         make_route [289]
-                0.00    0.03  209781/252446      movewhere [350]
-                0.00    0.01  113254/113487      next_region [601]
-                0.00    0.01  209781/2281756     gettoken [195]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00       4/955         movement_error [1193]
-                0.00    0.00  113254/192815      add_regionlist [1419]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   14502/1065211     eval_ship [740]
-                0.00    0.01  180598/1065211     nr_ship [111]
-                0.00    0.02  434165/1065211     cb_cr_travelthru_ship [204]
-                0.00    0.02  435946/1065211     cb_write_travelthru [169]
-[290]    0.1    0.00    0.04 1065211         shipname [290]
-                0.00    0.04 1065211/1065211     write_shipname [291]
------------------------------------------------
-                0.00    0.04 1065211/1065211     shipname [290]
-[291]    0.1    0.00    0.04 1065211         write_shipname [291]
-                0.00    0.04 1065211/5100840     itoa36 [116]
-                0.00    0.00 1065211/5461936     slprintf [548]
------------------------------------------------
-                0.00    0.00       1/3902879     spawn_dragons [411]
-                0.00    0.04 3902878/3902879     get_monsters [293]
-[292]    0.1    0.00    0.04 3902879         get_or_create_monsters [292]
-                0.01    0.03 3902879/4625636     findfaction [259]
------------------------------------------------
-                0.00    0.00       1/3902878     tolua_planmonsters [51]
-                0.00    0.00       1/3902878     spawn_braineaters [505]
-                0.00    0.00       1/3902878     report_plaintext [4]
-                0.00    0.00       1/3902878     remove_idle_players [391]
-                0.00    0.00       1/3902878     update_spells [381]
-                0.00    0.00       1/3902878     make_zombie [1267]
-                0.00    0.00       1/3902878     spawn_undead [629]
-                0.00    0.00       5/3902878     chaos [848]
-                0.00    0.00      82/3902878     age_undead [1196]
-                0.00    0.00      84/3902878     loot_cmd [873]
-                0.00    0.00     176/3902878     list_address [635]
-                0.00    0.00     653/3902878     age_ghoul [1024]
-                0.00    0.00     665/3902878     age_zombie [1019]
-                0.00    0.00     725/3902878     age_skeleton [1008]
-                0.00    0.00     983/3902878     loot_items [810]
-                0.00    0.00   39959/3902878     can_start_guarding [679]
-                0.00    0.00   83768/3902878     canwalk [633]
-                0.00    0.00  419410/3902878     randomevents [91]
-                0.00    0.00  419518/3902878     produceexp_ex [323]
-                0.00    0.00  419518/3902878     plan_monsters [52]
-                0.00    0.01  839681/3902878     make_summary [21]
-                0.00    0.02 1677644/3902878     lifestyle [286]
-[293]    0.1    0.00    0.04 3902878         get_monsters [293]
-                0.00    0.04 3902878/3902879     get_or_create_monsters [292]
------------------------------------------------
-                0.00    0.04       1/1           demographics [50]
-[294]    0.1    0.00    0.04       1         immigration [294]
-                0.00    0.04  178254/490896      wage [174]
-                0.00    0.00  185509/2605004     rpeasants [435]
-                0.00    0.00  178254/2765718     maintenance_cost [481]
-                0.00    0.00   23630/71815034     get_race [12]
-                0.00    0.00   17728/438629      maxworkingpeasants [473]
-                0.00    0.00   14329/264251      rsetpeasants [545]
-                0.00    0.00    7074/1336242     rng_injectable_double [396]
-                0.00    0.00   51382/129167539     u_race [89]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00       1/64          log_info [1339]
------------------------------------------------
-                0.00    0.04  178254/178254      process [7]
-[295]    0.1    0.00    0.04  178254         enter_2 [295]
-                0.03    0.01  178254/713016      do_enter [128]
------------------------------------------------
-                0.00    0.00       1/2889        sp_summon_familiar [1025]
-                0.00    0.00       1/2889        sp_summonshadowlords [1034]
-                0.00    0.00       2/2889        summon_allies [925]
-                0.00    0.00       5/2889        chaos [848]
-                0.00    0.00       6/2889        tolua_unit_create [916]
-                0.00    0.00       6/2889        sp_summonundead [896]
-                0.00    0.00      10/2889        spawn_dragons [411]
-                0.00    0.00      17/2889        recruit_dracoids [837]
-                0.00    0.00      20/2889        spawn_seaserpent [831]
-                0.00    0.00      38/2889        sp_viewreality [784]
-                0.00    0.00      92/2889        spawn_undead [629]
-                0.00    0.01     639/2889        spawn_braineaters [505]
-                0.00    0.01     754/2889        new_units [282]
-                0.00    0.02    1298/2889        add_recruits [371]
-[296]    0.1    0.00    0.04    2889         create_unit [296]
-                0.00    0.04    2889/2889        createunitid [317]
-                0.00    0.00    2889/109785      move_unit [421]
-                0.00    0.00    2806/2931        name_unit [803]
-                0.00    0.00    2889/1381157     unit_max_hp [136]
-                0.00    0.00    2889/760673      addlist [217]
-                0.00    0.00    2889/3110        default_order [902]
-                0.00    0.00    2494/779419      a_add [555]
-                0.00    0.00    2062/2275967     get_racename [368]
-                0.00    0.00    2598/51974272     a_find [65]
-                0.00    0.00    2062/2421        set_racename [1015]
-                0.00    0.00     535/1270        set_group [1048]
-                0.00    0.00    2097/129167539     u_race [89]
-                0.00    0.00    2889/24935046     faction_alive [451]
-                0.00    0.00    2889/598129      u_setfaction [1111]
-                0.00    0.00    2889/1291427     set_order [1365]
-                0.00    0.00    2889/600145      u_setrace [1389]
-                0.00    0.00    2889/603524      set_number [1387]
-                0.00    0.00    2063/779868      a_new [1376]
-                0.00    0.00    2062/599650      setstatus [1390]
-                0.00    0.00     837/48565       u_set_building [1460]
-                0.00    0.00     431/433         make_otherfaction [1603]
-                0.00    0.00     431/1380007     get_otherfaction [1362]
-                0.00    0.00      35/27640       u_set_ship [1485]
------------------------------------------------
-                0.01    0.03  178254/178254      do_battle [64]
-[297]    0.1    0.01    0.03  178254         start_battle [297]
-                0.00    0.02    2858/3203        join_battle [425]
-                0.01    0.00 1129818/55492327     getkeyword [54]
-                0.00    0.00    1443/1437425     cansee [22]
-                0.00    0.00    1487/282847      getunit [205]
-                0.00    0.00    1432/9953180     alliedunit [31]
-                0.00    0.00    2974/10190660     get_curse [143]
-                0.00    0.00    1486/1474687     leftship [500]
-                0.00    0.00    1429/51974272     a_find [65]
-                0.00    0.00       7/15361       is_guarded [377]
-                0.00    0.00    1487/1027665     init_order [613]
-                0.00    0.00    1518/1629412     LongHunger [536]
-                0.00    0.00    1431/16669       IsImmune [901]
-                0.00    0.00      57/41248       msg_feedback [647]
-                0.00    0.00    2974/4201030     curse_active [543]
-                0.00    0.00    1518/129167539     u_race [89]
-                0.00    0.00      32/15102       cmistake [718]
-                0.00    0.00      57/392959      add_message [434]
-                0.00    0.00    1518/18647447     getplane [596]
-                0.00    0.00     206/206         make_battle [1282]
-                0.00    0.00       2/16493       NewbieImmunity [900]
-                0.00    0.00    1429/2073        set_enemy [1562]
-                0.00    0.00      55/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.04  102149/102149      cr_output_region [10]
-[298]    0.1    0.00    0.04  102149         cr_output_travelthru [298]
-                0.01    0.04  204298/3398582     travelthru_map [41]
------------------------------------------------
-                0.00    0.00      13/841675      write_planes [1207]
-                0.00    0.00    1692/841675      write_groups [920]
-                0.04    0.00  839970/841675      write_attribs [301]
-[299]    0.1    0.04    0.00  841675         a_write [299]
-                0.00    0.00    4024/4024        curse_write [930]
-                0.00    0.00    1564/1564        write_handler [955]
-                0.00    0.00    1522/1522        a_write_unit [998]
-                0.00    0.00    2096/2096        a_writeeffect [1073]
-                0.00    0.00   58524/58524       a_writeint [1447]
-                0.00    0.00   56646/56646       write_group [1449]
-                0.00    0.00   39955/39955       write_of [1467]
-                0.00    0.00   34420/34420       a_writeshorts [1473]
-                0.00    0.00   14111/14111       shiptrail_write [1511]
-                0.00    0.00    8187/8187        write_seenspell [1523]
-                0.00    0.00    7220/7220        a_writestring [1529]
-                0.00    0.00    2089/2089        write_mage [1560]
-                0.00    0.00    1117/1117        write_targetregion [1584]
-                0.00    0.00      66/66          a_writechars [1663]
-                0.00    0.00      56/56          dict_write [1677]
-                0.00    0.00       2/2           wormhole_write [1785]
-                0.00    0.00       1/1           a_writekeys [1787]
------------------------------------------------
-                0.00    0.04   32670/32670       demographics [50]
-[300]    0.1    0.00    0.04   32670         growing_herbs [300]
-                0.01    0.03 3017598/7641081     genrand_int31 [171]
-                0.00    0.00 3112897/3166898     rherbs [1351]
-                0.00    0.00   62629/101322      rsetherbs [1438]
------------------------------------------------
-                0.00    0.00     232/839970      writefaction [762]
-                0.00    0.00   65263/839970      write_game [83]
-                0.00    0.01  178254/839970      writeregion [519]
-                0.00    0.03  596221/839970      write_unit [97]
-[301]    0.1    0.00    0.04  839970         write_attribs [301]
-                0.04    0.00  839970/841675      a_write [299]
------------------------------------------------
-                0.00    0.00       1/10053919     breedtrees [1148]
-                0.00    0.00       6/10053919     sp_mallornhain [968]
-                0.00    0.00       9/10053919     sp_hain [931]
-                0.00    0.00      20/10053919     dissolve_units [241]
-                0.00    0.00      51/10053919     potion_water_of_life [945]
-                0.00    0.00      58/10053919     terraform_region [932]
-                0.00    0.00    2772/10053919     tolua_region_get_resource [976]
-                0.00    0.00   91260/10053919     cr_output_resources [238]
-                0.00    0.00  182290/10053919     report_resources [210]
-                0.00    0.00  196020/10053919     writeregion [519]
-                0.00    0.00  249356/10053919     growing_trees [624]
-                0.00    0.00  255352/10053919     describe [35]
-                0.00    0.00  877258/10053919     maxworkingpeasants [473]
-                0.03    0.00 8199466/10053919     r_isforest [199]
-[302]    0.1    0.04    0.00 10053919         rtrees [302]
------------------------------------------------
-                0.00    0.00   40231/7851812     centre [789]
-                0.04    0.00 7811581/7851812     paragraph [26]
-[303]    0.1    0.04    0.00 7851812         write_spaces [303]
------------------------------------------------
-                0.04    0.00 4568249/4568249     parse_symbol <cycle 5> [42]
-[304]    0.1    0.04    0.00 4568249         find_variable [304]
------------------------------------------------
-                0.04    0.00 3573165/3573165     ql_set_insert_ex [156]
-[305]    0.1    0.04    0.00 3573165         cmp_faction [305]
------------------------------------------------
-                0.00    0.00       1/1644867     tolua_unit_clear_orders [1313]
-                0.00    0.00       6/1644867     make_undead_unit [1188]
-                0.00    0.00     114/1644867     u_setfaction [1111]
-                0.00    0.00   56948/1644867     unitorders [46]
-                0.00    0.00  152977/1644867     update_long_order [270]
-                0.01    0.00  419518/1644867     plan_monsters [52]
-                0.01    0.00  420178/1644867     clear_npc_orders [531]
-                0.01    0.00  595125/1644867     read_unit [74]
-[306]    0.1    0.04    0.00 1644867         free_orders [306]
-                0.00    0.00  810550/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00      46/3016        steal_cmd [766]
-                0.00    0.00     146/3016        createunitid [317]
-                0.04    0.00    2824/3016        newunitid [319]
-[307]    0.1    0.04    0.00    3016         dfindhash [307]
------------------------------------------------
-                                                 <spontaneous>
-[308]    0.1    0.04    0.00                 cb_find_prefix [308]
------------------------------------------------
-                                                 <spontaneous>
-[309]    0.1    0.04    0.00                 class_index_event [309]
------------------------------------------------
-                                                 <spontaneous>
-[310]    0.1    0.04    0.00                 fs_read [310]
------------------------------------------------
-                                                 <spontaneous>
-[311]    0.1    0.04    0.00                 pack_int [311]
------------------------------------------------
-                                                 <spontaneous>
-[312]    0.1    0.04    0.00                 ql_find [312]
------------------------------------------------
-                                                 <spontaneous>
-[313]    0.1    0.04    0.00                 tolua_unitlist_next [313]
------------------------------------------------
-                                                 <spontaneous>
-[314]    0.1    0.04    0.00                 unicode_ucs4_to_utf8 [314]
------------------------------------------------
-                0.04    0.00 4625636/4625636     findfaction [259]
-[315]    0.1    0.04    0.00 4625636         ffindhash [315]
------------------------------------------------
-                0.00    0.00    2342/4136059     xml_readstrings [863]
-                0.04    0.00 4133717/4136059     mkname [261]
-[316]    0.1    0.04    0.00 4136059         mkname_buf [316]
------------------------------------------------
-                0.00    0.04    2889/2889        create_unit [296]
-[317]    0.1    0.00    0.04    2889         createunitid [317]
-                0.00    0.04    2743/2818        newunitid [319]
-                0.00    0.00     146/3016        dfindhash [307]
-                0.00    0.00     754/1118718     ufindhash [109]
-                0.00    0.00    2889/598069      uhash [667]
-                0.00    0.00     146/3002        forbiddenid [1280]
------------------------------------------------
-                0.00    0.00       8/598234      spy_message [1038]
-                0.00    0.04  598226/598234      bufunit [17]
-[318]    0.1    0.00    0.04  598234         report_status [318]
-                0.01    0.01  598292/24887945     locale_string [27]
-                0.01    0.00  598234/34611296     strlcpy [45]
-                0.00    0.00     116/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.00      32/2818        make_curse [802]
-                0.00    0.00      43/2818        renumber_cmd [780]
-                0.00    0.04    2743/2818        createunitid [317]
-[319]    0.1    0.00    0.04    2818         newunitid [319]
-                0.04    0.00    2824/3016        dfindhash [307]
-                0.00    0.00    5523/1118718     ufindhash [109]
-                0.00    0.00    2818/7641081     genrand_int31 [171]
-                0.00    0.00    2818/3002        forbiddenid [1280]
------------------------------------------------
-                0.00    0.00     233/628037      readfaction [767]
-                0.00    0.00   32679/628037      readregion [209]
-                0.02    0.02  595125/628037      read_unit [74]
-[320]    0.1    0.02    0.02  628037         read_items [320]
-                0.00    0.01  448447/1177511     it_find [385]
-                0.01    0.00  448447/11241829     i_change [115]
------------------------------------------------
-                0.03    0.01  301257/301257      cr_render [196]
-[321]    0.1    0.03    0.01  301257         crt_find [321]
-                0.01    0.00  301257/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.00       1/472418      breedtrees [1148]
-                0.00    0.00       8/472418      spy_cmd [990]
-                0.00    0.00      21/472418      build_road [950]
-                0.00    0.00      59/472418      steal_cmd [766]
-                0.00    0.00     152/472418      magic [157]
-                0.00    0.00     170/472418      breedhorses [742]
-                0.00    0.00     349/472418      research_cmd [886]
-                0.00    0.00    1040/472418      build [691]
-                0.00    0.00    2825/472418      split_allocations [743]
-                0.00    0.00    5896/472418      herbsearch [493]
-                0.00    0.00    6133/472418      produce [29]
-                0.00    0.00    9105/472418      move_ship [374]
-                0.00    0.00   10581/472418      travel_route [147]
-                0.00    0.00   16560/472418      expandentertainment [637]
-                0.00    0.03  419518/472418      plan_monsters [52]
-[322]    0.1    0.00    0.04  472418         produceexp [322]
-                0.00    0.04  472418/472418      produceexp_ex [323]
------------------------------------------------
-                0.00    0.04  472418/472418      produceexp [322]
-[323]    0.1    0.00    0.04  472418         produceexp_ex [323]
-                0.02    0.00  472366/472366      produceexp_days [406]
-                0.00    0.01  472366/892307      learn_skill [471]
-                0.00    0.00  419518/3902878     get_monsters [293]
-                0.00    0.00   52873/129167539     u_race [89]
------------------------------------------------
-                0.00    0.04   35708/35708       process [7]
-[324]    0.1    0.00    0.04   35708         reserve_cmd [324]
-                0.00    0.04   35708/71416       reserve_i [213]
------------------------------------------------
-                0.00    0.04   35708/35708       process [7]
-[325]    0.1    0.00    0.04   35708         reserve_self [325]
-                0.00    0.04   35708/71416       reserve_i [213]
------------------------------------------------
-                0.03    0.01       1/1           movement [47]
-[326]    0.1    0.03    0.01       1         move_pirates [326]
-                0.00    0.00    5049/5049        piracy_cmd [660]
-                0.00    0.00  178254/178254      age_traveldir [720]
-                0.00    0.00   38489/55492327     getkeyword [54]
-                0.00    0.00  178254/178254      age_piracy [959]
------------------------------------------------
-                0.01    0.03  127676/127676      report_plaintext [4]
-[327]    0.1    0.01    0.03  127676         write_travelthru [327]
-                0.00    0.01   57367/57367       count_travelthru [518]
-                0.00    0.01   54735/3398582     travelthru_map [41]
-                0.00    0.00   54735/24887945     locale_string [27]
-                0.00    0.00   54735/34611296     strlcpy [45]
-                0.00    0.00   54735/54735       init_cb [1453]
------------------------------------------------
-                0.00    0.04  470529/470529      parse_symbol <cycle 5> [42]
-[328]    0.1    0.00    0.04  470529         eval_resource [328]
-                0.01    0.01  470529/24887945     locale_string [27]
-                0.01    0.00  941058/13102790     opstack_pop [176]
-                0.00    0.00  470529/13102790     opstack_push [202]
-                0.00    0.00  470529/13259934     resourcename [233]
-                0.00    0.00  470529/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00       2/8892        sp_viewreality [784]
-                0.00    0.00     365/8892        cr_output_region [10]
-                0.00    0.03    8525/8892        describe [35]
-[329]    0.1    0.00    0.04    8892         astralregions [329]
-                0.02    0.00  162996/162996      inhabitable [454]
-                0.00    0.01  163381/459083      findregion [420]
-                0.00    0.01  214975/514146      koor_distance [476]
-                0.00    0.00    8892/8892        r_astral_to_standard [783]
-                0.00    0.00   17784/987488      is_astral [479]
-                0.00    0.00  163381/18647447     getplane [596]
-                0.00    0.00  163381/3587241     pnormalize [1350]
-                0.00    0.00   39832/192815      add_regionlist [1419]
------------------------------------------------
-                0.01    0.03   32670/32670       demographics [50]
-[330]    0.1    0.01    0.03   32670         horses [330]
-                0.02    0.01  124547/147217      normalvariate [376]
-                0.00    0.00   32670/438629      maxworkingpeasants [473]
-                0.00    0.00   29173/12246335     ct_find [114]
-                0.00    0.00   29173/10190660     get_curse [143]
-                0.00    0.00    5134/369586      r_connect [474]
-                0.00    0.00    8246/51974272     a_find [65]
-                0.00    0.00   29173/4201030     curse_active [543]
-                0.00    0.00  376714/1160345     rhorses [1369]
-                0.00    0.00  195073/257693      rsethorses [1408]
-                0.00    0.00   62267/62267       get_migrants [1445]
-                0.00    0.00   29173/651711      oldcursename [1381]
------------------------------------------------
-                0.02    0.02  595898/595898      process [7]
-[331]    0.1    0.02    0.02  595898         follow_unit [331]
-                0.01    0.00 1135305/55492327     getkeyword [54]
-                0.00    0.00  595258/1629412     LongHunger [536]
-                0.00    0.00     816/1437425     cansee [22]
-                0.00    0.00     900/888603      findunit [123]
-                0.00    0.00     900/284005      read_unitid [413]
-                0.00    0.00    1425/69432       getparam [681]
-                0.00    0.00     525/228907      getid [483]
-                0.00    0.00     894/779419      a_add [555]
-                0.00    0.00    1425/1027665     init_order [613]
-                0.00    0.00    1039/3358315     ship_owner [438]
-                0.00    0.00     519/115276      can_move [736]
-                0.00    0.00     631/51974272     a_find [65]
-                0.00    0.00       5/15102       cmistake [718]
-                0.00    0.00      13/1297        hunted_dir [1055]
-                0.00    0.00     894/894         make_follow [1589]
-                0.00    0.00     703/1291427     set_order [1365]
-                0.00    0.00     525/28818       findship [1483]
------------------------------------------------
-                0.00    0.00      86/3351853     tolua_unit_get_name [1194]
-                0.00    0.00   45033/3351853     report_template [87]
-                0.00    0.01  923633/3351853     cr_output_unit [19]
-                0.00    0.03 2383101/3351853     write_unitname [148]
-[332]    0.1    0.00    0.04 3351853         unit_getname [332]
-                0.01    0.01  537193/24887945     locale_string [27]
-                0.00    0.01  537193/2818494     rc_name_s [260]
------------------------------------------------
-                             7791002             parse_symbol <cycle 5> [42]
-                0.48    0.57 1379793/1380398     translate [28]
-[333]    0.1    0.03    0.01 9170795         parse <cycle 5> [333]
-                0.00    0.01  832876/832876      parse_int [649]
-                             5612941             parse_symbol <cycle 5> [42]
-                             2724978             parse_string <cycle 5> [86]
------------------------------------------------
-                             4953357             effskill <cycle 1> [100]
-                0.00    0.00      20/12320804     target_resists_magic [1154]
-                0.00    0.00      48/12320804     spy_message [1038]
-                0.05    0.09 1953681/12320804     spskill [53]
-[334]    0.1    0.04    0.00 6907106         eff_skill <cycle 1> [334]
-                             6907105             get_modifier <cycle 1> [55]
------------------------------------------------
-                                                 <spontaneous>
-[335]    0.1    0.04    0.00                 cb_get_kv [335]
------------------------------------------------
-                0.00    0.03  595472/595472      live [73]
-[336]    0.1    0.00    0.03  595472         age_unit [336]
-                0.00    0.02  595472/71815034     get_race [12]
-                0.00    0.01  595472/987488      is_astral [479]
-                0.00    0.00 1194391/129167539     u_race [89]
-                0.00    0.00    1363/1363        age_skeleton [1008]
-                0.00    0.00     688/688         age_zombie [1019]
-                0.00    0.00     708/708         age_ghoul [1024]
-                0.00    0.00     295/295         age_dragon [1098]
-                0.00    0.00     182/182         age_firedragon [1123]
-                0.00    0.00     266/266         age_undead [1196]
-                0.00    0.00       1/1           age_illusion [1308]
------------------------------------------------
-                0.00    0.00      17/2599554     recruit_dracoids [837]
-                0.00    0.00      38/2599554     expandstealing [807]
-                0.00    0.00    4800/2599554     expandloot [816]
-                0.00    0.00   10979/2599554     expandwork [277]
-                0.00    0.00   16560/2599554     expandentertainment [637]
-                0.00    0.00   32382/2599554     help_feed [678]
-                0.00    0.00  283759/2599554     expandselling [93]
-                0.01    0.00  726086/2599554     get_food [88]
-                0.02    0.00 1524933/2599554     expandtax [278]
-[337]    0.1    0.03    0.00 2599554         change_money [337]
-                0.00    0.00 2599554/56052475     get_resourcetype [194]
-                0.00    0.00   87928/257723      i_remove [1407]
-                0.00    0.00   87928/374425      i_free [1400]
-                0.00    0.00   86907/822780      i_new [1375]
-                0.00    0.00   86907/87004       i_add [1442]
------------------------------------------------
-                0.00    0.00      17/884940      create_order [341]
-                0.00    0.00      48/884940      spy_message [1038]
-                0.00    0.00    1258/884940      report_template [87]
-                0.00    0.03  883617/884940      eval_int [268]
-[338]    0.1    0.00    0.03  884940         itoa10 [338]
-                0.03    0.00  884940/5985780     itoab [107]
------------------------------------------------
-                0.01    0.02  178254/178254      process [7]
-[339]    0.1    0.01    0.02  178254         maintain_buildings [339]
-                0.00    0.02   44190/44190       maintain [478]
-                0.00    0.00  178254/12246335     ct_find [114]
-                0.00    0.00    8710/967784      msg_message [132]
-                0.00    0.00    8710/593636      building_owner [232]
-                0.00    0.00   46175/10190660     get_curse [143]
-                0.00    0.00    8710/392959      add_message [434]
-                0.00    0.00   46175/4201030     curse_active [543]
-                0.00    0.00     295/12265       r_addmessage [779]
-                0.00    0.00    8710/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.03    3438/3438        prepare_report [8]
-[340]    0.1    0.00    0.03    3438         prepare_lighthouse [340]
-                0.02    0.01    3438/3438        get_regions_distance [372]
-                0.00    0.00   87604/745269      add_seen_nb [386]
-                0.00    0.00    3438/3438        lighthouse_range [728]
------------------------------------------------
-                0.00    0.00       2/447808      create_ship [1014]
-                0.00    0.00       2/447808      default_order [902]
-                0.00    0.00       8/447808      do_combatmagic [825]
-                0.00    0.00      17/447808      recruit_dracoids [837]
-                0.00    0.00      23/447808      do_combatspell [702]
-                0.00    0.00      43/447808      get_money_for_dragon [1087]
-                0.00    0.00      99/447808      piracy_cmd [660]
-                0.00    0.00     119/447808      plan_dragon [273]
-                0.00    0.00     133/447808      travel [81]
-                0.00    0.00     325/447808      build_building [696]
-                0.00    0.00     736/447808      monster_attack [764]
-                0.00    0.00    5384/447808      teach_cmd [272]
-                0.00    0.00    8450/447808      cycle_route [375]
-                0.00    0.00   31277/447808      plan_monsters [52]
-                0.00    0.01   83723/447808      monster_move [129]
-                0.00    0.02  317467/447808      monster_learn [269]
-[341]    0.1    0.00    0.03  447808         create_order [341]
-                0.01    0.01  447808/1929215     create_order_i [175]
-                0.01    0.00  425391/34611296     strlcpy [45]
-                0.00    0.00  425391/36653945     wrptr [178]
-                0.00    0.00    1196/5100840     itoa36 [116]
-                0.00    0.00      17/884940      itoa10 [338]
------------------------------------------------
-                0.03    0.00       1/1           movement [47]
-[342]    0.1    0.03    0.00       1         move_hunters [342]
-                0.00    0.00     475/475         follow_ship [749]
-                0.00    0.00   85384/55492327     getkeyword [54]
-                0.00    0.00     597/69432       getparam [681]
-                0.00    0.00     475/115276      can_move [736]
-                0.00    0.00     597/1027665     init_order [613]
-                0.00    0.00     475/1629412     LongHunger [536]
------------------------------------------------
-                0.01    0.00  112140/297010      castle_name_i [513]
-                0.02    0.00  184870/297010      buildingeffsize [367]
-[343]    0.1    0.03    0.00  297010         bt_effsize [343]
-                0.00    0.00  297010/4984610     config_get_int [348]
------------------------------------------------
-                0.01    0.00    3115/13500       drifting_ships [490]
-                0.01    0.00    3135/13500       sinkships [475]
-                0.02    0.00    7250/13500       ship_ready [354]
-[344]    0.1    0.03    0.00   13500         crew_skill [344]
-                0.00    0.00   20459/12320804     effskill <cycle 1> [100]
------------------------------------------------
-                0.01    0.00     136/388         path_find [523]
-                0.01    0.01     252/388         path_exists [431]
-[345]    0.1    0.02    0.01     388         internal_path_find [345]
-                0.01    0.00  132629/162862      allowed_dragon [564]
-                0.00    0.00   67291/369586      r_connect [474]
-                0.00    0.00  125069/152803      new_node [1427]
-                0.00    0.00     388/428         free_nodes [1604]
-                0.00    0.00      48/157830      allowed_fly [1425]
------------------------------------------------
-                0.01    0.02       1/1           process [7]
-[346]    0.1    0.01    0.02       1         regenerate_aura [346]
-                0.00    0.02  595454/1441945     is_mage [262]
-                0.00    0.00    1870/5358        max_spellpoints [755]
-                0.00    0.00     508/967784      msg_message [132]
-                0.00    0.00    1870/1873        set_spellpoints [933]
-                0.00    0.00    1870/4915        get_spellpoints [872]
-                0.00    0.00     508/508         regeneration [942]
-                0.00    0.00     508/392959      add_message [434]
-                0.00    0.00     508/752645      chance [495]
-                0.00    0.00     508/12246335     ct_find [114]
-                0.00    0.00     508/10190660     get_curse [143]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00     508/26995       inside_building [1486]
-                0.00    0.00     508/26164       building_is_active [1488]
-                0.00    0.00     508/651711      oldcursename [1381]
-                0.00    0.00     508/432940      curse_geteffect [1395]
-                0.00    0.00     508/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.01  923633/2272376     cr_output_unit [19]
-                0.00    0.02 1348743/2272376     bufunit [17]
-[347]    0.1    0.00    0.03 2272376         u_description [347]
-                0.00    0.02  399769/778818      describe_race [267]
-                0.01    0.00 2554959/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       1/4984610     report_computer [9]
-                0.00    0.00       1/4984610     recruit_init [1334]
-                0.00    0.00       1/4984610     tax_cmd [697]
-                0.00    0.00       1/4984610     immigration [294]
-                0.00    0.00       1/4984610     demographics [50]
-                0.00    0.00       1/4984610     nmr_death [1333]
-                0.00    0.00       1/4984610     regenerate_aura [346]
-                0.00    0.00       1/4984610     rotting_herbs [284]
-                0.00    0.00       1/4984610     roqf_factor [1329]
-                0.00    0.00       1/4984610     rule_blessed_harvest [1327]
-                0.00    0.00       1/4984610     rule_alliance_limit [1332]
-                0.00    0.00       1/4984610     rule_faction_limit [1331]
-                0.00    0.00       1/4984610     rule_give [1328]
-                0.00    0.00       1/4984610     allied_skilllimit [1330]
-                0.00    0.00       2/4984610     rule_stealth_anon [1325]
-                0.00    0.00       2/4984610     potion_water_of_life [945]
-                0.00    0.00       2/4984610     processorders [6]
-                0.00    0.00       2/4984610     rule_region_owners [1323]
-                0.00    0.00       2/4984610     game_id [1324]
-                0.00    0.00       4/4984610     init_processor [1310]
-                0.00    0.00      12/4984610     demon_skillchange [826]
-                0.00    0.00      16/4984610     init_rules [1272]
-                0.00    0.00      27/4984610     NMRTimeout [1264]
-                0.00    0.00      29/4984610     study_cost [433]
-                0.00    0.00      42/4984610     loot_cmd [873]
-                0.00    0.00      47/4984610     walkingcapacity [403]
-                0.00    0.00     105/4984610     terraform_resources [986]
-                0.00    0.00     111/4984610     LongHunger [536]
-                0.00    0.00     118/4984610     rule_transfermen [1204]
-                0.00    0.00     191/4984610     CheckOverload [1180]
-                0.00    0.00     207/4984610     rule_force_leave [1175]
-                0.00    0.00     225/4984610     spellpower [1000]
-                0.00    0.00     226/4984610     fumble [973]
-                0.00    0.00     226/4984610     skill_limit [1172]
-                0.00    0.00     231/4984610     RemoveNMRNewbie [1171]
-                0.00    0.00     348/4984610     begin_potion [1096]
-                0.00    0.00     457/4984610     FactionSpells [1136]
-                0.00    0.00     587/4984610     build_building [696]
-                0.00    0.00     688/4984610     can_leave [1112]
-                0.00    0.00     702/4984610     max_transfers [1109]
-                0.00    0.00    1085/4984610     get_friends [895]
-                0.00    0.00    1398/4984610     nmr_warnings [878]
-                0.00    0.00    1725/4984610     max_magicians [915]
-                0.00    0.00    3659/4984610     ExpensiveMigrants [1004]
-                0.00    0.00   14510/4984610     sail [181]
-                0.00    0.00   16493/4984610     NewbieImmunity [900]
-                0.00    0.00   30250/4984610     peasants [658]
-                0.00    0.00   32679/4984610     rule_auto_taxation [855]
-                0.00    0.00   40046/4984610     rule_stealth_other [530]
-                0.00    0.00   41882/4984610     GiveRestriction [836]
-                0.00    0.00   47562/4984610     rule_random_progress [829]
-                0.00    0.00   66058/4984610     ShipSpeedBonus [806]
-                0.00    0.00  163027/4984610     markets_module [748]
-                0.00    0.00  178254/4984610     drifting_ships [490]
-                0.00    0.00  178257/4984610     get_food [88]
-                0.00    0.00  189341/4984610     rule_autowork [738]
-                0.00    0.00  297010/4984610     bt_effsize [343]
-                0.00    0.00  472366/4984610     produceexp_days [406]
-                0.00    0.00  835616/4984610     study_cmd [105]
-                0.00    0.00  987612/4984610     get_astralplane [482]
-                0.00    0.01 1381157/4984610     unit_max_hp [136]
-[348]    0.1    0.01    0.02 4984610         config_get_int [348]
-                0.01    0.01 4984610/5065285     get_param_int [422]
------------------------------------------------
-                0.00    0.03    1594/1594        economics [78]
-[349]    0.1    0.00    0.03    1594         expandrecruit [349]
-                0.00    0.03    1594/1594        do_recruiting [351]
-                0.00    0.00    1594/264251      rsetpeasants [545]
-                0.00    0.00    1594/2605004     rpeasants [435]
-                0.00    0.00    4782/4782        select_recruitment [1079]
-                0.00    0.00    1594/1594        free_recruitments [1568]
------------------------------------------------
-                0.00    0.01   42665/252446      sail [181]
-                0.00    0.03  209781/252446      make_route [289]
-[350]    0.1    0.00    0.03  252446         movewhere [350]
-                0.01    0.02  154829/300501      move_blocked [283]
-                0.00    0.01  159343/293362      get_direction [496]
-                0.00    0.00   10913/369586      r_connect [474]
-                0.00    0.00       1/1           get_translation [1304]
------------------------------------------------
-                0.00    0.03    1594/1594        expandrecruit [349]
-[351]    0.1    0.00    0.03    1594         do_recruiting [351]
-                0.00    0.03    1667/1667        add_recruits [371]
-                0.00    0.00    1670/860263      use_pooled [39]
-                0.00    0.00    1670/541982      get_pooled [104]
-                0.00    0.00    3340/56052475     get_resourcetype [194]
-                0.00    0.00    1670/129167539     u_race [89]
-                0.00    0.00      60/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.03     574/574         do_battle [64]
-[352]    0.1    0.00    0.03     574         battle_flee [352]
-                0.00    0.02  116914/116914      fleechance [408]
-                0.00    0.01   14191/14191       flee [638]
-                0.00    0.00   58461/752645      chance [495]
-                0.00    0.00    8962/1381157     unit_max_hp [136]
-                0.00    0.00    3743/71815034     get_race [12]
-                0.00    0.00    8132/129167539     u_race [89]
-                0.00    0.00    8962/8962        hpflee [1519]
------------------------------------------------
-                0.02    0.01       1/1           process [7]
-[353]    0.1    0.02    0.01       1         restack_units [353]
-                0.01    0.00 1130203/55492327     getkeyword [54]
-                0.00    0.00      20/888603      findunit [123]
-                0.00    0.00      20/228907      getid [483]
-                0.00    0.00      20/2281756     gettoken [195]
-                0.00    0.00       6/593636      building_owner [232]
-                0.00    0.00      20/1787006     findparam [458]
-                0.00    0.00      20/1027665     init_order [613]
-                0.00    0.00       2/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.03    7254/7254        sail [181]
-[354]    0.1    0.00    0.03    7254         ship_ready [354]
-                0.02    0.00    7250/13500       crew_skill [344]
-                0.00    0.01    7230/10344       cansail [469]
-                0.00    0.00    7254/12320804     effskill <cycle 1> [100]
-                0.00    0.00    7254/3358315     ship_owner [438]
-                0.00    0.00      61/15102       cmistake [718]
-                0.00    0.00       4/41248       msg_feedback [647]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00    7250/13500       enoughsailors [1512]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     698/1956810     transfermen [899]
-                0.00    0.00    2419/1956810     set_level [774]
-                0.00    0.00    2423/1956810     learn_skill [471]
-                0.03    0.00 1951270/1956810     read_unit [74]
-[355]    0.1    0.03    0.00 1956810         add_skill [355]
-                0.00    0.00    1725/1725        max_magicians [915]
------------------------------------------------
-                0.03    0.00       1/1           tolua_process_orders [5]
-[356]    0.1    0.03    0.00       1         reset_game [356]
-                0.00    0.00       1/3           init_locales [947]
------------------------------------------------
-                0.00    0.00       1/967         promotion_cmd [917]
-                0.00    0.00      45/967         count_maxmigrants [730]
-                0.00    0.01     230/967         report_computer [9]
-                0.00    0.01     230/967         report_plaintext [4]
-                0.00    0.01     461/967         maxheroes [492]
-[357]    0.1    0.00    0.03     967         count_all [357]
-                0.03    0.00     967/2247        count_faction [219]
------------------------------------------------
-                0.00    0.00     174/4457785     findresourcetype [1181]
-                0.00    0.00     371/4457785     add_translation [1145]
-                0.00    0.00     628/4457785     add_itemname_cb [980]
-                0.00    0.00     648/4457785     add_resourcename_cb [977]
-                0.00    0.00  191379/4457785     finditemtype [735]
-                0.01    0.00  995991/4457785     get_skill [423]
-                0.01    0.00 1481616/4457785     get_keyword [274]
-                0.01    0.00 1786978/4457785     findparam [458]
-[358]    0.1    0.03    0.00 4457785         transliterate [358]
-                0.00    0.00     130/46391457     unicode_utf8_to_ucs4 [177]
------------------------------------------------
-                0.03    0.00  195108/195108      report_template [87]
-[359]    0.1    0.03    0.00  195108         rps_nowrap [359]
------------------------------------------------
-                0.01    0.00   51976/130250      cr_output_region [10]
-                0.02    0.00   78274/130250      report_plaintext [4]
-[360]    0.1    0.03    0.00  130250         r_getmessages [360]
------------------------------------------------
-                                                 <spontaneous>
-[361]    0.1    0.03    0.00                 a_select [361]
------------------------------------------------
-                                                 <spontaneous>
-[362]    0.1    0.03    0.00                 ql_foreachx [362]
------------------------------------------------
-                0.00    0.00      78/13399069     eval_weight [1102]
-                0.00    0.00     124/13399069     eval_unit_dative [1076]
-                0.00    0.00     604/13399069     eval_spell [961]
-                0.00    0.00     834/13399069     eval_resources [907]
-                0.00    0.00    1196/13399069     eval_localize [922]
-                0.00    0.00    1520/13399069     eval_race [882]
-                0.00    0.00   19545/13399069     eval_ship [740]
-                0.00    0.00   25857/13399069     eval_int36 [729]
-                0.00    0.00   40099/13399069     eval_skill [671]
-                0.00    0.00   46224/13399069     eval_faction [685]
-                0.00    0.00   67213/13399069     eval_building [494]
-                0.00    0.00  108560/13399069     eval_trail [634]
-                0.00    0.00  123513/13399069     eval_order [472]
-                0.00    0.00  127674/13399069     eval_trailto [369]
-                0.00    0.00  127788/13399069     eval_direction [608]
-                0.00    0.00  470529/13399069     eval_resource [328]
-                0.00    0.00  515550/13399069     eval_region [245]
-                0.00    0.00  799427/13399069     eval_unit [223]
-                0.00    0.00  883617/13399069     eval_int [268]
-                0.01    0.00 2725583/13399069     parse_string <cycle 5> [86]
-                0.01    0.00 3656767/13399069     add_variable [607]
-                0.01    0.00 3656767/13399069     translate [28]
-[363]    0.1    0.03    0.00 13399069         balloc [363]
------------------------------------------------
-                0.03    0.00 2818494/2818494     rc_name_s [260]
-[364]    0.1    0.03    0.00 2818494         rc_name [364]
------------------------------------------------
-                0.00    0.00      58/21345834     sp_summon_familiar [1025]
-                0.00    0.00     119/21345834     plan_dragon [273]
-                0.00    0.00     222/21345834     steal_cmd [766]
-                0.00    0.00     231/21345834     setstealth_cmd [182]
-                0.00    0.00     569/21345834     u_seteffstealth [1199]
-                0.00    0.00    2127/21345834     cr_output_unit [19]
-                0.00    0.00    2129/21345834     read_unit [74]
-                0.00    0.00    2457/21345834     set_level [774]
-                0.00    0.00    3387/21345834     lighthouse_range [728]
-                0.00    0.00    6428/21345834     cansee_unit [684]
-                0.00    0.00    8034/21345834     u_geteffstealth [919]
-                0.00    0.00   23237/21345834     check_leuchtturm [786]
-                0.00    0.00   33139/21345834     statistics [70]
-                0.00    0.00   36937/21345834     cr_output_region [10]
-                0.00    0.00   45891/21345834     get_level [934]
-                0.00    0.00  419518/21345834     plan_monsters [52]
-                0.00    0.00 1188531/21345834     eff_stealth [163]
-                0.00    0.00 2363341/21345834     cansee [22]
-                0.01    0.00 7179079/21345834     rc_skillmod [140]
-                0.01    0.00 10030400/21345834     effskill <cycle 1> [100]
-[365]    0.1    0.03    0.00 21345834         skill_enabled [365]
------------------------------------------------
-                0.00    0.00       1/451774      reshow_other [823]
-                0.00    0.00       1/451774      usetprivate [1041]
-                0.00    0.00       8/451774      melt_iceberg [1082]
-                0.00    0.00      23/451774      set_group [1048]
-                0.00    0.00      40/451774      plan_monsters [52]
-                0.00    0.00      40/451774      deathcounts [843]
-                0.00    0.00     105/451774      change_effect [982]
-                0.00    0.00    4738/451774      expandselling [93]
-                0.00    0.00    5679/451774      expandbuying [49]
-                0.00    0.00   23562/451774      a_age [418]
-                0.01    0.02  417577/451774      study_cmd [105]
-[366]    0.1    0.01    0.02  451774         a_remove [366]
-                0.01    0.00  451774/451774      a_unlink [559]
-                0.01    0.00  451774/454395      a_free [558]
------------------------------------------------
-                0.00    0.00       3/184870      bewegung_blockiert_von [631]
-                0.00    0.00    3778/184870      expandselling [93]
-                0.00    0.00   11599/184870      building_protection [708]
-                0.01    0.02  169490/184870      default_wage [173]
-[367]    0.1    0.01    0.02  184870         buildingeffsize [367]
-                0.02    0.00  184870/297010      bt_effsize [343]
------------------------------------------------
-                0.00    0.00    1529/2275967     give_men [857]
-                0.00    0.00    2062/2275967     create_unit [296]
-                0.00    0.01  923633/2275967     cr_output_unit [19]
-                0.01    0.01 1348743/2275967     bufunit [17]
-[368]    0.1    0.01    0.02 2275967         get_racename [368]
-                0.02    0.00 2275967/51974272     a_find [65]
------------------------------------------------
-                0.00    0.03  127674/127674      parse_symbol <cycle 5> [42]
-[369]    0.1    0.00    0.03  127674         eval_trailto [369]
-                0.00    0.01  127674/146950      f_regionid_s [477]
-                0.00    0.01  127674/785221      trailinto [207]
-                0.00    0.00  127674/13102790     opstack_pop [176]
-                0.00    0.00  127674/13102790     opstack_push [202]
-                0.00    0.00  127674/13399069     balloc [363]
------------------------------------------------
-                0.02    0.01       1/1           randomevents [91]
-[370]    0.1    0.02    0.01       1         orc_growth [370]
-                0.01    0.00  187111/2624955     has_skill [193]
-                0.00    0.00   91483/12246335     ct_find [114]
-                0.00    0.00   91483/10190660     get_curse [143]
------------------------------------------------
-                0.00    0.03    1667/1667        do_recruiting [351]
-[371]    0.1    0.00    0.03    1667         add_recruits [371]
-                0.00    0.02    1298/2889        create_unit [296]
-                0.00    0.01    1298/1794        remove_unit [499]
-                0.00    0.00    1667/2375        equip_unit [775]
-                0.00    0.00    1298/1936        transfermen [899]
-                0.00    0.00     369/1381157     unit_max_hp [136]
-                0.00    0.00    1667/34611296     strlcpy [45]
-                0.00    0.00    4632/129167539     u_race [89]
-                0.00    0.00      58/967784      msg_message [132]
-                0.00    0.00      58/392959      add_message [434]
-                0.00    0.00    3334/987128      strlcat [1374]
-                0.00    0.00    1667/2742        get_equipment [1551]
-                0.00    0.00     369/603524      set_number [1387]
-                0.00    0.00      58/1009028     msg_release [1373]
------------------------------------------------
-                0.02    0.01    3438/3438        prepare_lighthouse [340]
-[372]    0.1    0.02    0.01    3438         get_regions_distance [372]
-                0.00    0.01  200928/298951      distance [599]
-                0.00    0.00   88016/1087065     get_neighbours [480]
------------------------------------------------
-                                                 <spontaneous>
-[373]    0.1    0.00    0.03                 ql_set_find_ex [373]
-                0.03    0.00 2506526/7252744     cmp_transfer [203]
------------------------------------------------
-                0.00    0.00       1/6963        move_iceberg [1094]
-                0.00    0.00      15/6963        drifting_ships [490]
-                0.02    0.01    6947/6963        sail [181]
-[374]    0.1    0.02    0.01    6963         move_ship [374]
-                0.00    0.00   10653/109785      move_unit [421]
-                0.00    0.00    6962/6962        leave_trail [704]
-                0.00    0.00    6952/113844      translist [430]
-                0.00    0.00   10679/106919      mark_travelthru [610]
-                0.00    0.00   10679/12320804     effskill <cycle 1> [100]
-                0.00    0.00    9105/472418      produceexp [322]
------------------------------------------------
-                0.00    0.00    6947/103187      sail [181]
-                0.00    0.03   96240/103187      travel_route [147]
-[375]    0.1    0.00    0.03  103187         cycle_route [375]
-                0.00    0.00  133973/24887945     locale_string [27]
-                0.00    0.01  133973/293362      get_direction [496]
-                0.01    0.00    8450/14326       replace_order [526]
-                0.00    0.00  142423/2281756     gettoken [195]
-                0.00    0.00   63020/17451017     strlcpy_w [67]
-                0.00    0.00  103187/55492327     getkeyword [54]
-                0.00    0.00    8450/447808      create_order [341]
-                0.00    0.00    8450/1027665     init_order [613]
-                0.00    0.00  188092/987128      strlcat [1374]
-                0.00    0.00    8450/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00     174/147217      peasant_luck_effect [984]
-                0.00    0.00   22496/147217      rotting_herbs [284]
-                0.02    0.01  124547/147217      horses [330]
-[376]    0.1    0.02    0.01  147217         normalvariate [376]
-                0.00    0.01  403284/1336242     rng_injectable_double [396]
------------------------------------------------
-                0.00    0.00       7/15361       start_battle [297]
-                0.00    0.00      30/15361       buy [707]
-                0.00    0.00      39/15361       sell [498]
-                0.00    0.00      42/15361       loot_cmd [873]
-                0.00    0.00      66/15361       travel [81]
-                0.00    0.00     278/15361       entertain_cmd [665]
-                0.00    0.00     956/15361       tax_cmd [697]
-                0.00    0.00    1716/15361       recruit [650]
-                0.00    0.01    3100/15361       create_item [617]
-                0.00    0.01    3141/15361       do_work [612]
-                0.00    0.01    5986/15361       herbsearch [493]
-[377]    0.1    0.00    0.03   15361         is_guarded [377]
-                0.00    0.02 1841323/8452306     is_guardian_r [186]
-                0.00    0.01   70836/70836       is_guardian_u [626]
------------------------------------------------
-                0.00    0.03  174677/174677      cr_output_resources [238]
-[378]    0.1    0.00    0.03  174677         cr_output_resource [378]
-                0.01    0.01  174677/4434556     translate [75]
-                0.00    0.00  174677/24887945     locale_string [27]
-                0.00    0.00  174677/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.00     112/94420       give_unit [952]
-                0.01    0.02   94308/94420       give_item [126]
-[379]    0.1    0.01    0.02   94420         add_give [379]
-                0.00    0.01   80478/967784      msg_message [132]
-                0.00    0.00   80478/392959      add_message [434]
-                0.00    0.00    1141/15102       cmistake [718]
-                0.00    0.00   80478/1009028     msg_release [1373]
------------------------------------------------
-                0.01    0.02  325825/325825      monster_kills_peasants [230]
-[380]    0.1    0.01    0.02  325825         scared_by_monster [380]
-                0.00    0.01  197727/201744      lovar [644]
-                0.00    0.00  325825/7641081     genrand_int31 [171]
-                0.00    0.00  325825/51974272     a_find [65]
-                0.00    0.00  255939/2605004     rpeasants [435]
-                0.00    0.00  325825/129167539     u_race [89]
-                0.00    0.00    3152/3152        scareaway [768]
-                0.00    0.00    2699/967784      msg_message [132]
-                0.00    0.00    2699/392959      add_message [434]
-                0.00    0.00    2699/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.03       1/1           processorders [6]
-[381]    0.1    0.00    0.03       1         update_spells [381]
-                0.02    0.01     231/231         faction_getmages [382]
-                0.00    0.00     396/396         show_new_spells [889]
-                0.00    0.00    1717/2426021     get_mage [198]
-                0.00    0.00     165/12320804     effskill <cycle 1> [100]
-                0.00    0.00     224/457         FactionSpells [1136]
-                0.00    0.00       1/3902878     get_monsters [293]
-                0.00    0.00     231/3203        faction_get_spellbook [1543]
------------------------------------------------
-                0.02    0.01     231/231         update_spells [381]
-[382]    0.1    0.02    0.01     231         faction_getmages [382]
-                0.00    0.01  176043/2426021     get_mage [198]
-                0.00    0.00    1717/12320804     effskill <cycle 1> [100]
------------------------------------------------
-                0.00    0.03   10600/10600       process [7]
-[383]    0.1    0.00    0.03   10600         make_cmd [383]
-                0.00    0.01    5988/5988        herbsearch [493]
-                0.00    0.01    3626/3626        create_item [617]
-                0.00    0.00     621/621         build_building [696]
-                0.00    0.00   15176/2281756     gettoken [195]
-                0.00    0.00     312/312         continue_ship [813]
-                0.00    0.00    4259/4261        findbuildingtype [866]
-                0.00    0.00    4259/4259        findshiptype [869]
-                0.00    0.00    3086/24887945     locale_string [27]
-                0.00    0.00   10600/1787006     findparam [458]
-                0.00    0.00   10600/1027665     init_order [613]
-                0.00    0.00      41/41          build_road [950]
-                0.00    0.00     621/228907      getid [483]
-                0.00    0.00    4259/191379      finditemtype [735]
-                0.00    0.00       2/2           create_ship [1014]
-                0.00    0.00    1543/13259934     resourcename [233]
-                0.00    0.00      41/293362      get_direction [496]
-                0.00    0.00      10/41248       msg_feedback [647]
-                0.00    0.00     976/18647447     getplane [596]
-                0.00    0.00      10/392959      add_message [434]
-                0.00    0.00      10/1009028     msg_release [1373]
------------------------------------------------
-                0.01    0.02       1/1           movement [47]
-[384]    0.1    0.01    0.02       1         init_transportation [384]
-                0.02    0.00 1693146/55492327     getkeyword [54]
-                0.00    0.00     145/282847      getunit [205]
-                0.00    0.00      37/37          transport [1011]
-                0.00    0.00       4/1437425     cansee [22]
-                0.00    0.00      33/279395      weight [459]
-                0.00    0.00     111/1027665     init_order [613]
-                0.00    0.00      74/115276      can_move [736]
-                0.00    0.00       4/41248       msg_feedback [647]
-                0.00    0.00      74/1629412     LongHunger [536]
-                0.00    0.00       4/15102       cmistake [718]
-                0.00    0.00      20/779419      a_add [555]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00      20/779868      a_new [1376]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/1177511     giveitem_read [1262]
-                0.00    0.00       7/1177511     has_ao_healing [1269]
-                0.00    0.00       9/1177511     default_spoil [1144]
-                0.00    0.00      15/1177511     init_oldpotions [1235]
-                0.00    0.00      66/1177511     add_items [1169]
-                0.00    0.00     121/1177511     tolua_unit_add_item [1103]
-                0.00    0.00     185/1177511     it_get_or_create [1115]
-                0.00    0.00     242/1177511     canfly [1031]
-                0.00    0.00   47287/1177511     canswim [682]
-                0.00    0.00   85655/1177511     movement_speed [155]
-                0.00    0.01  448447/1177511     read_items [320]
-                0.00    0.01  595476/1177511     rotting_herbs [284]
-[385]    0.1    0.00    0.03 1177511         it_find [385]
-                0.02    0.00 1177511/1177511     it_alias [453]
-                0.01    0.00 1177511/2032164     rt_find [597]
------------------------------------------------
-                0.00    0.00   61444/745269      cb_add_seen [94]
-                0.00    0.00   87604/745269      prepare_lighthouse [340]
-                0.01    0.01  596221/745269      prepare_report [8]
-[386]    0.1    0.01    0.02  745269         add_seen_nb [386]
-                0.01    0.00  745269/1087065     get_neighbours [480]
-                0.00    0.00 1490538/3383689     update_interval [551]
-                0.00    0.00 1014205/1014205     add_seen [1372]
------------------------------------------------
-                0.00    0.00   17247/435022      teach_cmd [272]
-                0.00    0.02  417775/435022      study_cmd [105]
-[387]    0.1    0.00    0.03  435022         getskill [387]
-                0.00    0.01  435022/2281756     gettoken [195]
-                0.00    0.00  435012/996009      get_skill [423]
------------------------------------------------
-                0.00    0.00      13/840577      read_planes [1164]
-                0.00    0.00     233/840577      readfaction [767]
-                0.00    0.00    1694/840577      read_groups [782]
-                0.00    0.00   65258/840577      read_game [62]
-                0.00    0.01  178254/840577      readregion [209]
-                0.00    0.02  595125/840577      read_unit [74]
-[388]    0.1    0.00    0.03  840577         read_attribs [388]
-                0.00    0.03  840577/840577      a_read_orig [389]
-                0.00    0.00       1/1           a_upgradekeys [1314]
------------------------------------------------
-                0.00    0.03  840577/840577      read_attribs [388]
-[389]    0.1    0.00    0.03  840577         a_read_orig [389]
-                0.00    0.03  251814/251814      a_read_i [390]
-                0.00    0.00  251814/251874      __at_hashkey [3279]
------------------------------------------------
-                0.00    0.03  251814/251814      a_read_orig [389]
-[390]    0.1    0.00    0.03  251814         a_read_i [390]
-                0.00    0.01   39836/39836       read_of [524]
-                0.01    0.00  251814/251814      at_find [563]
-                0.00    0.00  251365/779419      a_add [555]
-                0.00    0.00    4020/4020        curse_read [770]
-                0.00    0.00    1557/1557        read_handler [799]
-                0.00    0.00    1138/1138        read_targetregion [870]
-                0.00    0.00     760/760         read_familiar [893]
-                0.00    0.00     760/760         read_magician [894]
-                0.00    0.00    2491/2491        a_readeffect [1052]
-                0.00    0.00     449/454395      a_free [558]
-                0.00    0.00       2/2           wormhole_read [1238]
-                0.00    0.00  251814/779868      a_new [1376]
-                0.00    0.00   58412/58518       a_readint [1448]
-                0.00    0.00   56503/56503       read_group [1451]
-                0.00    0.00   34382/34382       a_readshorts [1474]
-                0.00    0.00   34220/34220       shiptrail_read [1475]
-                0.00    0.00    8191/8191        read_seenspell [1522]
-                0.00    0.00    7085/7085        a_readprivate [1531]
-                0.00    0.00    2091/2091        read_mage [1559]
-                0.00    0.00     136/136         a_readstring [1642]
-                0.00    0.00     106/106         a_readkey [1648]
-                0.00    0.00      68/68          a_readchars [1660]
-                0.00    0.00      56/56          dict_read [1676]
------------------------------------------------
-                0.00    0.03       1/1           quit [276]
-[391]    0.1    0.00    0.03       1         remove_idle_players [391]
-                0.02    0.01       1/1           destroyfaction [392]
-                0.00    0.00     231/231         RemoveNMRNewbie [1171]
-                0.00    0.00       1/3902878     get_monsters [293]
-                0.00    0.00       1/27          NMRTimeout [1264]
-                0.00    0.00       1/1           nmr_death [1333]
-                0.00    0.00       2/64          log_info [1339]
------------------------------------------------
-                0.02    0.01       1/1           remove_idle_players [391]
-[392]    0.1    0.02    0.01       1         destroyfaction [392]
-                0.01    0.00  595441/51974272     a_find [65]
-                0.00    0.00       9/1803        gift_items [891]
-                0.00    0.00       9/264251      rsetpeasants [545]
-                0.00    0.00       1/40046       rule_stealth_other [530]
-                0.00    0.00       9/7120688     get_money [187]
-                0.00    0.00       9/2605004     rpeasants [435]
-                0.00    0.00      18/129167539     u_race [89]
-                0.00    0.00       9/2186159     rsetmoney [553]
-                0.00    0.00       9/4666665     rmoney [452]
-                0.00    0.00   39954/1380007     get_otherfaction [1362]
-                0.00    0.00       9/1160345     rhorses [1369]
-                0.00    0.00       9/257693      rsethorses [1408]
-                0.00    0.00       9/603524      set_number [1387]
-                0.00    0.00       1/1342832     handle_event [1363]
-                0.00    0.00       1/1           funhash [1806]
------------------------------------------------
-                0.00    0.02  843545/843545      parse_symbol <cycle 5> [42]
-[393]    0.1    0.00    0.02  843545         eval_if [393]
-                0.02    0.00 2530635/13102790     opstack_pop [176]
-                0.01    0.00  843545/13102790     opstack_push [202]
------------------------------------------------
-                0.00    0.00       9/178263      melt_iceberg [1082]
-                0.01    0.01  178254/178263      icebergs [285]
-[394]    0.1    0.01    0.01  178263         drown [394]
-                0.01    0.00  127590/1375380     remove_empty_units_in_region [134]
-                0.00    0.00    7544/47287       canswim [682]
-                0.00    0.00    7560/71815034     get_race [12]
-                0.00    0.00    7560/129167539     u_race [89]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       3/242         canfly [1031]
-                0.00    0.00       3/392959      add_message [434]
-                0.00    0.00       3/3178        scale_number [969]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.01    0.01 1336242/1336242     rng_injectable_double [396]
-[395]    0.1    0.01    0.01 1336242         genrand_real2 [395]
-                0.01    0.00 1336242/11253756     genrand_int32 [150]
------------------------------------------------
-                0.00    0.00      58/1336242     peasant_luck_effect [984]
-                0.00    0.00    1016/1336242     regeneration [942]
-                0.00    0.00    7074/1336242     immigration [294]
-                0.00    0.00   25985/1336242     plagues [781]
-                0.00    0.00   30250/1336242     peasants [658]
-                0.00    0.00   32878/1336242     demographics [50]
-                0.00    0.00   83094/1336242     ntimespprob [723]
-                0.00    0.01  403284/1336242     normalvariate [376]
-                0.00    0.01  752603/1336242     chance [495]
-[396]    0.1    0.00    0.02 1336242         rng_injectable_double [396]
-                0.01    0.01 1336242/1336242     genrand_real2 [395]
------------------------------------------------
-                0.00    0.01  104830/218422      cr_output_building [239]
-                0.00    0.01  113592/218422      nr_building [141]
-[397]    0.1    0.00    0.02  218422         report_building [397]
-                0.01    0.01  218422/218425      buildingtype [414]
-                0.00    0.00  218422/1106528     is_building_type [554]
------------------------------------------------
-                0.01    0.01  655564/655564      parse_symbol <cycle 5> [42]
-[398]    0.1    0.01    0.01  655564         eval_eq [398]
-                0.01    0.00 1311128/13102790     opstack_pop [176]
-                0.00    0.00  655564/13102790     opstack_push [202]
------------------------------------------------
-                0.00    0.02       1/1           tolua_write_reports [1]
-[399]    0.1    0.00    0.02       1         init_reports [399]
-                0.02    0.00  178254/178254      reorder_units [400]
-                0.00    0.00       1/1           check_messages_exist [1141]
-                0.00    0.00       1/2           create_directories [1294]
------------------------------------------------
-                0.02    0.00  178254/178254      init_reports [399]
-[400]    0.1    0.02    0.00  178254         reorder_units [400]
-                0.00    0.00   37894/593636      building_owner [232]
-                0.00    0.00   18974/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.02 1766225/1766225     nr_curses [48]
-[401]    0.1    0.00    0.02 1766225         nr_curses_i [401]
-                0.00    0.01   15186/1380398     nr_render [25]
-                0.01    0.00   15186/2742237     paragraph [26]
-                0.00    0.00   13217/26045       msg_curse [664]
-                0.00    0.00    2069/967784      msg_message [132]
-                0.00    0.00   15186/2494242     newline [594]
-                0.00    0.00   15186/1009028     msg_release [1373]
-                0.00    0.00   13217/26045       curse_cansee [1489]
------------------------------------------------
-                0.00    0.02     754/754         new_units [282]
-[402]    0.1    0.00    0.02     754         checkunitnumber [402]
-                0.02    0.00     754/2247        count_faction [219]
-                0.00    0.00     754/754         rule_alliance_limit [1332]
-                0.00    0.00     754/1214        rule_faction_limit [1331]
------------------------------------------------
-                0.00    0.00   12778/96637       canwalk [633]
-                0.00    0.02   83859/96637       reduce_weight [404]
-[403]    0.1    0.00    0.02   96637         walkingcapacity [403]
-                0.00    0.01  179414/12320804     effskill <cycle 1> [100]
-                0.00    0.00   96637/71815034     get_race [12]
-                0.00    0.00   96637/5395063     i_get [130]
-                0.00    0.00   96637/2858912     get_effect [225]
-                0.00    0.00  193274/2032164     rt_find [597]
-                0.00    0.00  193321/129167539     u_race [89]
-                0.00    0.00   96637/96637       personcapacity [795]
-                0.00    0.00      47/4984610     config_get_int [348]
-                0.00    0.00   96637/130867      get_transporters [1431]
------------------------------------------------
-                0.00    0.00     136/83859       plan_dragon [273]
-                0.00    0.02   83723/83859       monster_move [129]
-[404]    0.1    0.00    0.02   83859         reduce_weight [404]
-                0.00    0.02   83859/96637       walkingcapacity [403]
-                0.00    0.00   83859/8302761     get_resource [99]
-                0.00    0.00   83871/56052475     get_resourcetype [194]
-                0.00    0.00      47/47          give_peasants [1060]
-                0.00    0.00      12/931076      change_resource [240]
------------------------------------------------
-                0.02    0.00       1/1           randomevents [91]
-[405]    0.1    0.02    0.00       1         godcurse [405]
-                0.00    0.00   91155/12246335     ct_find [114]
-                0.00    0.00   91155/10190660     get_curse [143]
-                0.00    0.00   91155/4201030     curse_active [543]
-                0.00    0.00   91155/651711      oldcursename [1381]
------------------------------------------------
-                0.02    0.00  472366/472366      produceexp_ex [323]
-[406]    0.1    0.02    0.00  472366         produceexp_days [406]
-                0.00    0.00  472366/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00     249/1121103     make_movement_order [522]
-                0.00    0.00     752/1121103     monster_attack [764]
-                0.00    0.00  105106/1121103     monster_move [129]
-                0.01    0.00  419518/1121103     plan_monsters [52]
-                0.01    0.00  595478/1121103     monster_kills_peasants [230]
-[407]    0.1    0.02    0.00 1121103         monster_is_waiting [407]
-                0.00    0.00 1121103/129167539     u_race [89]
------------------------------------------------
-                0.00    0.02  116914/116914      battle_flee [352]
-[408]    0.1    0.00    0.02  116914         fleechance [408]
-                0.00    0.01  116914/116914      horse_fleeing_bonus [604]
-                0.00    0.01  116914/12320804     effskill <cycle 1> [100]
-                0.00    0.00  116914/71815034     get_race [12]
-                0.00    0.00  116914/51974272     a_find [65]
-                0.00    0.00  116914/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      23/146997      equip_items [1121]
-                0.00    0.00      60/146997      damage_unit [1044]
-                0.00    0.00     174/146997      terraform_resources [986]
-                0.00    0.00    1560/146997      equip_unit_mask [776]
-                0.00    0.00    2491/146997      hunger [808]
-                0.00    0.01   42157/146997      attack [84]
-                0.00    0.02  100532/146997      terminate [242]
-[409]    0.1    0.00    0.02  146997         dice_rand [409]
-                0.02    0.00  146997/146997      term_eval [410]
------------------------------------------------
-                0.02    0.00  146997/146997      dice_rand [409]
-[410]    0.1    0.02    0.00  146997         term_eval [410]
-                0.00    0.00  204245/7641081     genrand_int31 [171]
------------------------------------------------
-                0.02    0.00       1/1           tolua_spawn_dragons [412]
-[411]    0.1    0.02    0.00       1         spawn_dragons [411]
-                0.00    0.00  139786/7641081     genrand_int31 [171]
-                0.00    0.00      20/20          spawn_seaserpent [831]
-                0.00    0.00      10/2889        create_unit [296]
-                0.00    0.00   12205/21517       chaosfactor [1077]
-                0.00    0.00      10/2375        equip_unit [775]
-                0.00    0.00      10/967784      msg_message [132]
-                0.00    0.00      10/2931        name_unit [803]
-                0.00    0.00      10/361         regionname [987]
-                0.00    0.00      10/392959      add_message [434]
-                0.00    0.00      10/24887945     locale_string [27]
-                0.00    0.00      10/10          nrand [1232]
-                0.00    0.00      10/71815034     get_race [12]
-                0.00    0.00      10/752645      chance [495]
-                0.00    0.00      10/2818494     rc_name_s [260]
-                0.00    0.00      20/129167539     u_race [89]
-                0.00    0.00       1/3902879     get_or_create_monsters [292]
-                0.00    0.00      10/49235       log_debug [1245]
-                0.00    0.00  139323/1511812     newterrain [1359]
-                0.00    0.00      10/2742        get_equipment [1551]
-                0.00    0.00      10/1009028     msg_release [1373]
------------------------------------------------
-                                                 <spontaneous>
-[412]    0.1    0.00    0.02                 tolua_spawn_dragons [412]
-                0.02    0.00       1/1           spawn_dragons [411]
------------------------------------------------
-                0.00    0.00     111/284005      steal_cmd [766]
-                0.00    0.00     147/284005      contact_cmd [965]
-                0.00    0.00     900/284005      follow_unit [331]
-                0.00    0.02  282847/284005      getunit [205]
-[413]    0.1    0.00    0.02  284005         read_unitid [413]
-                0.00    0.01  284005/2281756     gettoken [195]
-                0.01    0.00  281303/688711      atoi36 [440]
-                0.00    0.00  283968/534930      isparam [668]
-                0.00    0.00    2665/2665        read_newunitid [739]
------------------------------------------------
-                0.00    0.00       3/218425      new_building [1059]
-                0.01    0.01  218422/218425      report_building [397]
-[414]    0.1    0.01    0.01  218425         buildingtype [414]
-                0.00    0.01  112140/112140      castle_name [512]
-                0.00    0.00   15060/1106528     is_building_type [554]
------------------------------------------------
-                0.02    0.00       1/1           tolua_update_guards [416]
-[415]    0.1    0.02    0.00       1         update_guards [415]
-                0.00    0.00   31357/55350       can_start_guarding [679]
-                0.00    0.00   31351/51974272     a_find [65]
-                0.00    0.00       6/337987      setguard [815]
------------------------------------------------
-                                                 <spontaneous>
-[416]    0.1    0.00    0.02                 tolua_update_guards [416]
-                0.02    0.00       1/1           update_guards [415]
------------------------------------------------
-                0.00    0.00   32670/669051      peasants [658]
-                0.00    0.00   33139/669051      statistics [70]
-                0.00    0.00   36937/669051      cr_output_region [10]
-                0.00    0.00  127676/669051      describe [35]
-                0.00    0.01  438629/669051      maxworkingpeasants [473]
-[417]    0.1    0.00    0.02  669051         production [417]
-                0.01    0.00  669051/12246335     ct_find [114]
-                0.01    0.00  669051/10190660     get_curse [143]
-                0.00    0.00  669051/4201030     curse_active [543]
------------------------------------------------
-                0.00    0.00   46184/839202      age_building [712]
-                0.00    0.00  178254/839202      age_region [659]
-                0.01    0.00  614764/839202      ageing [185]
-[418]    0.1    0.02    0.00  839202         a_age [418]
-                0.00    0.00   23562/451774      a_remove [366]
-                0.00    0.00     106/106         age_reduceproduction [1017]
-                0.00    0.00       2/2           wormhole_age [1130]
-                0.00    0.00   37453/37453       shiptrail_age [1468]
-                0.00    0.00    4052/4052        curse_age [1538]
-                0.00    0.00    1522/1522        age_unit [1573]
-                0.00    0.00     186/186         leftship_age [1635]
------------------------------------------------
-                0.00    0.02     230/230         report_plaintext [4]
-[419]    0.1    0.00    0.02     230         allies [419]
-                0.00    0.02    1888/1888        show_allies [429]
-                0.00    0.00    1888/2742237     paragraph [26]
-                0.00    0.00    1888/24887945     locale_string [27]
-                0.00    0.00    1888/2494242     newline [594]
------------------------------------------------
-                0.00    0.00       1/459083      tolua_get_region [1296]
-                0.00    0.00       5/459083      cast_cmd [760]
-                0.00    0.00     125/459083      tpregion [1085]
-                0.00    0.00    8892/459083      r_astral_to_standard [783]
-                0.00    0.01  108425/459083      update_lighthouse [605]
-                0.00    0.01  163381/459083      astralregions [329]
-                0.00    0.01  178254/459083      readregion [209]
-[420]    0.1    0.00    0.02  459083         findregion [420]
-                0.02    0.00  459083/1006923     rfindhash [271]
------------------------------------------------
-                0.00    0.00       1/109785      wormhole_age [1130]
-                0.00    0.00       2/109785      sp_enterastral [1045]
-                0.00    0.00    2889/109785      create_unit [296]
-                0.00    0.00   10653/109785      move_ship [374]
-                0.00    0.02   96240/109785      travel_route [147]
-[421]    0.1    0.00    0.02  109785         move_unit [421]
-                0.00    0.02  106892/113844      translist [430]
-                0.00    0.00     209/2887        leave [432]
-                0.00    0.00  109781/3383689     update_interval [551]
-                0.00    0.00    2889/760673      addlist [217]
-                0.00    0.00  106892/337987      setguard [815]
------------------------------------------------
-                0.00    0.00      45/5065285     count_maxmigrants [730]
-                0.00    0.00   80630/5065285     armor_bonus [819]
-                0.01    0.01 4984610/5065285     config_get_int [348]
-[422]    0.1    0.01    0.01 5065285         get_param_int [422]
-                0.01    0.00 5065285/26776263     get_param [235]
------------------------------------------------
-                0.00    0.00      12/996009      forget_cmd [1093]
-                0.00    0.00  435012/996009      getskill [387]
-                0.01    0.01  560985/996009      create_data [252]
-[423]    0.1    0.01    0.01  996009         get_skill [423]
-                0.01    0.00  995991/4457785     transliterate [358]
-                0.00    0.00  995991/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00       2/1297        summon_allies [925]
-                0.00    0.02    1295/1297        join_battle [425]
-[424]    0.1    0.00    0.02    1297         make_fighter [424]
-                0.01    0.00    1297/1297        AllianceAuto [535]
-                0.00    0.01   56927/546579      weapon_skill [221]
-                0.00    0.00     863/3147        i_canuse [569]
-                0.00    0.00   17902/7641081     genrand_int31 [171]
-                0.00    0.00    2909/12320804     effskill <cycle 1> [100]
-                0.00    0.00     552/552         make_side [876]
-                0.00    0.00    2594/83224       trollbelts [677]
-                0.00    0.00    2594/5395063     i_get [130]
-                0.00    0.00    1297/2858912     get_effect [225]
-                0.00    0.00    7054/129167539     u_race [89]
-                0.00    0.00     489/71815034     get_race [12]
-                0.00    0.00    1593/51974272     a_find [65]
-                0.00    0.00     406/12246335     ct_find [114]
-                0.00    0.00    3891/56052475     get_resourcetype [194]
-                0.00    0.00     406/10190660     get_curse [143]
-                0.00    0.00    1729/4301501     statusrow [550]
-                0.00    0.00     326/7910500     r_isforest [199]
-                0.00    0.00  110533/110533      weapon_weight [1435]
-                0.00    0.00    3531/2379316     resource2weapon [1353]
-                0.00    0.00    1297/1297        add_tactics [1579]
-                0.00    0.00    1295/1295        find_side [1581]
-                0.00    0.00     768/1429        set_attacker [1576]
-                0.00    0.00     314/314         CavalrySkill [1608]
-                0.00    0.00     156/1380007     get_otherfaction [1362]
------------------------------------------------
-                0.00    0.00     345/3203        join_allies [693]
-                0.00    0.02    2858/3203        start_battle [297]
-[425]    0.1    0.00    0.02    3203         join_battle [425]
-                0.00    0.02    1295/1297        make_fighter [424]
-                0.00    0.00    1774/51974272     a_find [65]
-                0.00    0.00     661/1429        set_attacker [1576]
------------------------------------------------
-                0.01    0.01   16132/16132       teach_cmd [272]
-[426]    0.1    0.01    0.01   16132         teach_unit [426]
-                0.01    0.00    1302/1302        academy_can_teach [527]
-                0.00    0.00   11749/779419      a_add [555]
-                0.00    0.00   16132/51974272     a_find [65]
-                0.00    0.00   16132/16132       magic_lowskill [897]
-                0.00    0.00   11749/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      99/597806      eff_spelllevel [845]
-                0.00    0.00     365/597806      unit_getspell [758]
-                0.00    0.00     492/597806      u_hasspell [951]
-                0.00    0.00    1711/597806      cr_output_spells [639]
-                0.00    0.02  595139/597806      bufunit [17]
-[427]    0.1    0.00    0.02  597806         unit_get_spellbook [427]
-                0.00    0.02  597806/2426021     get_mage [198]
-                0.00    0.00    2972/3203        faction_get_spellbook [1543]
------------------------------------------------
-                0.00    0.02     230/230         report_computer [9]
-[428]    0.1    0.00    0.02     230         report_crtypes [428]
-                0.02    0.00    7964/7964        nrt_string [443]
-                0.00    0.00    7964/5168717     nrt_find [98]
-                0.00    0.00    7964/618305      escape_string [556]
-                0.00    0.00    7964/7964        nrt_section [1524]
------------------------------------------------
-                0.00    0.02    1888/1888        allies [419]
-[429]    0.1    0.00    0.02    1888         show_allies [429]
-                0.01    0.00  110660/10375491     alliedgroup [34]
-                0.01    0.00  293954/34611296     strlcpy [45]
-                0.00    0.00   65837/24887945     locale_string [27]
-                0.00    0.00   55330/1295787     factionname [247]
-                0.00    0.00  293954/36653945     wrptr [178]
------------------------------------------------
-                0.00    0.00    6952/113844      move_ship [374]
-                0.00    0.02  106892/113844      move_unit [421]
-[430]    0.1    0.00    0.02  113844         translist [430]
-                0.01    0.00  113844/760673      addlist [217]
-                0.01    0.00  113844/113845      choplist [565]
------------------------------------------------
-                0.00    0.00       3/252         farcasting [842]
-                0.00    0.02     249/252         plan_dragon [273]
-[431]    0.1    0.00    0.02     252         path_exists [431]
-                0.01    0.01     252/388         internal_path_find [345]
------------------------------------------------
-                0.00    0.00       2/2887        summon_allies [925]
-                0.00    0.00       2/2887        create_ship [1014]
-                0.00    0.00       9/2887        build_building [696]
-                0.00    0.00     136/2887        aftermath [701]
-                0.00    0.00     191/2887        enter_ship [733]
-                0.00    0.00     209/2887        move_unit [421]
-                0.00    0.00     222/2887        leave_cmd [721]
-                0.00    0.00     323/2887        enter_building [695]
-                0.01    0.01    1793/2887        remove_unit [499]
-[432]    0.1    0.01    0.01    2887         leave [432]
-                0.00    0.01     224/224         leave_ship [540]
-                0.00    0.00    1125/1125        leave_building [1009]
-                0.00    0.00     734/95593       can_leave [1112]
------------------------------------------------
-                0.00    0.00     404/418134      academy_can_teach [527]
-                0.02    0.00  417730/418134      study_cmd [105]
-[433]    0.1    0.02    0.00  418134         study_cost [433]
-                0.00    0.00     724/45891       get_level [934]
-                0.00    0.00      29/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00       1/392959      report_action [860]
-                0.00    0.00       1/392959      sp_summon_familiar [1025]
-                0.00    0.00       1/392959      sp_summonshadowlords [1034]
-                0.00    0.00       1/392959      allocate_resource [752]
-                0.00    0.00       1/392959      plant [1184]
-                0.00    0.00       1/392959      planttrees [1206]
-                0.00    0.00       1/392959      breedtrees [1148]
-                0.00    0.00       1/392959      promotion_cmd [917]
-                0.00    0.00       1/392959      age_stonecircle [1021]
-                0.00    0.00       1/392959      verify_building [1255]
-                0.00    0.00       1/392959      cast_cmd [760]
-                0.00    0.00       1/392959      use_skillpotion [1233]
-                0.00    0.00       2/392959      msg_to_ship_inmates [1286]
-                0.00    0.00       2/392959      travel [81]
-                0.00    0.00       2/392959      sp_bloodsacrifice [1209]
-                0.00    0.00       2/392959      sp_charmingsong [993]
-                0.00    0.00       2/392959      magic [157]
-                0.00    0.00       2/392959      create_icebergs [538]
-                0.00    0.00       2/392959      make_wormhole [1150]
-                0.00    0.00       3/392959      begin_potion [1096]
-                0.00    0.00       3/392959      give_control_cmd [287]
-                0.00    0.00       3/392959      drown [394]
-                0.00    0.00       3/392959      melt_iceberg [1082]
-                0.00    0.00       3/392959      use_healingpotion [1119]
-                0.00    0.00       4/392959      wormhole_age [1130]
-                0.00    0.00       4/392959      caught_target [1003]
-                0.00    0.00       4/392959      init_transportation [384]
-                0.00    0.00       4/392959      make_route [289]
-                0.00    0.00       4/392959      ship_ready [354]
-                0.00    0.00       4/392959      give_men [857]
-                0.00    0.00       4/392959      quit [276]
-                0.00    0.00       4/392959      move_iceberg [1094]
-                0.00    0.00       4/392959      factionorders [983]
-                0.00    0.00       5/392959      buy [707]
-                0.00    0.00       5/392959      sp_flying_ship [1064]
-                0.00    0.00       6/392959      msg_send_region [1210]
-                0.00    0.00      10/392959      make_cmd [383]
-                0.00    0.00      10/392959      tax_cmd [697]
-                0.00    0.00      10/392959      spy_cmd [990]
-                0.00    0.00      10/392959      spawn_dragons [411]
-                0.00    0.00      12/392959      sp_summonundead [896]
-                0.00    0.00      12/392959      forget_cmd [1093]
-                0.00    0.00      13/392959      volcano_destruction [1022]
-                0.00    0.00      15/392959      do_fumble [1062]
-                0.00    0.00      19/392959      enter_building [695]
-                0.00    0.00      22/392959      spy_message [1038]
-                0.00    0.00      24/392959      cancast [833]
-                0.00    0.00      33/392959      travel_i [92]
-                0.00    0.00      37/392959      volcano_update [981]
-                0.00    0.00      37/392959      build_road [950]
-                0.00    0.00      38/392959      expandstealing [807]
-                0.00    0.00      39/392959      deliverMail [966]
-                0.00    0.00      39/392959      display_item [1054]
-                0.00    0.00      39/392959      random_growl [1065]
-                0.00    0.00      41/392959      dissolve_units [241]
-                0.00    0.00      47/392959      caddmessage [1070]
-                0.00    0.00      51/392959      potion_water_of_life [945]
-                0.00    0.00      51/392959      chaos [848]
-                0.00    0.00      55/392959      nmr_warnings [878]
-                0.00    0.00      56/392959      use_bloodpotion [935]
-                0.00    0.00      57/392959      start_battle [297]
-                0.00    0.00      58/392959      add_recruits [371]
-                0.00    0.00      76/392959      steal_cmd [766]
-                0.00    0.00      84/392959      do_work [612]
-                0.00    0.00      88/392959      hunger [808]
-                0.00    0.00     100/392959      age_reduceproduction [1017]
-                0.00    0.00     110/392959      peasants [658]
-                0.00    0.00     115/392959      build_ship [839]
-                0.00    0.00     119/392959      syntax_error [1036]
-                0.00    0.00     120/392959      plagues [781]
-                0.00    0.00     121/392959      msg_send_faction [1042]
-                0.00    0.00     149/392959      create_potion [821]
-                0.00    0.00     170/392959      breedhorses [742]
-                0.00    0.00     170/392959      guard_on_cmd [656]
-                0.00    0.00     266/392959      spawn_undead [629]
-                0.00    0.00     328/392959      mail_cmd [844]
-                0.00    0.00     345/392959      end_potion [814]
-                0.00    0.00     349/392959      research_cmd [886]
-                0.00    0.00     377/392959      manufacture [759]
-                0.00    0.00     508/392959      regenerate_aura [346]
-                0.00    0.00     567/392959      eaten_by_monster [468]
-                0.00    0.00     581/392959      build_building [696]
-                0.00    0.00     681/392959      absorbed_by_monster [804]
-                0.00    0.00    1225/392959      give_item [126]
-                0.00    0.00    1323/392959      teach_cmd [272]
-                0.00    0.00    2699/392959      scared_by_monster [380]
-                0.00    0.00    2938/392959      split_allocations [743]
-                0.00    0.00    5049/392959      piracy_cmd [660]
-                0.00    0.00    5966/392959      herbsearch [493]
-                0.00    0.00    7043/392959      sail [181]
-                0.00    0.00    8710/392959      maintain_buildings [339]
-                0.00    0.00    8797/392959      cmistake [718]
-                0.00    0.00   11358/392959      expandbuying [49]
-                0.00    0.00   12265/392959      r_addmessage [779]
-                0.00    0.00   12448/392959      expandselling [93]
-                0.00    0.00   14939/392959      maintain [478]
-                0.00    0.00   20258/392959      study_cmd [105]
-                0.00    0.00   29028/392959      give_cmd [102]
-                0.00    0.00   31214/392959      message_faction [716]
-                0.00    0.00   34409/392959      add_income [625]
-                0.00    0.00   80478/392959      add_give [379]
-                0.00    0.00   96460/392959      travel_route [147]
-[434]    0.1    0.02    0.00  392959         add_message [434]
-                0.00    0.00  392959/392959      msg_addref [1399]
------------------------------------------------
-                0.00    0.00       9/2605004     destroyfaction [392]
-                0.00    0.00      19/2605004     dissolve_units [241]
-                0.00    0.00      30/2605004     res_changepeasants [1200]
-                0.00    0.00      45/2605004     region_getresource [1058]
-                0.00    0.00      71/2605004     transfermen [899]
-                0.00    0.00      74/2605004     plan_dragon [273]
-                0.00    0.00     120/2605004     plagues [781]
-                0.00    0.00     172/2605004     randomevents [91]
-                0.00    0.00     246/2605004     battle_effects [1125]
-                0.00    0.00    1594/2605004     expandrecruit [349]
-                0.00    0.00    2692/2605004     eaten_by_monster [468]
-                0.00    0.00    3455/2605004     absorbed_by_monster [804]
-                0.00    0.00    4690/2605004     expandselling [93]
-                0.00    0.00    5494/2605004     expandbuying [49]
-                0.00    0.00    6569/2605004     scareaway [768]
-                0.00    0.00   14863/2605004     sell [498]
-                0.00    0.00   31670/2605004     spawn_undead [629]
-                0.00    0.00   32670/2605004     demographics [50]
-                0.00    0.00   32670/2605004     writeregion [519]
-                0.00    0.00   33139/2605004     statistics [70]
-                0.00    0.00   54055/2605004     report_plaintext [4]
-                0.00    0.00   67774/2605004     peasants [658]
-                0.00    0.00   91145/2605004     report_resources [210]
-                0.00    0.00  119504/2605004     cr_output_region [10]
-                0.00    0.00  144763/2605004     calculate_emigration [603]
-                0.00    0.00  178254/2605004     get_food [88]
-                0.00    0.00  179832/2605004     describe [35]
-                0.00    0.00  185509/2605004     immigration [294]
-                0.00    0.00  255939/2605004     scared_by_monster [380]
-                0.00    0.00  342640/2605004     expandwork [277]
-                0.00    0.00  361137/2605004     produce [29]
-                0.00    0.00  454160/2605004     make_summary [21]
-[435]    0.1    0.02    0.00 2605004         rpeasants [435]
------------------------------------------------
-                0.00    0.00   71390/7417541     reserve_i [213]
-                0.00    0.00  116873/7417541     weapon_effskill [168]
-                0.00    0.00  771861/7417541     armedmen [151]
-                0.00    0.00 1849529/7417541     get_pooled [104]
-                0.01    0.00 4607888/7417541     use_pooled [39]
-[436]    0.1    0.02    0.00 7417541         urace [436]
------------------------------------------------
-                0.00    0.00       1/4558423     get_translation [1304]
-                0.00    0.00       2/4558423     register_special_direction [1259]
-                0.00    0.00       2/4558423     init_directions [1143]
-                0.00    0.00       2/4558423     init_terrains_translation [1129]
-                0.00    0.00       2/4558423     init_options_translation [1157]
-                0.00    0.00       4/4558423     init_locale [948]
-                0.00    0.00       6/4558423     findoption [1241]
-                0.00    0.00       6/4558423     init_translations [1033]
-                0.00    0.00       6/4558423     free_locales [1311]
-                0.00    0.00     107/4558423     init_keyword [1179]
-                0.00    0.00     338/4558423     findrace [1030]
-                0.00    0.00  293362/4558423     get_direction [496]
-                0.00    0.00  995991/4558423     get_skill [423]
-                0.01    0.00 1481616/4558423     get_keyword [274]
-                0.01    0.00 1786978/4558423     findparam [458]
-[437]    0.1    0.02    0.00 4558423         get_translations [437]
------------------------------------------------
-                0.00    0.00       1/3358315     move_iceberg [1094]
-                0.00    0.00       2/3358315     restack_units [353]
-                0.00    0.00       5/3358315     give_control_cmd [287]
-                0.00    0.00       6/3358315     validate_pirate [1051]
-                0.00    0.00      10/3358315     name_cmd [835]
-                0.00    0.00      17/3358315     display_cmd [859]
-                0.00    0.00      18/3358315     leave_ship [540]
-                0.00    0.00      24/3358315     is_moving_ship [1231]
-                0.00    0.00      31/3358315     renumber_cmd [780]
-                0.00    0.00     195/3358315     mayboard [1046]
-                0.00    0.00     322/3358315     piracy_cmd [660]
-                0.00    0.00     475/3358315     follow_ship [749]
-                0.00    0.00    1039/3358315     follow_unit [331]
-                0.00    0.00    3128/3358315     drifting_ships [490]
-                0.00    0.00    7093/3358315     report_template [87]
-                0.00    0.00    7254/3358315     ship_ready [354]
-                0.00    0.00    7269/3358315     move_cmd [66]
-                0.00    0.00   15828/3358315     sinkships [475]
-                0.00    0.00   17286/3358315     movement [47]
-                0.00    0.00   18974/3358315     reorder_units [400]
-                0.00    0.00   27416/3358315     write_unit [97]
-                0.00    0.00   38156/3358315     score [23]
-                0.00    0.00   66134/3358315     shipspeed [669]
-                0.00    0.00  179761/3358315     cr_output_curses [69]
-                0.00    0.00  179761/3358315     cr_output_region [10]
-                0.00    0.00  180598/3358315     nr_curses [48]
-                0.01    0.00  875741/3358315     count_cb [231]
-                0.01    0.00 1731771/3358315     travelthru_cansee [180]
-[438]    0.1    0.02    0.00 3358315         ship_owner [438]
-                0.00    0.00    1511/1529        ship_owner_ex [1571]
------------------------------------------------
-                0.00    0.00      36/2903884     runhash [1247]
-                0.00    0.00    1848/2903884     uunhash [1049]
-                0.00    0.00  178290/2903884     rhash [737]
-                0.00    0.00  598069/2903884     uhash [667]
-                0.01    0.00 1006923/2903884     rfindhash [271]
-                0.01    0.00 1118718/2903884     ufindhash [109]
-[439]    0.1    0.02    0.00 2903884         jenkins_hash [439]
------------------------------------------------
-                0.00    0.00       2/688711      tolua_atoi36 [1299]
-                0.00    0.00       3/688711      tolua_getkey [1281]
-                0.00    0.00       4/688711      parse_ids [852]
-                0.00    0.00       4/688711      forbiddenid [1280]
-                0.00    0.00       5/688711      tolua_toid [1274]
-                0.00    0.00       6/688711      addparam_building [1261]
-                0.00    0.00      16/688711      addparam_unit [1214]
-                0.00    0.00      22/688711      addparam_ship [1212]
-                0.00    0.00      69/688711      renumber_cmd [780]
-                0.00    0.00     209/688711      setstealth_cmd [182]
-                0.01    0.00  178254/688711      tolua_region_getkey [628]
-                0.01    0.00  228814/688711      getid [483]
-                0.01    0.00  281303/688711      read_unitid [413]
-[440]    0.1    0.02    0.00  688711         atoi36 [440]
------------------------------------------------
-                0.00    0.00     303/635885      create_castorder [1066]
-                0.00    0.00    1670/635885      recruit [650]
-                0.00    0.00    3110/635885      default_order [902]
-                0.00    0.00   14326/635885      replace_order [526]
-                0.00    0.00   41255/635885      var_copy_order [734]
-                0.02    0.00  575221/635885      update_long_order [270]
-[441]    0.1    0.02    0.00  635885         copy_order [441]
------------------------------------------------
-                0.02    0.00  178254/178254      new_region [275]
-[442]    0.1    0.02    0.00  178254         hash_uid [442]
------------------------------------------------
-                0.02    0.00    7964/7964        report_crtypes [428]
-[443]    0.1    0.02    0.00    7964         nrt_string [443]
------------------------------------------------
-                0.00    0.00       1/30          tolua_settings_eressea_settings_set00 [773]
-                0.00    0.00       1/30          disable_feature [771]
-                0.02    0.00      28/30          json_settings [467]
-[444]    0.1    0.02    0.00      30         config_set [444]
-                0.00    0.00      30/33          set_param [1689]
------------------------------------------------
-                                                 <spontaneous>
-[445]    0.1    0.02    0.00                 bin_w_brk [445]
------------------------------------------------
-                                                 <spontaneous>
-[446]    0.1    0.02    0.00                 bin_w_str [446]
------------------------------------------------
-                                                 <spontaneous>
-[447]    0.1    0.02    0.00                 fs_readln [447]
------------------------------------------------
-                                                 <spontaneous>
-[448]    0.1    0.02    0.00                 ql_push [448]
------------------------------------------------
-                                                 <spontaneous>
-[449]    0.1    0.02    0.00                 tolua_unit_get_faction [449]
------------------------------------------------
-                                                 <spontaneous>
-[450]    0.1    0.02    0.00                 wang_hash [450]
------------------------------------------------
-                0.00    0.00    2889/24935046     create_unit [296]
-                0.00    0.00 4181205/24935046     remove_empty_units_in_region [134]
-                0.02    0.00 20750952/24935046     alliedgroup [34]
-[451]    0.1    0.02    0.00 24935046         faction_alive [451]
------------------------------------------------
-                0.00    0.00       9/4666665     destroyfaction [392]
-                0.00    0.00      17/4666665     give_money [484]
-                0.00    0.00      36/4666665     expandloot [816]
-                0.00    0.00      38/4666665     gift_items [891]
-                0.00    0.00      41/4666665     region_getresource [1058]
-                0.00    0.00      59/4666665     get_money_for_dragon [1087]
-                0.00    0.00      74/4666665     plan_dragon [273]
-                0.00    0.00    4629/4666665     expandselling [93]
-                0.00    0.00   12922/4666665     plagues [781]
-                0.00    0.00   16560/4666665     expandentertainment [637]
-                0.00    0.00   27694/4666665     all_money [529]
-                0.00    0.00   31725/4666665     statistics [70]
-                0.00    0.00   32670/4666665     peasants [658]
-                0.00    0.00   32670/4666665     writeregion [519]
-                0.00    0.00   36937/4666665     cr_output_region [10]
-                0.00    0.00   79772/4666665     entertainmoney [643]
-                0.00    0.00   91145/4666665     report_resources [210]
-                0.00    0.00   97652/4666665     make_summary [21]
-                0.00    0.00  178254/4666665     expandwork [277]
-                0.00    0.00  222964/4666665     describe [35]
-                0.00    0.00  356508/4666665     produce [29]
-                0.00    0.00  394406/4666665     expandbuying [49]
-                0.01    0.00 3049883/4666665     expandtax [278]
-[452]    0.1    0.02    0.00 4666665         rmoney [452]
------------------------------------------------
-                0.02    0.00 1177511/1177511     it_find [385]
-[453]    0.1    0.02    0.00 1177511         it_alias [453]
------------------------------------------------
-                0.02    0.00  162996/162996      astralregions [329]
-[454]    0.1    0.02    0.00  162996         inhabitable [454]
------------------------------------------------
-                0.00    0.00     230/20836359     show_alliances_cr [1248]
-                0.00    0.00     230/20836359     report_computer [9]
-                0.00    0.00     460/20836359     report_plaintext [4]
-                0.00    0.00     464/20836359     get_addresses [20]
-                0.02    0.00 20834975/20836359     autoalliance [179]
-[455]    0.1    0.02    0.00 20836359         f_get_alliance [455]
------------------------------------------------
-                0.02    0.00 10375461/10375461     alliedgroup [34]
-[456]    0.1    0.02    0.00 10375461         ally_mode [456]
------------------------------------------------
-                0.00    0.00       1/1206547     tolua_get_region [1296]
-                0.00    0.00  178254/1206547     readregion [209]
-                0.02    0.00 1028292/1206547     koor_distance [476]
-[457]    0.1    0.02    0.00 1206547         findplane [457]
------------------------------------------------
-                0.00    0.00      20/1787006     restack_units [353]
-                0.00    0.00     115/1787006     combatspell_cmd [898]
-                0.00    0.00     176/1787006     breed_cmd [741]
-                0.00    0.00     322/1787006     cast_cmd [760]
-                0.00    0.00     461/1787006     setstealth_cmd [182]
-                0.00    0.00     677/1787006     ally_cmd [877]
-                0.00    0.00    1700/1787006     status_cmd [904]
-                0.00    0.00    6530/1787006     findparam_ex [926]
-                0.00    0.00    7650/1787006     getparam [681]
-                0.00    0.00   10600/1787006     make_cmd [383]
-                0.00    0.00   15797/1787006     sell [498]
-                0.00    0.00   45456/1787006     give_cmd [102]
-                0.00    0.00   71388/1787006     reserve_i [213]
-                0.00    0.00  279151/1787006     readorders [43]
-                0.00    0.00  362487/1787006     isparam [668]
-                0.00    0.01  984476/1787006     unitorders [46]
-[458]    0.1    0.00    0.02 1787006         findparam [458]
-                0.01    0.00 1786978/4457785     transliterate [358]
-                0.01    0.00 1786978/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00       2/279395      sp_enterastral [1045]
-                0.00    0.00      33/279395      init_transportation [384]
-                0.00    0.00   34221/279395      eff_weight [683]
-                0.00    0.00   70174/279395      getshipweight [212]
-                0.01    0.01  174965/279395      cr_output_unit [19]
-[459]    0.1    0.01    0.01  279395         weight [459]
-                0.00    0.01  279395/5395063     i_get [130]
-                0.00    0.00  279395/129167539     u_race [89]
-                0.00    0.00  279395/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.02       1/1           tolua_config_eressea_config_read00 [461]
-[460]    0.1    0.00    0.02       1         config_read [460]
-                0.00    0.02       1/1           config_parse [462]
-                0.00    0.00       1/573         join_path [1016]
------------------------------------------------
-                                                 <spontaneous>
-[461]    0.1    0.00    0.02                 tolua_config_eressea_config_read00 [461]
-                0.00    0.02       1/1           config_read [460]
------------------------------------------------
-                0.00    0.02       1/1           config_read [460]
-[462]    0.1    0.00    0.02       1         config_parse [462]
-                0.00    0.02       1/1           json_config <cycle 2> [464]
-                0.00    0.00       1/3           init_locales [947]
------------------------------------------------
-[463]    0.1    0.00    0.02       1+4       <cycle 2 as a whole> [463]
-                0.00    0.02       4             json_config <cycle 2> [464]
-                0.00    0.00       1             json_include <cycle 2> [1283]
------------------------------------------------
-                                   3             json_include <cycle 2> [1283]
-                0.00    0.02       1/1           config_parse [462]
-[464]    0.1    0.00    0.02       4         json_config <cycle 2> [464]
-                0.00    0.02       1/1           json_settings [467]
-                0.00    0.00       1/1           json_disable_features [772]
-                0.00    0.00       1/1           json_keywords [1124]
-                0.00    0.00       1/1           json_terrains [1190]
-                0.00    0.00       4/5           reset_locales [1751]
-                0.00    0.00       1/1           json_prefixes [1812]
-                0.00    0.00       1/1           init_terrains [1810]
-                                   1             json_include <cycle 2> [1283]
------------------------------------------------
-                0.00    0.01   96240/192556      travel_route [147]
-                0.00    0.01   96316/192556      movement_speed [155]
-[465]    0.1    0.00    0.02  192556         canride [465]
-                0.01    0.01  192556/12320804     effskill <cycle 1> [100]
-                0.00    0.00   21443/21443       ridingcapacity [694]
-                0.00    0.00   21443/34221       eff_weight [683]
-                0.00    0.00  577668/56052475     get_resourcetype [194]
-                0.00    0.00  192570/129167539     u_race [89]
------------------------------------------------
-                0.01    0.01  967902/967902      travelthru_map [41]
-[466]    0.1    0.01    0.01  967902         cb_cr_travelthru_unit [466]
-                0.00    0.00   94066/1996097     travelthru_cansee [180]
-                0.00    0.00   75486/2383101     unitname [142]
------------------------------------------------
-                0.00    0.02       1/1           json_config <cycle 2> [464]
-[467]    0.1    0.00    0.02       1         json_settings [467]
-                0.02    0.00      28/30          config_set [444]
------------------------------------------------
-                0.01    0.01  325282/325282      monster_kills_peasants [230]
-[468]    0.1    0.01    0.01  325282         eaten_by_monster [468]
-                0.00    0.00  325282/7641081     genrand_int31 [171]
-                0.00    0.00  325282/51974272     a_find [65]
-                0.00    0.00  325282/129167539     u_race [89]
-                0.00    0.00  325282/56052475     get_resourcetype [194]
-                0.00    0.00     567/967784      msg_message [132]
-                0.00    0.00    1714/201744      lovar [644]
-                0.00    0.00     567/392959      add_message [434]
-                0.00    0.00     567/264251      rsetpeasants [545]
-                0.00    0.00    2692/2605004     rpeasants [435]
-                0.00    0.00     567/37974       deathcounts [843]
-                0.00    0.00     567/1009028     msg_release [1373]
-                0.00    0.00       1/1511812     newterrain [1359]
------------------------------------------------
-                0.00    0.01    3114/10344       drifting_ships [490]
-                0.00    0.01    7230/10344       ship_ready [354]
-[469]    0.1    0.00    0.02   10344         cansail [469]
-                0.02    0.00   10344/47902       getshipweight [212]
-                0.00    0.00   10344/47887       shipcapacity [567]
------------------------------------------------
-                0.00    0.00  160572/4503145     cr_output_ship [152]
-                0.00    0.00  761036/4503145     bufunit [17]
-                0.00    0.01 1335533/4503145     cansee [22]
-                0.00    0.01 2246004/4503145     cr_output_unit [19]
-[470]    0.1    0.00    0.02 4503145         omniscient [470]
-                0.02    0.00 4503145/12560453     rc_changed [256]
-                0.00    0.00       2/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00       7/892307      use_skillpotion [1233]
-                0.00    0.00     167/892307      academy_teaching_bonus [1128]
-                0.00    0.00    2190/892307      demon_skillchange [826]
-                0.00    0.01  417577/892307      study_cmd [105]
-                0.00    0.01  472366/892307      produceexp_ex [323]
-[471]    0.1    0.00    0.02  892307         learn_skill [471]
-                0.00    0.01   45090/47535       sk_set [510]
-                0.00    0.01  479588/7641081     genrand_int31 [171]
-                0.00    0.00    2423/1956810     add_skill [355]
-                0.00    0.00  447624/595705      unit_skill [1391]
------------------------------------------------
-                0.00    0.02  123513/123513      parse_symbol <cycle 5> [42]
-[472]    0.1    0.00    0.02  123513         eval_order [472]
-                0.00    0.01  123513/1470505     write_order [121]
-                0.00    0.00  123513/13102790     opstack_pop [176]
-                0.00    0.00  123513/13102790     opstack_push [202]
-                0.00    0.00  123513/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00   17728/438629      immigration [294]
-                0.00    0.00   32670/438629      horses [330]
-                0.00    0.00   65214/438629      demographics [50]
-                0.00    0.01  144763/438629      calculate_emigration [603]
-                0.00    0.01  178254/438629      produce [29]
-[473]    0.1    0.00    0.02  438629         maxworkingpeasants [473]
-                0.00    0.01  438629/669051      production [417]
-                0.00    0.00  877258/10053919     rtrees [302]
------------------------------------------------
-                0.00    0.00       1/369586      tolua_region_get_next [1302]
-                0.00    0.00       1/369586      move_iceberg [1094]
-                0.00    0.00       1/369586      rroad [508]
-                0.00    0.00       8/369586      sail [181]
-                0.00    0.00       8/369586      rrandneighbour [1221]
-                0.00    0.00      10/369586      terraform_region [932]
-                0.00    0.00      15/369586      chaos [848]
-                0.00    0.00      36/369586      build_road [950]
-                0.00    0.00      58/369586      drift_target [1053]
-                0.00    0.00     291/369586      describe [35]
-                0.00    0.00    2656/369586      scareaway [768]
-                0.00    0.00    5134/369586      horses [330]
-                0.00    0.00   10913/369586      movewhere [350]
-                0.00    0.00   21148/369586      piracy_cmd [660]
-                0.00    0.00   25793/369586      regions_in_range [675]
-                0.00    0.00   46456/369586      calculate_emigration [603]
-                0.00    0.00   51044/369586      cr_borders [135]
-                0.00    0.00   67291/369586      internal_path_find [345]
-                0.00    0.01  138722/369586      get_neighbours [480]
-[474]    0.1    0.00    0.02  369586         r_connect [474]
-                0.01    0.00  369586/1006923     rfindhash [271]
-                0.00    0.00  369586/18647447     getplane [596]
-                0.00    0.00  369586/3587241     pnormalize [1350]
------------------------------------------------
-                0.01    0.01  178254/178254      process [7]
-[475]    0.1    0.01    0.01  178254         sinkships [475]
-                0.01    0.00    3135/13500       crew_skill [344]
-                0.00    0.00   15828/3358315     ship_owner [438]
-                0.00    0.00      96/717218      config_get_flt [714]
-                0.00    0.00    3135/13500       enoughsailors [1512]
-                0.00    0.00      96/160         damage_ship [1641]
-                0.00    0.00       5/6           remove_ship [1748]
------------------------------------------------
-                0.00    0.00     220/514146      farcasting [842]
-                0.00    0.01  214975/514146      astralregions [329]
-                0.00    0.01  298951/514146      distance [599]
-[476]    0.0    0.00    0.02  514146         koor_distance [476]
-                0.02    0.00 1028292/1206547     findplane [457]
-                0.00    0.00  512674/734392      plane_width [1380]
-                0.00    0.00  512674/734392      plane_height [1379]
-                0.00    0.00  512663/512663      koor_distance_orig [1394]
-                0.00    0.00      11/11          koor_distance_wrap_xy [1724]
------------------------------------------------
-                0.00    0.00   19276/146950      eval_trail [634]
-                0.00    0.01  127674/146950      eval_trailto [369]
-[477]    0.0    0.00    0.02  146950         f_regionid_s [477]
-                0.00    0.02  146950/950595      f_regionid [161]
------------------------------------------------
-                0.00    0.02   44190/44190       maintain_buildings [339]
-[478]    0.0    0.00    0.02   44190         maintain [478]
-                0.00    0.01   13492/541982      get_pooled [104]
-                0.00    0.00    6386/860263      use_pooled [39]
-                0.00    0.00   14939/967784      msg_message [132]
-                0.00    0.00   21463/593636      building_owner [232]
-                0.00    0.00   14939/392959      add_message [434]
-                0.00    0.00    6524/216069      config_token [794]
-                0.00    0.00   14939/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     125/987488      tpregion [1085]
-                0.00    0.00     125/987488      r_standard_to_astral [1067]
-                0.00    0.00    8892/987488      r_astral_to_standard [783]
-                0.00    0.00   17784/987488      astralregions [329]
-                0.00    0.00   38612/987488      cr_output_region [10]
-                0.00    0.00   62581/987488      describe [35]
-                0.00    0.00   85643/987488      movement_speed [155]
-                0.00    0.00  178254/987488      spawn_braineaters [505]
-                0.00    0.01  595472/987488      age_unit [336]
-[479]    0.0    0.00    0.02  987488         is_astral [479]
-                0.00    0.02  987488/987612      get_astralplane [482]
-                0.00    0.00  987488/18647447     getplane [596]
------------------------------------------------
-                0.00    0.00      30/1087065     treeman_neighbour [1201]
-                0.00    0.00   84017/1087065     random_neighbour [153]
-                0.00    0.00   88016/1087065     get_regions_distance [372]
-                0.00    0.00  169733/1087065     travelthru_add [609]
-                0.01    0.00  745269/1087065     add_seen_nb [386]
-[480]    0.0    0.01    0.01 1087065         get_neighbours [480]
-                0.00    0.01  138722/369586      r_connect [474]
------------------------------------------------
-                0.00    0.00   66416/2765718     peasants [658]
-                0.00    0.00  178254/2765718     immigration [294]
-                0.01    0.01 2521048/2765718     lifestyle [286]
-[481]    0.0    0.01    0.01 2765718         maintenance_cost [481]
-                0.01    0.00 2521048/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00     124/987612      age_stonecircle [1021]
-                0.00    0.02  987488/987612      is_astral [479]
-[482]    0.0    0.00    0.02  987612         get_astralplane [482]
-                0.01    0.00  987612/987612      getplanebyname [595]
-                0.00    0.00  987612/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      20/228907      restack_units [353]
-                0.00    0.00      22/228907      mail_cmd [844]
-                0.00    0.00     287/228907      factionorders [983]
-                0.00    0.00     307/228907      getship [1018]
-                0.00    0.00     474/228907      follow_ship [749]
-                0.00    0.00     525/228907      follow_unit [331]
-                0.00    0.00     621/228907      make_cmd [383]
-                0.00    0.00     639/228907      do_enter [128]
-                0.00    0.00     754/228907      new_units [282]
-                0.00    0.00     791/228907      getfaction [937]
-                0.00    0.00    2665/228907      read_newunitid [739]
-                0.00    0.01  221802/228907      unitorders [46]
-[483]    0.0    0.00    0.02  228907         getid [483]
-                0.00    0.01  228907/2281756     gettoken [195]
-                0.01    0.00  228814/688711      atoi36 [440]
------------------------------------------------
-                0.02    0.00   51003/51003       give_item [126]
-[484]    0.0    0.02    0.00   51003         give_money [484]
-                0.00    0.00      22/860263      use_pooled [39]
-                0.00    0.00      22/283711      item2resource [561]
-                0.00    0.00      17/2186159     rsetmoney [553]
-                0.00    0.00      17/4666665     rmoney [452]
------------------------------------------------
-                0.02    0.00     464/464         prepare_report [8]
-[485]    0.0    0.02    0.00     464         firstregion [485]
------------------------------------------------
-                0.00    0.01      40/40          plan_dragon [273]
-[486]    0.0    0.00    0.01      40         set_new_dragon_target [486]
-                0.00    0.01   27694/27694       dragon_affinity_value [516]
-                0.00    0.00      40/40          regions_in_range [675]
-                0.00    0.00      25/779419      a_add [555]
-                0.00    0.00      26/51974272     a_find [65]
-                0.00    0.00      25/25          make_targetregion [1701]
------------------------------------------------
-                0.00    0.01     230/481         report_plaintext [4]
-                0.00    0.01     251/481         out_faction [615]
-[487]    0.0    0.00    0.01     481         count_units [487]
-                0.01    0.00     481/2247        count_faction [219]
------------------------------------------------
-                0.00    0.01  110167/110167      cr_render [196]
-[488]    0.0    0.00    0.01  110167         cr_resource [488]
-                0.00    0.01  110167/4434556     translate [75]
-                0.00    0.00  110167/24887945     locale_string [27]
-                0.00    0.00  110167/13259934     resourcename [233]
------------------------------------------------
-                0.01    0.00   41095/41095       cr_render [196]
-[489]    0.0    0.01    0.00   41095         cr_order [489]
-                0.00    0.00   41086/2006524     get_command [108]
------------------------------------------------
-                0.00    0.01  178254/178254      movement [47]
-[490]    0.0    0.00    0.01  178254         drifting_ships [490]
-                0.01    0.00    3115/13500       crew_skill [344]
-                0.00    0.01    3114/10344       cansail [469]
-                0.00    0.00  178254/4984610     config_get_int [348]
-                0.00    0.00  178254/717218      config_get_flt [714]
-                0.00    0.00    3116/12320804     effskill <cycle 1> [100]
-                0.00    0.00      15/6963        move_ship [374]
-                0.00    0.00      15/15          overload [1002]
-                0.00    0.00    3128/3358315     ship_owner [438]
-                0.00    0.00      15/15          drift_target [1053]
-                0.00    0.00      12/967784      msg_message [132]
-                0.00    0.00      22/12246335     ct_find [114]
-                0.00    0.00      15/6962        set_coast [875]
-                0.00    0.00      22/10190660     get_curse [143]
-                0.00    0.00      12/12          msg_to_ship_inmates [1286]
-                0.00    0.00      30/30          overload_start [1295]
-                0.00    0.00      22/4201030     curse_active [543]
-                0.00    0.00    3115/13500       enoughsailors [1512]
-                0.00    0.00      22/651711      oldcursename [1381]
-                0.00    0.00      15/192815      add_regionlist [1419]
-                0.00    0.00      15/109377      free_regionlist [1436]
-                0.00    0.00      15/160         damage_ship [1641]
-                0.00    0.00       1/6           remove_ship [1748]
------------------------------------------------
-                0.00    0.00   17117/137709      terminate [242]
-                0.00    0.01  120592/137709      weapon_effskill [168]
-[491]    0.0    0.00    0.01  137709         CavalryBonus [491]
-                0.00    0.01  137709/12320804     effskill <cycle 1> [100]
-                0.00    0.00  120592/71815034     get_race [12]
-                0.00    0.00  120592/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       1/461         promotion_cmd [917]
-                0.00    0.01     230/461         report_computer [9]
-                0.00    0.01     230/461         report_plaintext [4]
-[492]    0.0    0.00    0.01     461         maxheroes [492]
-                0.00    0.01     461/967         count_all [357]
------------------------------------------------
-                0.00    0.01    5988/5988        make_cmd [383]
-[493]    0.0    0.00    0.01    5988         herbsearch [493]
-                0.00    0.01    5986/15361       is_guarded [377]
-                0.00    0.00    5966/5966        ntimespprob [723]
-                0.00    0.00    5966/967784      msg_message [132]
-                0.00    0.00    5896/472418      produceexp [322]
-                0.00    0.00    5988/12320804     effskill <cycle 1> [100]
-                0.00    0.00    5966/392959      add_message [434]
-                0.00    0.00    5896/11241829     i_change [115]
-                0.00    0.00      22/15102       cmistake [718]
-                0.00    0.00   20639/3166898     rherbs [1351]
-                0.00    0.00    5966/101322      rsetherbs [1438]
-                0.00    0.00    5966/1009028     msg_release [1373]
------------------------------------------------
-                0.01    0.00   67213/67213       parse_symbol <cycle 5> [42]
-[494]    0.0    0.01    0.00   67213         eval_building [494]
-                0.00    0.00   67213/180818      buildingname [621]
-                0.00    0.00   67213/13102790     opstack_pop [176]
-                0.00    0.00   67213/13102790     opstack_push [202]
-                0.00    0.00   67213/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00       2/752645      do_fumble [1062]
-                0.00    0.00       3/752645      target_resists_magic [1154]
-                0.00    0.00      10/752645      spawn_dragons [411]
-                0.00    0.00      20/752645      bewegung_blockiert_von [631]
-                0.00    0.00      24/752645      spy_cmd [990]
-                0.00    0.00      29/752645      terraform_region [932]
-                0.00    0.00      38/752645      equip_unit_mask [776]
-                0.00    0.00      43/752645      get_money_for_dragon [1087]
-                0.00    0.00      98/752645      age_stonecircle [1021]
-                0.00    0.00     126/752645      create_icebergs [538]
-                0.00    0.00     138/752645      terraform_resources [986]
-                0.00    0.00     306/752645      plan_dragon [273]
-                0.00    0.00     508/752645      regenerate_aura [346]
-                0.00    0.00    1062/752645      loot_quota [1013]
-                0.00    0.00    2988/752645      monthly_healing [215]
-                0.00    0.00   58461/752645      battle_flee [352]
-                0.00    0.00   92981/752645      terminate [242]
-                0.00    0.01  595808/752645      plan_monsters [52]
-[495]    0.0    0.00    0.01  752645         chance [495]
-                0.00    0.01  752603/1336242     rng_injectable_double [396]
------------------------------------------------
-                0.00    0.00       1/293362      destroy_road [1230]
-                0.00    0.00       4/293362      movement_error [1193]
-                0.00    0.00      41/293362      make_cmd [383]
-                0.00    0.01  133973/293362      cycle_route [375]
-                0.00    0.01  159343/293362      movewhere [350]
-[496]    0.0    0.00    0.01  293362         get_direction [496]
-                0.01    0.00  293362/302482      findtoken [501]
-                0.00    0.00  293362/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00  174965/1523708     cr_output_unit [19]
-                0.00    0.01 1348743/1523708     bufunit [17]
-[497]    0.0    0.00    0.01 1523708         uprivate [497]
-                0.01    0.00 1523708/51974272     a_find [65]
------------------------------------------------
-                0.00    0.01   15797/15797       produce [29]
-[498]    0.0    0.00    0.01   15797         sell [498]
-                0.00    0.01   15796/541982      get_pooled [104]
-                0.00    0.00   28293/12320804     effskill <cycle 1> [100]
-                0.00    0.00   31531/2281756     gettoken [195]
-                0.00    0.00   12520/760673      addlist [217]
-                0.00    0.00   15763/71815034     get_race [12]
-                0.00    0.00    3277/15102       cmistake [718]
-                0.00    0.00   15797/1787006     findparam [458]
-                0.00    0.00   15797/1027665     init_order [613]
-                0.00    0.00   14863/2605004     rpeasants [435]
-                0.00    0.00   12520/51974272     a_find [65]
-                0.00    0.00   15731/191379      finditemtype [735]
-                0.00    0.00      39/15361       is_guarded [377]
-                0.00    0.00   15763/129167539     u_race [89]
-                0.00    0.00    2503/779419      a_add [555]
-                0.00    0.00   15763/8506411     besieged [547]
-                0.00    0.00       2/560926      bt_find [237]
-                0.00    0.00   16651/1511812     newterrain [1359]
-                0.00    0.00   15797/204314      bt_changed [1415]
-                0.00    0.00   15731/21500       resource2luxury [1499]
-                0.00    0.00   15730/308950      r_demand [1404]
-                0.00    0.00    2503/779868      a_new [1376]
-                0.00    0.00    1112/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.00    0.00       3/1794        chaos [848]
-                0.00    0.00     493/1794        remove_empty_units_in_region [134]
-                0.00    0.01    1298/1794        add_recruits [371]
-[499]    0.0    0.00    0.01    1794         remove_unit [499]
-                0.01    0.01    1793/2887        leave [432]
-                0.00    0.00    1794/1118718     ufindhash [109]
-                0.00    0.00    1794/1803        gift_items [891]
-                0.00    0.00    1793/1848        uunhash [1049]
-                0.00    0.00       1/1           make_zombie [1267]
-                0.00    0.00    1794/1342832     handle_event [1363]
-                0.00    0.00       3/603524      set_number [1387]
------------------------------------------------
-                0.00    0.00     567/1474687     give_men [857]
-                0.00    0.00     623/1474687     aftermath [701]
-                0.00    0.00     754/1474687     new_units [282]
-                0.00    0.00    1486/1474687     start_battle [297]
-                0.00    0.00    1865/1474687     transfermen [899]
-                0.00    0.00   39357/1474687     terminate [242]
-                0.00    0.00   94655/1474687     travel [81]
-                0.00    0.01 1335380/1474687     cansee [22]
-[500]    0.0    0.00    0.01 1474687         leftship [500]
-                0.01    0.00 1474687/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00       1/302482      get_translation [1304]
-                0.00    0.00       6/302482      findoption [1241]
-                0.00    0.00     255/302482      unit_getspell [758]
-                0.00    0.00     338/302482      findrace [1030]
-                0.00    0.00    4259/302482      findshiptype [869]
-                0.00    0.00    4261/302482      findbuildingtype [866]
-                0.01    0.00  293362/302482      get_direction [496]
-[501]    0.0    0.01    0.00  302482         findtoken [501]
-                0.00    0.00 1232688/46391457     unicode_utf8_to_ucs4 [177]
-                0.00    0.00    6664/49235       log_debug [1245]
------------------------------------------------
-                0.00    0.01   96450/96450       travel_i [92]
-[502]    0.0    0.00    0.01   96450         cap_route [502]
-                0.00    0.01  108335/108335      roadto [606]
-                0.00    0.00  108335/263302      reldirection [528]
------------------------------------------------
-                0.01    0.00     780/780         do_battle [64]
-[503]    0.0    0.01    0.00     780         battle_report [503]
-                0.00    0.00   25201/17451017     strlcpy_w [67]
-                0.00    0.00    2594/12398       fbattlerecord [688]
-                0.00    0.00    2594/967784      msg_message [132]
-                0.00    0.00    7058/18788       sideabkz [745]
-                0.00    0.00    7336/24887945     locale_string [27]
-                0.00    0.00    5188/31214       message_faction [716]
-                0.00    0.00    7336/5461936     slprintf [548]
-                0.00    0.00    7336/7336        get_alive [1528]
-                0.00    0.00    7336/24449       seematrix [1491]
-                0.00    0.00    7336/22301       army_index [1498]
-                0.00    0.00    2594/1009028     msg_release [1373]
------------------------------------------------
-                0.01    0.00   34486/34486       teach_cmd [272]
-[504]    0.0    0.01    0.00   34486         effskill_study [504]
-                0.00    0.00   34169/12320804     get_modifier <cycle 1> [55]
-                0.00    0.00   34486/595705      unit_skill [1391]
------------------------------------------------
-                0.00    0.01       1/1           tolua_spawn_braineaters [506]
-[505]    0.0    0.00    0.01       1         spawn_braineaters [505]
-                0.00    0.01     639/2889        create_unit [296]
-                0.00    0.00  178254/987488      is_astral [479]
-                0.00    0.00     639/2375        equip_unit [775]
-                0.00    0.00    1918/7641081     genrand_int31 [171]
-                0.00    0.00     639/71815034     get_race [12]
-                0.00    0.00       1/3902878     get_monsters [293]
-                0.00    0.00     639/2742        get_equipment [1551]
------------------------------------------------
-                                                 <spontaneous>
-[506]    0.0    0.00    0.01                 tolua_spawn_braineaters [506]
-                0.00    0.01       1/1           spawn_braineaters [505]
------------------------------------------------
-                0.00    0.01    2081/2081        report_plaintext [4]
-[507]    0.0    0.00    0.01    2081         nr_spell [507]
-                0.01    0.00   19851/2742237     paragraph [26]
-                0.00    0.00   30518/24887945     locale_string [27]
-                0.00    0.00    2081/2081        nr_spell_syntax [732]
-                0.00    0.00    2081/86400       spell_name [646]
-                0.00    0.00    2081/4162        spell_info [841]
-                0.00    0.00    6243/34611296     strlcpy [45]
-                0.00    0.00    9352/9352        write_spell_modifier [964]
-                0.00    0.00   12000/36653945     wrptr [178]
-                0.00    0.00    2081/37931       centre [789]
-                0.00    0.00    6243/2494242     newline [594]
-                0.00    0.00    3203/13259934     resourcename [233]
------------------------------------------------
-                0.00    0.00       1/143730      destroy_road [1230]
-                0.00    0.00      60/143730      build_road [950]
-                0.00    0.00   46655/143730      roadto [606]
-                0.00    0.01   97014/143730      cr_borders [135]
-[508]    0.0    0.00    0.01  143730         rroad [508]
-                0.00    0.01  143730/2225796     get_borders [120]
-                0.00    0.00       1/369586      r_connect [474]
------------------------------------------------
-                0.00    0.00      27/47562       reduce_skill [1091]
-                0.00    0.01   47535/47562       sk_set [510]
-[509]    0.0    0.00    0.01   47562         skill_weeks [509]
-                0.00    0.01  889716/7641081     genrand_int31 [171]
-                0.00    0.00   47562/47562       rule_random_progress [829]
------------------------------------------------
-                0.00    0.00    2445/47535       set_level [774]
-                0.00    0.01   45090/47535       learn_skill [471]
-[510]    0.0    0.00    0.01   47535         sk_set [510]
-                0.00    0.01   47535/47562       skill_weeks [509]
------------------------------------------------
-                0.00    0.00     232/629123      writefaction [762]
-                0.00    0.00   32670/629123      writeregion [519]
-                0.01    0.00  596221/629123      write_unit [97]
-[511]    0.0    0.01    0.00  629123         write_items [511]
-                0.00    0.00  448410/13259934     resourcename [233]
------------------------------------------------
-                0.00    0.01  112140/112140      buildingtype [414]
-[512]    0.0    0.00    0.01  112140         castle_name [512]
-                0.00    0.01  112140/112140      castle_name_i [513]
------------------------------------------------
-                0.00    0.01  112140/112140      castle_name [512]
-[513]    0.0    0.00    0.01  112140         castle_name_i [513]
-                0.01    0.00  112140/297010      bt_effsize [343]
------------------------------------------------
-                0.01    0.00       1/1           randomevents [91]
-[514]    0.0    0.01    0.00       1         chaos_update [514]
-                0.00    0.00  178254/179235      get_chaoscount [717]
-                0.00    0.00   18025/7641081     genrand_int31 [171]
-                0.00    0.00    3597/3597        chaos [848]
-                0.00    0.00   18025/18059       add_chaoscount [1198]
------------------------------------------------
-                0.01    0.00  178254/178254      process [7]
-[515]    0.0    0.01    0.00  178254         do_siege [515]
-                0.00    0.00  204065/55492327     getkeyword [54]
------------------------------------------------
-                0.00    0.01   27694/27694       set_new_dragon_target [486]
-[516]    0.0    0.00    0.01   27694         dragon_affinity_value [516]
-                0.01    0.00   27694/27694       all_money [529]
-                0.00    0.00   27694/71815034     get_race [12]
-                0.00    0.00   27694/27694       dice [787]
-                0.00    0.00   27694/129167539     u_race [89]
------------------------------------------------
-                0.01    0.00  116804/116804      parse_symbol <cycle 5> [42]
-[517]    0.0    0.01    0.00  116804         eval_isnull [517]
-                0.00    0.00  116804/13102790     opstack_pop [176]
-                0.00    0.00  116804/13102790     opstack_push [202]
------------------------------------------------
-                0.00    0.01   57367/57367       write_travelthru [327]
-[518]    0.0    0.00    0.01   57367         count_travelthru [518]
-                0.00    0.01   57367/3398582     travelthru_map [41]
------------------------------------------------
-                0.00    0.01  178254/178254      write_game [83]
-[519]    0.0    0.00    0.01  178254         writeregion [519]
-                0.00    0.01  178254/839970      write_attribs [301]
-                0.00    0.00  249352/13259934     resourcename [233]
-                0.00    0.00  196020/10053919     rtrees [302]
-                0.00    0.00   32670/629123      write_items [511]
-                0.00    0.00   32670/2605004     rpeasants [435]
-                0.00    0.00   32670/4666665     rmoney [452]
-                0.00    0.00  178254/178254      region_getinfo [1424]
-                0.00    0.00   32670/1160345     rhorses [1369]
-                0.00    0.00   32670/3166898     rherbs [1351]
-                0.00    0.00   32670/65345       region_get_morale [1444]
-                0.00    0.00   32670/32670       write_owner [1480]
------------------------------------------------
-                               65155             skillmod <cycle 1> [214]
-[520]    0.0    0.01    0.00   65155         sm_familiar <cycle 1> [520]
-                0.00    0.00   26823/298951      distance [599]
-                0.00    0.00   54349/54351       get_familiar [796]
-                               54349             effskill <cycle 1> [100]
------------------------------------------------
-                0.01    0.00 2481220/2481220     msg_create [228]
-[521]    0.0    0.01    0.00 2481220         copy_arg [521]
-                0.00    0.00   41255/41255       var_copy_order [734]
-                0.00    0.00   54163/54163       var_copy_string [1454]
-                0.00    0.00     214/214         var_copy_items [1627]
-                0.00    0.00     206/206         var_copy_resources [1632]
------------------------------------------------
-                0.00    0.01     249/249         plan_dragon [273]
-[522]    0.0    0.00    0.01     249         make_movement_order [522]
-                0.00    0.01     136/136         path_find [523]
-                0.00    0.00     527/24887945     locale_string [27]
-                0.00    0.00     136/1481407     parse_order [117]
-                0.00    0.00     391/263302      reldirection [528]
-                0.00    0.00     527/34611296     strlcpy [45]
-                0.00    0.00     249/1121103     monster_is_waiting [407]
-                0.00    0.00     527/36653945     wrptr [178]
-                0.00    0.00     136/2009097     keyword [1355]
------------------------------------------------
-                0.00    0.01     136/136         make_movement_order [522]
-[523]    0.0    0.00    0.01     136         path_find [523]
-                0.01    0.00     136/388         internal_path_find [345]
------------------------------------------------
-                0.00    0.01   39836/39836       a_read_i [390]
-[524]    0.0    0.00    0.01   39836         read_of [524]
-                0.01    0.00   39836/40046       rule_stealth_other [530]
-                0.00    0.00   39836/4625636     findfaction [259]
------------------------------------------------
-                0.00    0.01     206/206         do_battle [64]
-[525]    0.0    0.00    0.01     206         print_stats [525]
-                0.00    0.01     552/552         print_fighters [616]
-                0.00    0.00    5420/12398       fbattlerecord [688]
-                0.00    0.00   11178/18788       sideabkz [745]
-                0.00    0.00    8758/24887945     locale_string [27]
-                0.00    0.00    2317/967784      msg_message [132]
-                0.00    0.00    4336/31214       message_faction [716]
-                0.00    0.00    2082/3111        sidename [867]
-                0.00    0.00     355/1486        message_all [834]
-                0.00    0.00   11693/5461936     slprintf [548]
-                0.00    0.00   13861/24449       seematrix [1491]
-                0.00    0.00   13861/22301       army_index [1498]
-                0.00    0.00    2317/1009028     msg_release [1373]
-                0.00    0.00     149/2854        is_attacker [1550]
------------------------------------------------
-                0.00    0.00       2/14326       create_ship [1014]
-                0.00    0.00     490/14326       build_building [696]
-                0.00    0.00    5384/14326       teach_cmd [272]
-                0.01    0.00    8450/14326       cycle_route [375]
-[526]    0.0    0.01    0.00   14326         replace_order [526]
-                0.00    0.00   14326/635885      copy_order [441]
-                0.00    0.00   14326/1936876     free_order [1356]
------------------------------------------------
-                0.01    0.00    1302/1302        teach_unit [426]
-[527]    0.0    0.01    0.00    1302         academy_can_teach [527]
-                0.00    0.00     404/541982      get_pooled [104]
-                0.00    0.00    1302/560926      bt_find [237]
-                0.00    0.00    1709/424669      active_building [560]
-                0.00    0.00     404/418134      study_cost [433]
-                0.00    0.00     404/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00     391/263302      make_movement_order [522]
-                0.00    0.00    4307/263302      set_coast [875]
-                0.00    0.00    4337/263302      can_takeoff [854]
-                0.00    0.00   39729/263302      leave_trail [704]
-                0.00    0.00  106203/263302      travel_route [147]
-                0.00    0.00  108335/263302      cap_route [502]
-[528]    0.0    0.00    0.01  263302         reldirection [528]
-                0.01    0.00  263302/263302      koor_reldirection [562]
-                0.00    0.00  526604/18647447     getplane [596]
------------------------------------------------
-                0.01    0.00   27694/27694       dragon_affinity_value [516]
-[529]    0.0    0.01    0.00   27694         all_money [529]
-                0.00    0.00   11448/7120688     get_money [187]
-                0.00    0.00   27694/4666665     rmoney [452]
------------------------------------------------
-                0.00    0.00       1/40046       destroyfaction [392]
-                0.00    0.00     209/40046       setstealth_cmd [182]
-                0.01    0.00   39836/40046       read_of [524]
-[530]    0.0    0.01    0.00   40046         rule_stealth_other [530]
-                0.00    0.00   40046/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.01       1/1           write_game [83]
-[531]    0.0    0.00    0.01       1         clear_npc_orders [531]
-                0.01    0.00  420178/1644867     free_orders [306]
------------------------------------------------
-                0.00    0.00   10897/25088       terminate [242]
-                0.00    0.01   14191/25088       flee [638]
-[532]    0.0    0.00    0.01   25088         kill_troop [532]
-                0.01    0.00   25088/25088       rmtroop [533]
-                0.00    0.00     176/176         default_spoil [1144]
-                0.00    0.00     990/129167539     u_race [89]
-                0.00    0.00      12/60          equip_items [1121]
-                0.00    0.00     319/2742        get_equipment [1551]
-                0.00    0.00       9/97          i_merge [1651]
------------------------------------------------
-                0.01    0.00   25088/25088       kill_troop [532]
-[533]    0.0    0.01    0.00   25088         rmtroop [533]
-                0.00    0.00   25088/25088       rmfighter [890]
------------------------------------------------
-                0.01    0.00       1/1           icebergs [285]
-[534]    0.0    0.01    0.00       1         move_icebergs [534]
-                0.00    0.00       9/9           melt_iceberg [1082]
-                0.00    0.00      20/27          move_iceberg [1094]
-                0.00    0.00      29/7641081     genrand_int31 [171]
-                0.00    0.00  178254/1511812     newterrain [1359]
------------------------------------------------
-                0.01    0.00    1297/1297        make_fighter [424]
-[535]    0.0    0.01    0.00    1297         AllianceAuto [535]
-                0.00    0.00    1297/10383360     HelpMask [288]
-                0.00    0.00    1297/20777534     config_get [224]
------------------------------------------------
-                0.00    0.00      32/1629412     travel_i [92]
-                0.00    0.00      37/1629412     transport [1011]
-                0.00    0.00      74/1629412     init_transportation [384]
-                0.00    0.00     222/1629412     cast_cmd [760]
-                0.00    0.00     475/1629412     move_hunters [342]
-                0.00    0.00    1518/1629412     start_battle [297]
-                0.00    0.00  435900/1629412     process [7]
-                0.00    0.00  595258/1629412     follow_unit [331]
-                0.00    0.00  595896/1629412     update_long_order [270]
-[536]    0.0    0.01    0.00 1629412         LongHunger [536]
-                0.00    0.00     138/71815034     get_race [12]
-                0.00    0.00     111/4984610     config_get_int [348]
-                0.00    0.00     138/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      48/32727       terraform_region [932]
-                0.01    0.00   32679/32727       readregion [209]
-[537]    0.0    0.01    0.00   32727         rsetherbtype [537]
-                0.00    0.00      50/361         regionname [987]
-                0.00    0.00      50/49235       log_debug [1245]
------------------------------------------------
-                0.01    0.00       1/1           icebergs [285]
-[538]    0.0    0.01    0.00       1         create_icebergs [538]
-                0.00    0.00     126/752645      chance [495]
-                0.00    0.00       7/27          move_iceberg [1094]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00  178261/1511812     newterrain [1359]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.01    0.00     163/163         parse_symbol <cycle 5> [42]
-[539]    0.0    0.01    0.00     163         eval_lt [539]
-                0.00    0.00     326/13102790     opstack_pop [176]
-                0.00    0.00     163/13102790     opstack_push [202]
------------------------------------------------
-                0.00    0.01     224/224         leave [432]
-[540]    0.0    0.00    0.01     224         leave_ship [540]
-                0.01    0.00      18/18          ship_update_owner [573]
-                0.00    0.00     224/234         set_leftship [1134]
-                0.00    0.00      18/3358315     ship_owner [438]
------------------------------------------------
-                                                 <spontaneous>
-[541]    0.0    0.00    0.01                 main [541]
-                0.00    0.01       1/1           game_done [542]
-                0.00    0.00       1/1           game_init [1249]
-                0.00    0.00       1/1           parse_config [1292]
-                0.00    0.00       1/1           lua_init [1316]
-                0.00    0.00       1/1           eressea_run [1346]
-                0.00    0.00       1/1           setup_signal_handler [1863]
-                0.00    0.00       1/1           locale_init [1815]
-                0.00    0.00       1/1           parse_args [1825]
-                0.00    0.00       1/1           bind_monsters [1793]
-                0.00    0.00       1/1           log_close [1816]
-                0.00    0.00       1/1           lua_done [1820]
------------------------------------------------
-                0.00    0.01       1/1           main [541]
-[542]    0.0    0.00    0.01       1         game_done [542]
-                0.00    0.01       1/1           free_config [574]
-                0.00    0.00       1/1           free_locales [1311]
-                0.00    0.00       1/1           free_functions [1804]
-                0.00    0.00       1/1           calendar_cleanup [1796]
-                0.00    0.00       1/1           kernel_done [1813]
------------------------------------------------
-                0.00    0.00       1/4201030     sp_generous [1040]
-                0.00    0.00       2/4201030     sp_enterastral [1045]
-                0.00    0.00       2/4201030     shipcurse_flyingship [1072]
-                0.00    0.00       3/4201030     skilldiff [166]
-                0.00    0.00       6/4201030     forget_cmd [1093]
-                0.00    0.00       9/4201030     is_freezing [1088]
-                0.00    0.00      10/4201030     sp_stormwinds [871]
-                0.00    0.00      17/4201030     produce [29]
-                0.00    0.00      17/4201030     process [7]
-                0.00    0.00      17/4201030     magic [157]
-                0.00    0.00      22/4201030     drifting_ships [490]
-                0.00    0.00      34/4201030     sp_viewreality [784]
-                0.00    0.00     349/4201030     can_give_men [940]
-                0.00    0.00     450/4201030     spellpower [1000]
-                0.00    0.00     452/4201030     fumble [973]
-                0.00    0.00     488/4201030     give_men [857]
-                0.00    0.00    1624/4201030     shipspeed [669]
-                0.00    0.00    1689/4201030     recruit [650]
-                0.00    0.00    2815/4201030     count_faction [219]
-                0.00    0.00    2974/4201030     start_battle [297]
-                0.00    0.00    4309/4201030     report_template [87]
-                0.00    0.00    5948/4201030     deathcounts [843]
-                0.00    0.00    8515/4201030     describe [35]
-                0.00    0.00   16560/4201030     entertain_cmd [665]
-                0.00    0.00   19730/4201030     can_survive [640]
-                0.00    0.00   29173/4201030     horses [330]
-                0.00    0.00   32649/4201030     growing_trees [624]
-                0.00    0.00   37300/4201030     cr_output_region [10]
-                0.00    0.00   39858/4201030     sail [181]
-                0.00    0.00   46175/4201030     maintain_buildings [339]
-                0.00    0.00   90436/4201030     spawn_undead [629]
-                0.00    0.00   91155/4201030     godcurse [405]
-                0.00    0.00   94865/4201030     ageing [185]
-                0.00    0.00  159544/4201030     entertainmoney [643]
-                0.00    0.00  169917/4201030     study_cmd [105]
-                0.00    0.00  282968/4201030     move_blocked [283]
-                0.00    0.00  601859/4201030     att_modification [90]
-                0.00    0.00  615666/4201030     default_wage [173]
-                0.00    0.00  669051/4201030     production [417]
-                0.00    0.00 1174371/4201030     terrain_name [226]
-[543]    0.0    0.01    0.00 4201030         curse_active [543]
------------------------------------------------
-                0.00    0.00     191/1311302     follow_ship [749]
-                0.00    0.00  283446/1311302     readorders [43]
-                0.01    0.00 1027665/1311302     init_order [613]
-[544]    0.0    0.01    0.00 1311302         init_tokens_str [544]
------------------------------------------------
-                0.00    0.00       9/264251      destroyfaction [392]
-                0.00    0.00      15/264251      res_changepeasants [1200]
-                0.00    0.00      19/264251      dissolve_units [241]
-                0.00    0.00      34/264251      battle_effects [1125]
-                0.00    0.00      57/264251      terraform_region [932]
-                0.00    0.00      71/264251      transfermen [899]
-                0.00    0.00     120/264251      plagues [781]
-                0.00    0.00     567/264251      eaten_by_monster [468]
-                0.00    0.00     681/264251      absorbed_by_monster [804]
-                0.00    0.00    1594/264251      expandrecruit [349]
-                0.00    0.00    3152/264251      scareaway [768]
-                0.00    0.00   14329/264251      immigration [294]
-                0.00    0.00   32670/264251      peasants [658]
-                0.00    0.00   32679/264251      readregion [209]
-                0.01    0.00  178254/264251      get_food [88]
-[545]    0.0    0.01    0.00  264251         rsetpeasants [545]
------------------------------------------------
-                0.00    0.00    1301/9298667     leveled_allocation [888]
-                0.00    0.00    2723/9298667     split_allocations [743]
-                0.00    0.00    3078/9298667     allocate_resource [752]
-                0.00    0.00   59445/9298667     report_resources [210]
-                0.01    0.00 9232120/9298667     res_changeitem [101]
-[546]    0.0    0.01    0.00 9298667         resource2item [546]
------------------------------------------------
-                0.00    0.00       2/8506411     create_ship [1014]
-                0.00    0.00      41/8506411     build_road [950]
-                0.00    0.00      42/8506411     loot_cmd [873]
-                0.00    0.00      79/8506411     can_guard [908]
-                0.00    0.00     498/8506411     join_allies [693]
-                0.00    0.00     598/8506411     build_building [696]
-                0.00    0.00     960/8506411     tax_cmd [697]
-                0.00    0.00    2943/8506411     allocate_resource [752]
-                0.00    0.00    5915/8506411     buy [707]
-                0.00    0.00   11003/8506411     do_work [612]
-                0.00    0.00   15763/8506411     sell [498]
-                0.00    0.00   16593/8506411     entertain_cmd [665]
-                0.01    0.00 8451974/8506411     is_guardian_r [186]
-[547]    0.0    0.01    0.00 8506411         besieged [547]
-                0.00    0.00 8506411/11194781     keyword_disabled [1348]
------------------------------------------------
-                0.00    0.00       2/5461936     new_ship [1229]
-                0.00    0.00      11/5461936     new_building [1059]
-                0.00    0.00      47/5461936     give_peasants [1060]
-                0.00    0.00     191/5461936     follow_ship [749]
-                0.00    0.00     211/5461936     display_race [963]
-                0.00    0.00    1572/5461936     write_score [1135]
-                0.00    0.00    2705/5461936     b_nameroad [642]
-                0.00    0.00    7336/5461936     battle_report [503]
-                0.00    0.00   11693/5461936     print_stats [525]
-                0.00    0.00  180818/5461936     write_buildingname [622]
-                0.00    0.00  513251/5461936     write_regionname [280]
-                0.00    0.00 1065211/5461936     write_shipname [291]
-                0.00    0.00 1295787/5461936     factionname [247]
-                0.00    0.00 2383101/5461936     write_unitname [148]
-[548]    0.0    0.01    0.00 5461936         slprintf [548]
------------------------------------------------
-                0.01    0.00 4976082/4976082     parse_symbol <cycle 5> [42]
-[549]    0.0    0.01    0.00 4976082         find_function [549]
------------------------------------------------
-                0.00    0.00      60/4301501     aftermath [701]
-                0.00    0.00    1729/4301501     make_fighter [424]
-                0.00    0.00    5188/4301501     print_fighters [616]
-                0.00    0.00   25088/4301501     rmfighter [890]
-                0.00    0.00  324731/4301501     count_side [666]
-                0.00    0.00  876979/4301501     count_enemies [611]
-                0.00    0.00 1405349/4301501     select_enemy [172]
-                0.00    0.00 1662377/4301501     get_unitrow [154]
-[550]    0.0    0.01    0.00 4301501         statusrow [550]
------------------------------------------------
-                0.00    0.00     114/3383689     u_setfaction [1111]
-                0.00    0.00  109781/3383689     move_unit [421]
-                0.00    0.00  595125/3383689     read_game [62]
-                0.00    0.00 1188131/3383689     travelthru_add [609]
-                0.00    0.00 1490538/3383689     add_seen_nb [386]
-[551]    0.0    0.01    0.00 3383689         update_interval [551]
------------------------------------------------
-                0.00    0.00   12208/2985733     report_template [87]
-                0.00    0.00   68016/2985733     write_unit [97]
-                0.00    0.00   68497/2985733     cr_output_unit [19]
-                0.00    0.00  451283/2985733     update_long_order [270]
-                0.00    0.00  573389/2985733     unitorders [46]
-                0.00    0.00  766833/2985733     is_persistent [687]
-                0.00    0.00 1045507/2985733     bufunit [17]
-[552]    0.0    0.01    0.00 2985733         is_repeated [552]
------------------------------------------------
-                0.00    0.00       9/2186159     destroyfaction [392]
-                0.00    0.00      17/2186159     give_money [484]
-                0.00    0.00      36/2186159     expandloot [816]
-                0.00    0.00      38/2186159     gift_items [891]
-                0.00    0.00      41/2186159     region_setresource [1097]
-                0.00    0.00      57/2186159     terraform_region [932]
-                0.00    0.00    6459/2186159     plagues [781]
-                0.00    0.00   16560/2186159     expandentertainment [637]
-                0.00    0.00   32670/2186159     peasants [658]
-                0.00    0.00   32679/2186159     readregion [209]
-                0.00    0.00  178254/2186159     expandwork [277]
-                0.00    0.00  394406/2186159     expandbuying [49]
-                0.01    0.00 1524933/2186159     expandtax [278]
-[553]    0.0    0.01    0.00 2186159         rsetmoney [553]
------------------------------------------------
-                0.00    0.00   10232/1106528     update_lighthouse [605]
-                0.00    0.00   15060/1106528     buildingtype [414]
-                0.00    0.00   24025/1106528     check_leuchtturm [786]
-                0.00    0.00   46184/1106528     age_building [712]
-                0.00    0.00  218422/1106528     report_building [397]
-                0.00    0.00  396300/1106528     default_wage [173]
-                0.00    0.00  396305/1106528     cmp_wage [670]
-[554]    0.0    0.01    0.00 1106528         is_building_type [554]
------------------------------------------------
-                0.00    0.00       1/779419      create_mage [1315]
-                0.00    0.00       1/779419      init_seed [1320]
-                0.00    0.00       1/779419      init_mallornseed [1319]
-                0.00    0.00       1/779419      a_upgradekeys [1314]
-                0.00    0.00       1/779419      xml_readconstruction [1183]
-                0.00    0.00       2/779419      set_factionstealth [183]
-                0.00    0.00       2/779419      make_wormhole [1150]
-                0.00    0.00       2/779419      summon_allies [925]
-                0.00    0.00       2/779419      init_smithy [1312]
-                0.00    0.00       3/779419      create_newfamiliar [1288]
-                0.00    0.00       3/779419      usetprivate [1041]
-                0.00    0.00       6/779419      add_chaoscount [1198]
-                0.00    0.00       7/779419      parse_resources [1086]
-                0.00    0.00       7/779419      add_trigger [1260]
-                0.00    0.00      12/779419      volcano_destruction [1022]
-                0.00    0.00      13/779419      move_iceberg [1094]
-                0.00    0.00      20/779419      init_transportation [384]
-                0.00    0.00      25/779419      set_new_dragon_target [486]
-                0.00    0.00      32/779419      growing_trees [624]
-                0.00    0.00      32/779419      make_curse [802]
-                0.00    0.00      35/779419      deathcounts [843]
-                0.00    0.00      55/779419      renumber_unit [1159]
-                0.00    0.00      58/779419      potion_luck [1176]
-                0.00    0.00      97/779419      piracy_cmd [660]
-                0.00    0.00     114/779419      usetcontact [1147]
-                0.00    0.00     159/779419      change_effect [982]
-                0.00    0.00     234/779419      set_leftship [1134]
-                0.00    0.00     328/779419      display_potion [1090]
-                0.00    0.00     389/779419      usetpotionuse [1078]
-                0.00    0.00     631/779419      set_group [1048]
-                0.00    0.00     754/779419      new_units [282]
-                0.00    0.00     760/779419      set_familiar [992]
-                0.00    0.00     894/779419      follow_unit [331]
-                0.00    0.00    2494/779419      create_unit [296]
-                0.00    0.00    2503/779419      sell [498]
-                0.00    0.00    3233/779419      leave_trail [704]
-                0.00    0.00    3642/779419      buy [707]
-                0.00    0.00    4162/779419      show_new_spells [889]
-                0.00    0.00    4738/779419      expandselling [93]
-                0.00    0.00    5679/779419      expandbuying [49]
-                0.00    0.00   11749/779419      teach_unit [426]
-                0.00    0.00   27216/779419      travelthru_add [609]
-                0.00    0.00   52117/779419      update_lighthouse [605]
-                0.00    0.00  251365/779419      a_read_i [390]
-                0.00    0.01  405840/779419      study_cmd [105]
-[555]    0.0    0.00    0.01  779419         a_add [555]
-                0.01    0.00   54530/54530       a_insert [566]
------------------------------------------------
-                0.00    0.00    7964/618305      report_crtypes [428]
-                0.01    0.00  610341/618305      stream_order [167]
-[556]    0.0    0.01    0.00  618305         escape_string [556]
------------------------------------------------
-                0.00    0.00       1/604861      clonedied_write [1321]
-                0.00    0.00       2/604861      giveitem_write [1309]
-                0.00    0.00       6/604861      changerace_write [1287]
-                0.00    0.00      12/604861      changefaction_write [1258]
-                0.00    0.00     769/604861      shock_write [1050]
-                0.00    0.00    1522/604861      a_write_unit [998]
-                0.00    0.00    2304/604861      killunit_write [978]
-                0.00    0.00    4024/604861      curse_write [930]
-                0.01    0.00  596221/604861      write_unit [97]
-[557]    0.0    0.01    0.00  604861         write_unit_reference [557]
------------------------------------------------
-                0.00    0.00     449/454395      a_read_i [390]
-                0.00    0.00    2172/454395      a_removeall [958]
-                0.01    0.00  451774/454395      a_remove [366]
-[558]    0.0    0.01    0.00  454395         a_free [558]
-                0.00    0.00  417577/417577      done_learning [1397]
-                0.00    0.00   23342/23342       shiptrail_finalize [1492]
-                0.00    0.00   10417/10417       free_luxuries [1516]
-                0.00    0.00     554/554         a_finalizeeffect [1597]
-                0.00    0.00      97/97          piracy_done [1653]
-                0.00    0.00      28/28          curse_done [1696]
-                0.00    0.00       1/1           a_finalizestring [1786]
------------------------------------------------
-                0.01    0.00  451774/451774      a_remove [366]
-[559]    0.0    0.01    0.00  451774         a_unlink [559]
------------------------------------------------
-                0.00    0.00     174/424669      breedhorses [742]
-                0.00    0.00    1709/424669      academy_can_teach [527]
-                0.00    0.00    5206/424669      monthly_healing [215]
-                0.01    0.00  417580/424669      study_cmd [105]
-[560]    0.0    0.01    0.00  424669         active_building [560]
-                0.00    0.00    6798/26164       building_is_active [1488]
-                0.00    0.00    6405/26995       inside_building [1486]
------------------------------------------------
-                0.00    0.00       5/283711      give_horses [1108]
-                0.00    0.00      19/283711      reshow_other [823]
-                0.00    0.00      22/283711      give_money [484]
-                0.01    0.00  283665/283711      give_item [126]
-[561]    0.0    0.01    0.00  283711         item2resource [561]
------------------------------------------------
-                0.01    0.00  263302/263302      reldirection [528]
-[562]    0.0    0.01    0.00  263302         koor_reldirection [562]
-                0.00    0.00  932009/3587241     pnormalize [1350]
------------------------------------------------
-                0.01    0.00  251814/251814      a_read_i [390]
-[563]    0.0    0.01    0.00  251814         at_find [563]
------------------------------------------------
-                0.00    0.00   30233/162862      regions_in_range [675]
-                0.01    0.00  132629/162862      internal_path_find [345]
-[564]    0.0    0.01    0.00  162862         allowed_dragon [564]
-                0.00    0.00  157782/157830      allowed_fly [1425]
------------------------------------------------
-                0.00    0.00       1/113845      removelist [1290]
-                0.01    0.00  113844/113845      translist [430]
-[565]    0.0    0.01    0.00  113845         choplist [565]
------------------------------------------------
-                0.01    0.00   54530/54530       a_add [555]
-[566]    0.0    0.01    0.00   54530         a_insert [566]
------------------------------------------------
-                0.00    0.00   10344/47887       cansail [469]
-                0.00    0.00   18693/47887       nr_ship [111]
-                0.00    0.00   18850/47887       cr_output_ship [152]
-[567]    0.0    0.01    0.00   47887         shipcapacity [567]
------------------------------------------------
-                0.00    0.00       1/11719       tolua_faction_get_locale [1197]
-                0.00    0.00       2/11719       config_get_locales [1161]
-                0.00    0.00       2/11719       report_summary [614]
-                0.00    0.00     232/11719       write_script [853]
-                0.00    0.00     232/11719       writefaction [762]
-                0.00    0.00     460/11719       report_computer [9]
-                0.01    0.00   10790/11719       cr_find_address [602]
-[568]    0.0    0.01    0.00   11719         locale_name [568]
------------------------------------------------
-                0.00    0.00     863/3147        make_fighter [424]
-                0.01    0.00    2284/3147        weapon_skill [221]
-[569]    0.0    0.01    0.00    3147         i_canuse [569]
-                0.00    0.00     785/785         lua_canuse_item [1591]
------------------------------------------------
-                0.01    0.00    1018/1018        remove_exclusive [571]
-[570]    0.0    0.01    0.00    1018         is_exclusive [570]
------------------------------------------------
-                0.00    0.01     524/524         defaultorders [249]
-[571]    0.0    0.00    0.01     524         remove_exclusive [571]
-                0.01    0.00    1018/1018        is_exclusive [570]
-                0.00    0.00     310/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00       1/457         promotion_cmd [917]
-                0.00    0.00     226/457         report_plaintext [4]
-                0.01    0.00     230/457         report_computer [9]
-[572]    0.0    0.01    0.00     457         countheroes [572]
------------------------------------------------
-                0.01    0.00      18/18          leave_ship [540]
-[573]    0.0    0.01    0.00      18         ship_update_owner [573]
-                0.00    0.00      18/1529        ship_owner_ex [1571]
------------------------------------------------
-                0.00    0.01       1/1           game_done [542]
-[574]    0.0    0.00    0.01       1         free_config [574]
-                0.01    0.00       1/1           free_params [575]
------------------------------------------------
-                0.01    0.00       1/1           free_config [574]
-[575]    0.0    0.01    0.00       1         free_params [575]
------------------------------------------------
-                0.01    0.00       1/1           eressea_write_game [76]
-[576]    0.0    0.01    0.00       1         remove_empty_factions [576]
------------------------------------------------
-                                                 <spontaneous>
-[577]    0.0    0.01    0.00                 cb_insert [577]
------------------------------------------------
-                                                 <spontaneous>
-[578]    0.0    0.01    0.00                 cmp_curse [578]
------------------------------------------------
-                                                 <spontaneous>
-[579]    0.0    0.01    0.00                 create_backup [579]
------------------------------------------------
-                                                 <spontaneous>
-[580]    0.0    0.01    0.00                 ct_remove [580]
------------------------------------------------
-                                                 <spontaneous>
-[581]    0.0    0.01    0.00                 get_homeplane [581]
------------------------------------------------
-                                                 <spontaneous>
-[582]    0.0    0.01    0.00                 i10toi36 [582]
------------------------------------------------
-                                                 <spontaneous>
-[583]    0.0    0.01    0.00                 json_export [583]
------------------------------------------------
-                                                 <spontaneous>
-[584]    0.0    0.01    0.00                 make_external_node [584]
------------------------------------------------
-                                                 <spontaneous>
-[585]    0.0    0.01    0.00                 qli_next [585]
------------------------------------------------
-                                                 <spontaneous>
-[586]    0.0    0.01    0.00                 read_movement [586]
------------------------------------------------
-                                                 <spontaneous>
-[587]    0.0    0.01    0.00                 remove_plane [587]
------------------------------------------------
-                                                 <spontaneous>
-[588]    0.0    0.01    0.00                 set_string [588]
------------------------------------------------
-                                                 <spontaneous>
-[589]    0.0    0.01    0.00                 tolua_buildinglist_next [589]
------------------------------------------------
-                                                 <spontaneous>
-[590]    0.0    0.01    0.00                 tolua_regionlist_next [590]
------------------------------------------------
-                                                 <spontaneous>
-[591]    0.0    0.01    0.00                 tolua_tousertype [591]
------------------------------------------------
-                0.00    0.00  490896/5152236     default_wage [173]
-                0.00    0.00 1366398/5152236     unit_max_hp [136]
-                0.01    0.00 3294942/5152236     att_modification [90]
-[592]    0.0    0.01    0.00 5152236         ct_changed [592]
------------------------------------------------
-                0.00    0.00   11880/4835422     cansee_unit [684]
-                0.00    0.00  923633/4835422     cr_output_unit [19]
-                0.00    0.00 1156253/4835422     cansee [22]
-                0.00    0.00 1348743/4835422     bufunit [17]
-                0.00    0.00 1394913/4835422     cansee_durchgezogen [170]
-[593]    0.0    0.01    0.00 4835422         usiege [593]
------------------------------------------------
-                0.00    0.00     458/2494242     list_address [635]
-                0.00    0.00    1632/2494242     rp_battles [618]
-                0.00    0.00    1888/2494242     allies [419]
-                0.00    0.00    6243/2494242     nr_spell [507]
-                0.00    0.00   15186/2494242     nr_curses_i [401]
-                0.00    0.00   27498/2494242     guards [229]
-                0.00    0.00   62736/2494242     rp_messages [36]
-                0.00    0.00   66278/2494242     statistics [70]
-                0.00    0.00  113592/2494242     nr_building [141]
-                0.00    0.00  164218/2494242     describe [35]
-                0.00    0.00  180598/2494242     nr_ship [111]
-                0.00    0.00  216458/2494242     report_template [87]
-                0.00    0.00  293098/2494242     report_plaintext [4]
-                0.01    0.00 1344359/2494242     nr_unit [11]
-[594]    0.0    0.01    0.00 2494242         newline [594]
------------------------------------------------
-                0.01    0.00  987612/987612      get_astralplane [482]
-[595]    0.0    0.01    0.00  987612         getplanebyname [595]
------------------------------------------------
-                0.00    0.00       3/18647447     getplaneid [1337]
-                0.00    0.00      40/18647447     expandstealing [807]
-                0.00    0.00     111/18647447     check_steal [1234]
-                0.00    0.00     206/18647447     make_battle [1282]
-                0.00    0.00     227/18647447     cast_cmd [760]
-                0.00    0.00     493/18647447     report_computer [9]
-                0.00    0.00     719/18647447     join_allies [693]
-                0.00    0.00     976/18647447     make_cmd [383]
-                0.00    0.00    1518/18647447     start_battle [297]
-                0.00    0.00    1689/18647447     recruit [650]
-                0.00    0.00    5384/18647447     teach_cmd [272]
-                0.00    0.00    7957/18647447     magic_resistance [727]
-                0.00    0.00    8865/18647447     r_astral_to_standard [783]
-                0.00    0.00    9641/18647447     cr_regions [840]
-                0.00    0.00   10477/18647447     report_template [87]
-                0.00    0.00  102739/18647447     give_cmd [102]
-                0.00    0.00  108425/18647447     update_lighthouse [605]
-                0.00    0.00  132705/18647447     cr_region [662]
-                0.00    0.00  163381/18647447     astralregions [329]
-                0.00    0.00  174658/18647447     good_region [910]
-                0.00    0.00  178254/18647447     get_food [88]
-                0.00    0.00  211668/18647447     cr_output_region [10]
-                0.00    0.00  369586/18647447     r_connect [474]
-                0.00    0.00  513251/18647447     write_regionname [280]
-                0.00    0.00  526604/18647447     reldirection [528]
-                0.00    0.00  950595/18647447     f_regionid [161]
-                0.00    0.00  987488/18647447     is_astral [479]
-                0.00    0.00 1187497/18647447     bufunit [17]
-                0.00    0.00 1467202/18647447     get_modifier <cycle 1> [55]
-                0.00    0.00 2521048/18647447     lifestyle [286]
-                0.00    0.00 9004040/18647447     alliedunit [31]
-[596]    0.0    0.01    0.00 18647447         getplane [596]
------------------------------------------------
-                0.00    0.00       1/2032164     do_fumble [1062]
-                0.00    0.00       1/2032164     init_seed [1320]
-                0.00    0.00       1/2032164     init_mallornseed [1319]
-                0.00    0.00      17/2032164     parse_buildings [1131]
-                0.00    0.00      51/2032164     potion_water_of_life [945]
-                0.00    0.00      80/2032164     msg_set_resource [1226]
-                0.00    0.00     225/2032164     spellpower [1000]
-                0.00    0.00     233/2032164     parse_spells [1120]
-                0.00    0.00     545/2032164     rt_get_or_create [1139]
-                0.00    0.00    1139/2032164     tolua_region_set_resource [1057]
-                0.00    0.00    2148/2032164     get_food [88]
-                0.00    0.00    2366/2032164     allocate_resource [752]
-                0.00    0.00    2491/2032164     a_readeffect [1052]
-                0.00    0.00    3355/2032164     tolua_region_get_resource [976]
-                0.00    0.00    5358/2032164     max_spellpoints [755]
-                0.00    0.00   83224/2032164     trollbelts [677]
-                0.00    0.00  193274/2032164     walkingcapacity [403]
-                0.00    0.00  249361/2032164     readregion [209]
-                0.00    0.00  310783/2032164     get_resourcetype [194]
-                0.01    0.00 1177511/2032164     it_find [385]
-[597]    0.0    0.01    0.00 2032164         rt_find [597]
------------------------------------------------
-                0.00    0.01  755575/755575      travelthru_map [41]
-[598]    0.0    0.00    0.01  755575         cb_add_address [598]
-                0.00    0.01   74068/4374788     visible_faction [68]
-                0.00    0.00   11880/11880       cansee_unit [684]
-                0.00    0.00    3767/353788      add_seen_faction_i [1401]
------------------------------------------------
-                0.00    0.00       3/298951      cast_cmd [760]
-                0.00    0.00   26823/298951      sm_familiar <cycle 1> [520]
-                0.00    0.00   71197/298951      update_lighthouse [605]
-                0.00    0.01  200928/298951      get_regions_distance [372]
-[599]    0.0    0.00    0.01  298951         distance [599]
-                0.00    0.01  298951/514146      koor_distance [476]
------------------------------------------------
-                0.00    0.00       6/102705      give_control_cmd [287]
-                0.00    0.01  102699/102705      give_cmd [102]
-[600]    0.0    0.00    0.01  102705         can_give_to [600]
-                0.00    0.01  102705/9953180     alliedunit [31]
-                0.00    0.00      70/1437425     cansee [22]
-                0.00    0.00      20/8898        ucontact [927]
------------------------------------------------
-                0.00    0.00     233/113487      reroute [1020]
-                0.00    0.01  113254/113487      make_route [289]
-[601]    0.0    0.00    0.01  113487         next_region [601]
-                0.00    0.01  113487/2225796     get_borders [120]
------------------------------------------------
-                0.00    0.01     230/230         report_computer [9]
-[602]    0.0    0.00    0.01     230         cr_find_address [602]
-                0.01    0.00   10790/11719       locale_name [568]
------------------------------------------------
-                0.00    0.01   32670/32670       demographics [50]
-[603]    0.0    0.00    0.01   32670         calculate_emigration [603]
-                0.00    0.01  144763/438629      maxworkingpeasants [473]
-                0.00    0.00   46456/369586      r_connect [474]
-                0.00    0.00  144763/2605004     rpeasants [435]
-                0.00    0.00   64838/1511812     newterrain [1359]
------------------------------------------------
-                0.00    0.01  116914/116914      fleechance [408]
-[604]    0.0    0.00    0.01  116914         horse_fleeing_bonus [604]
-                0.00    0.01  116914/12320804     effskill <cycle 1> [100]
-                0.00    0.00  350742/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00       2/10232       remove_building [1153]
-                0.00    0.00      11/10232       new_building [1059]
-                0.00    0.00     490/10232       build_building [696]
-                0.00    0.01    9729/10232       read_game [62]
-[605]    0.0    0.00    0.01   10232         update_lighthouse [605]
-                0.00    0.01  108425/459083      findregion [420]
-                0.00    0.00   71197/298951      distance [599]
-                0.00    0.00   52117/779419      a_add [555]
-                0.00    0.00   52551/51974272     a_find [65]
-                0.00    0.00   10232/1106528     is_building_type [554]
-                0.00    0.00  108425/18647447     getplane [596]
-                0.00    0.00  108425/3587241     pnormalize [1350]
-                0.00    0.00   52117/779868      a_new [1376]
------------------------------------------------
-                0.00    0.01  108335/108335      cap_route [502]
-[606]    0.0    0.00    0.01  108335         roadto [606]
-                0.00    0.00   46655/143730      rroad [508]
-                0.00    0.00  208736/10190660     get_curse [143]
-                0.00    0.00  104368/12246335     ct_find [114]
-                0.00    0.00   16737/16737       dir_invert [1508]
------------------------------------------------
-                0.00    0.01 3656767/3656767     translate [28]
-[607]    0.0    0.00    0.01 3656767         add_variable [607]
-                0.01    0.00 3656767/13399069     balloc [363]
------------------------------------------------
-                0.00    0.01  127788/127788      parse_symbol <cycle 5> [42]
-[608]    0.0    0.00    0.01  127788         eval_direction [608]
-                0.00    0.00  127788/24887945     locale_string [27]
-                0.00    0.00  127788/13102790     opstack_pop [176]
-                0.00    0.00  127788/13102790     opstack_push [202]
-                0.00    0.00  127788/13399069     balloc [363]
------------------------------------------------
-                0.00    0.01  169733/169733      mark_travelthru [610]
-[609]    0.0    0.00    0.01  169733         travelthru_add [609]
-                0.00    0.00 1188131/3383689     update_interval [551]
-                0.00    0.00  169733/1087065     get_neighbours [480]
-                0.00    0.00  169733/51974272     a_find [65]
-                0.00    0.00   27216/779419      a_add [555]
-                0.00    0.00   27216/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00   10679/106919      move_ship [374]
-                0.00    0.01   96240/106919      travel_route [147]
-[610]    0.0    0.00    0.01  106919         mark_travelthru [610]
-                0.00    0.01  169733/169733      travelthru_add [609]
------------------------------------------------
-                0.00    0.00      21/876979      sp_kampfzauber [957]
-                0.00    0.00      53/876979      sp_dragonodem [627]
-                0.00    0.00     112/876979      attack_firesword [785]
-                0.00    0.00  251867/876979      do_attack [80]
-                0.00    0.00  252753/876979      attack [84]
-                0.00    0.00  372173/876979      select_enemy [172]
-[611]    0.0    0.00    0.01  876979         count_enemies [611]
-                0.00    0.01  300810/300810      count_enemies_i [636]
-                0.00    0.00  876979/4301501     statusrow [550]
------------------------------------------------
-                0.00    0.01   11087/11087       produce [29]
-[612]    0.0    0.00    0.01   11087         do_work [612]
-                0.00    0.01    3141/15361       is_guarded [377]
-                0.00    0.00   10979/490896      wage [174]
-                0.00    0.00   22150/129167539     u_race [89]
-                0.00    0.00   11003/8506411     besieged [547]
-                0.00    0.00      84/41248       msg_feedback [647]
-                0.00    0.00      84/392959      add_message [434]
-                0.00    0.00      24/15102       cmistake [718]
-                0.00    0.00      84/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       2/1027665     claim_cmd [1242]
-                0.00    0.00       6/1027665     send_cmd [1202]
-                0.00    0.00      12/1027665     forget_cmd [1093]
-                0.00    0.00      16/1027665     spy_cmd [990]
-                0.00    0.00      20/1027665     restack_units [353]
-                0.00    0.00      22/1027665     destroy_cmd [1113]
-                0.00    0.00      42/1027665     loot_cmd [873]
-                0.00    0.00      65/1027665     travel_i [92]
-                0.00    0.00      70/1027665     transport [1011]
-                0.00    0.00      80/1027665     combatspell_cmd [898]
-                0.00    0.00      99/1027665     piracy_cmd [660]
-                0.00    0.00     111/1027665     init_transportation [384]
-                0.00    0.00     111/1027665     steal_cmd [766]
-                0.00    0.00     138/1027665     renumber_cmd [780]
-                0.00    0.00     147/1027665     contact_cmd [965]
-                0.00    0.00     177/1027665     breed_cmd [741]
-                0.00    0.00     222/1027665     cast_cmd [760]
-                0.00    0.00     241/1027665     reshow_cmd [818]
-                0.00    0.00     262/1027665     defaultorders [249]
-                0.00    0.00     348/1027665     mail_cmd [844]
-                0.00    0.00     349/1027665     research_cmd [886]
-                0.00    0.00     590/1027665     use_cmd [763]
-                0.00    0.00     597/1027665     move_hunters [342]
-                0.00    0.00     621/1027665     group_cmd [985]
-                0.00    0.00     639/1027665     do_enter [128]
-                0.00    0.00     754/1027665     new_units [282]
-                0.00    0.00     791/1027665     ally_cmd [877]
-                0.00    0.00     799/1027665     setstealth_cmd [182]
-                0.00    0.00     960/1027665     tax_cmd [697]
-                0.00    0.00    1425/1027665     follow_unit [331]
-                0.00    0.00    1487/1027665     start_battle [297]
-                0.00    0.00    1700/1027665     status_cmd [904]
-                0.00    0.00    1835/1027665     recruit [650]
-                0.00    0.00    2013/1027665     display_cmd [859]
-                0.00    0.00    3117/1027665     name_cmd [835]
-                0.00    0.00    5049/1027665     parse_ids [852]
-                0.00    0.00    5916/1027665     buy [707]
-                0.00    0.00    8450/1027665     cycle_route [375]
-                0.00    0.00   10600/1027665     make_cmd [383]
-                0.00    0.00   15797/1027665     sell [498]
-                0.00    0.00   16596/1027665     entertain_cmd [665]
-                0.00    0.00   28057/1027665     teach_cmd [272]
-                0.00    0.00   30554/1027665     guard_on_cmd [656]
-                0.00    0.00   30634/1027665     guard_off_cmd [711]
-                0.00    0.00   71388/1027665     reserve_i [213]
-                0.00    0.00  103494/1027665     movement [47]
-                0.00    0.00  131722/1027665     give_cmd [102]
-                0.00    0.00  131765/1027665     give_control_cmd [287]
-                0.00    0.00  417775/1027665     study_cmd [105]
-[613]    0.0    0.00    0.01 1027665         init_order [613]
-                0.01    0.00 1027665/1311302     init_tokens_str [544]
------------------------------------------------
-                0.00    0.01       2/2           tolua_write_summary [38]
-[614]    0.0    0.00    0.01       2         report_summary [614]
-                0.00    0.01     251/251         out_faction [615]
-                0.00    0.00      93/24887945     locale_string [27]
-                0.00    0.00      93/71815034     get_race [12]
-                0.00    0.00       2/11719       locale_name [568]
-                0.00    0.00       2/3           update_nmrs [1155]
-                0.00    0.00      71/2818494     rc_name_s [260]
-                0.00    0.00       2/3           gamedate2 [1222]
-                0.00    0.00       1/1           writeturn [1253]
-                0.00    0.00       2/573         join_path [1016]
-                0.00    0.00       1/1248014     listlen [190]
-                0.00    0.00       2/27          NMRTimeout [1264]
-                0.00    0.00       2/462         game_name [1168]
-                0.00    0.00       3/64          log_info [1339]
-                0.00    0.00      51/51          rcomp [1681]
-                0.00    0.00      42/42          pcomp [1687]
-                0.00    0.00       2/9           basepath [1730]
------------------------------------------------
-                0.00    0.01     251/251         report_summary [614]
-[615]    0.0    0.00    0.01     251         out_faction [615]
-                0.00    0.01     251/481         count_units [487]
-                0.00    0.00     251/24887945     locale_string [27]
-                0.00    0.00     251/1295787     factionname [247]
-                0.00    0.00     251/2818494     rc_name_s [260]
------------------------------------------------
-                0.00    0.01     552/552         print_stats [525]
-[616]    0.0    0.00    0.01     552         print_fighters [616]
-                0.00    0.01    1297/1297        battle_punit [620]
-                0.00    0.00     614/1486        message_all [834]
-                0.00    0.00     614/967784      msg_message [132]
-                0.00    0.00    5188/4301501     statusrow [550]
-                0.00    0.00     614/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.01    3626/3626        make_cmd [383]
-[617]    0.0    0.00    0.01    3626         create_item [617]
-                0.00    0.01    3100/15361       is_guarded [377]
-                0.00    0.00    3078/3078        allocate_resource [752]
-                0.00    0.00     377/377         manufacture [759]
-                0.00    0.00     149/149         create_potion [821]
-                0.00    0.00      22/15102       cmistake [718]
-                0.00    0.00     526/1582        resource2potion [1569]
------------------------------------------------
-                0.00    0.01     230/230         report_plaintext [4]
-[618]    0.0    0.00    0.01     230         rp_battles [618]
-                0.00    0.01     676/79180       rp_messages [36]
-                0.00    0.00     676/1380398     nr_render [25]
-                0.00    0.00     676/967784      msg_message [132]
-                0.00    0.00     816/37931       centre [789]
-                0.00    0.00     140/24887945     locale_string [27]
-                0.00    0.00    1632/2494242     newline [594]
-                0.00    0.00     676/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.01  578591/578591      monthly_healing [215]
-[619]    0.0    0.00    0.01  578591         heal_factor [619]
-                0.00    0.00  578591/7910500     r_isforest [199]
-                0.00    0.00  578592/129167539     u_race [89]
-                0.00    0.00   14447/12560453     rc_changed [256]
-                0.00    0.00       1/71815034     get_race [12]
-                0.00    0.00       1/717287      get_param_flt [713]
-                0.00    0.00    2430/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.01    1297/1297        print_fighters [616]
-[620]    0.0    0.00    0.01    1297         battle_punit [620]
-                0.00    0.01    4384/4384        spunit [632]
-                0.00    0.00    4384/12398       fbattlerecord [688]
-                0.00    0.00    4384/5330        freestrlist [1534]
------------------------------------------------
-                0.00    0.00       1/180818      tolua_building_tostring [1306]
-                0.00    0.00      12/180818      read_game [62]
-                0.00    0.00   67213/180818      eval_building [494]
-                0.00    0.00  113592/180818      nr_building [141]
-[621]    0.0    0.00    0.01  180818         buildingname [621]
-                0.00    0.01  180818/180818      write_buildingname [622]
------------------------------------------------
-                0.00    0.01  180818/180818      buildingname [621]
-[622]    0.0    0.00    0.01  180818         write_buildingname [622]
-                0.00    0.01  180818/5100840     itoa36 [116]
-                0.00    0.00  180818/5461936     slprintf [548]
------------------------------------------------
-                0.00    0.00      21/74          do_combatspell [702]
-                0.00    0.01      53/74          do_extra_spell [648]
-[623]    0.0    0.00    0.01      74         cast_combatspell [623]
-                0.00    0.01      53/53          sp_dragonodem [627]
-                0.00    0.00      74/273         pay_spell [805]
-                0.00    0.00      21/21          sp_kampfzauber [957]
-                0.00    0.00      74/83          create_castorder_combat [1137]
-                0.00    0.00      74/303         free_castorder [1609]
------------------------------------------------
-                0.00    0.01   32670/32670       demographics [50]
-[624]    0.0    0.00    0.01   32670         growing_trees [624]
-                0.00    0.00  361320/7641081     genrand_int31 [171]
-                0.00    0.00  249356/10053919     rtrees [302]
-                0.00    0.00   32649/12246335     ct_find [114]
-                0.00    0.00   32649/10190660     get_curse [143]
-                0.00    0.00   32670/51974272     a_find [65]
-                0.00    0.00   32649/4201030     curse_active [543]
-                0.00    0.00      32/779419      a_add [555]
-                0.00    0.00  130680/229715      rsettrees [1410]
-                0.00    0.00   32649/651711      oldcursename [1381]
-                0.00    0.00      32/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      42/34409       expandloot [816]
-                0.00    0.00      59/34409       expandstealing [807]
-                0.00    0.00     948/34409       expandtax [278]
-                0.00    0.00    5821/34409       expandselling [93]
-                0.00    0.00   10979/34409       expandwork [277]
-                0.00    0.00   16560/34409       expandentertainment [637]
-[625]    0.0    0.00    0.01   34409         add_income [625]
-                0.00    0.00   34409/967784      msg_message [132]
-                0.00    0.00   34409/392959      add_message [434]
-                0.00    0.00   34409/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.01   70836/70836       is_guarded [377]
-[626]    0.0    0.00    0.01   70836         is_guardian_u [626]
-                0.00    0.01   63046/9953180     alliedunit [31]
-                0.00    0.00   63046/6610983     is_guard [211]
-                0.00    0.00     397/1437425     cansee [22]
-                0.00    0.00     397/8898        ucontact [927]
-                0.00    0.00     257/129167539     u_race [89]
------------------------------------------------
-                0.00    0.01      53/53          cast_combatspell [623]
-[627]    0.0    0.00    0.01      53         sp_dragonodem [627]
-                0.00    0.00    7313/80630       terminate [242]
-                0.00    0.00    7313/372173      select_enemy [172]
-                0.00    0.00      53/1486        message_all [834]
-                0.00    0.00      53/967784      msg_message [132]
-                0.00    0.00      53/201744      lovar [644]
-                0.00    0.00      53/876979      count_enemies [611]
-                0.00    0.00      53/74          spell_damage [1657]
-                0.00    0.00      53/74          get_force [1656]
-                0.00    0.00      53/1009028     msg_release [1373]
------------------------------------------------
-                                                 <spontaneous>
-[628]    0.0    0.00    0.01                 tolua_region_getkey [628]
-                0.01    0.00  178254/688711      atoi36 [440]
-                0.00    0.00  178254/178257      key_get [719]
------------------------------------------------
-                0.00    0.01       1/1           tolua_spawn_undead [630]
-[629]    0.0    0.00    0.01       1         spawn_undead [629]
-                0.00    0.00  355408/355423      deathcount [674]
-                0.00    0.00      92/2889        create_unit [296]
-                0.00    0.00   90436/10190660     get_curse [143]
-                0.00    0.00   31670/2605004     rpeasants [435]
-                0.00    0.00   37226/37974       deathcounts [843]
-                0.00    0.00     828/2457        set_level [774]
-                0.00    0.00   90436/4201030     curse_active [543]
-                0.00    0.00    9552/7641081     genrand_int31 [171]
-                0.00    0.00      92/967784      msg_message [132]
-                0.00    0.00     266/392959      add_message [434]
-                0.00    0.00      92/2931        name_unit [803]
-                0.00    0.00      92/1381157     unit_max_hp [136]
-                0.00    0.00     247/71815034     get_race [12]
-                0.00    0.00      92/361         regionname [987]
-                0.00    0.00      21/2375        equip_unit [775]
-                0.00    0.00      92/24887945     locale_string [27]
-                0.00    0.00    9312/21517       chaosfactor [1077]
-                0.00    0.00      92/2818494     rc_name_s [260]
-                0.00    0.00      92/129167539     u_race [89]
-                0.00    0.00       1/12246335     ct_find [114]
-                0.00    0.00       1/3902878     get_monsters [293]
-                0.00    0.00      92/49235       log_debug [1245]
-                0.00    0.00      92/1009028     msg_release [1373]
-                0.00    0.00      21/2742        get_equipment [1551]
------------------------------------------------
-                                                 <spontaneous>
-[630]    0.0    0.00    0.01                 tolua_spawn_undead [630]
-                0.00    0.01       1/1           spawn_undead [629]
------------------------------------------------
-                0.00    0.01    9680/9680        travel_route [147]
-[631]    0.0    0.00    0.01    9680         bewegung_blockiert_von [631]
-                0.00    0.00  216875/6610983     is_guard [211]
-                0.00    0.00    9680/560926      bt_find [237]
-                0.00    0.00    9680/1188532     eff_stealth [163]
-                0.00    0.00    8873/1753922     invisible [139]
-                0.00    0.00    8873/12320804     effskill <cycle 1> [100]
-                0.00    0.00    6140/9953180     alliedunit [31]
-                0.00    0.00   58080/717218      config_get_flt [714]
-                0.00    0.00   27379/129167539     u_race [89]
-                0.00    0.00    6140/8898        ucontact [927]
-                0.00    0.00    9680/56052475     get_resourcetype [194]
-                0.00    0.00     372/5395063     i_get [130]
-                0.00    0.00       6/593636      building_owner [232]
-                0.00    0.00       3/184870      buildingeffsize [367]
-                0.00    0.00      20/752645      chance [495]
-                0.00    0.00     105/1511812     newterrain [1359]
------------------------------------------------
-                0.00    0.01    4384/4384        battle_punit [620]
-[632]    0.0    0.00    0.01    4384         spunit [632]
-                0.00    0.01    4384/1348743     bufunit [17]
-                0.00    0.00    4384/4384        lparagraph [809]
------------------------------------------------
-                0.00    0.01   96555/96555       travel_i [92]
-[633]    0.0    0.00    0.01   96555         canwalk [633]
-                0.00    0.00   12778/96637       walkingcapacity [403]
-                0.00    0.00   12778/34221       eff_weight [683]
-                0.00    0.00   12787/12320804     effskill <cycle 1> [100]
-                0.00    0.00   83768/3902878     get_monsters [293]
-                0.00    0.00   12787/71815034     get_race [12]
-                0.00    0.00   12787/129167539     u_race [89]
-                0.00    0.00   12787/130867      get_transporters [1431]
------------------------------------------------
-                0.00    0.01  108560/108560      parse_symbol <cycle 5> [42]
-[634]    0.0    0.00    0.01  108560         eval_trail [634]
-                0.00    0.00   19276/146950      f_regionid_s [477]
-                0.00    0.00   19276/785221      trailinto [207]
-                0.00    0.00  108560/13102790     opstack_pop [176]
-                0.00    0.00  108560/13102790     opstack_push [202]
-                0.00    0.00  108560/13399069     balloc [363]
-                0.00    0.00    4257/24887945     locale_string [27]
-                0.00    0.00    4287/17451017     strlcpy_w [67]
-                0.00    0.00   19276/36653945     wrptr [178]
------------------------------------------------
-                0.00    0.01     229/229         report_plaintext [4]
-[635]    0.0    0.00    0.01     229         list_address [635]
-                0.00    0.00   10794/2742237     paragraph [26]
-                0.00    0.00   10565/1205451     alliedfaction [162]
-                0.00    0.00   10794/1295787     factionname [247]
-                0.00    0.00     229/24887945     locale_string [27]
-                0.00    0.00     229/37931       centre [789]
-                0.00    0.00     176/3902878     get_monsters [293]
-                0.00    0.00     458/2494242     newline [594]
-                0.00    0.00   10565/1214628     is_allied [1368]
-                0.00    0.00     229/128135      rpline [1433]
------------------------------------------------
-                0.00    0.01  300810/300810      count_enemies [611]
-[636]    0.0    0.00    0.01  300810         count_enemies_i [636]
-                0.00    0.00  317201/317239      count_side [666]
-                0.00    0.00   25256/1662377     get_unitrow [154]
------------------------------------------------
-                0.00    0.01   11159/11159       produce [29]
-[637]    0.0    0.00    0.01   11159         expandentertainment [637]
-                0.00    0.00   16560/34409       add_income [625]
-                0.00    0.00   16560/472418      produceexp [322]
-                0.00    0.00   11159/79772       entertainmoney [643]
-                0.00    0.00   16560/2599554     change_money [337]
-                0.00    0.00   16560/2186159     rsetmoney [553]
-                0.00    0.00   16560/4666665     rmoney [452]
------------------------------------------------
-                0.00    0.01   14191/14191       battle_flee [352]
-[638]    0.0    0.00    0.01   14191         flee [638]
-                0.00    0.01   14191/25088       kill_troop [532]
-                0.00    0.00   14191/337987      setguard [815]
------------------------------------------------
-                0.00    0.01    1711/1711        cr_output_unit [19]
-[639]    0.0    0.00    0.01    1711         cr_output_spells [639]
-                0.00    0.00   33909/4434556     translate [75]
-                0.00    0.00   33909/86400       spell_name [646]
-                0.00    0.00   33909/4133717     mkname [261]
-                0.00    0.00   35101/10103290     stream_printf [158]
-                0.00    0.00    1711/597806      unit_get_spellbook [427]
------------------------------------------------
-                0.00    0.00       2/797288      sp_enterastral [1045]
-                0.00    0.01  797286/797288      random_neighbour [153]
-[640]    0.0    0.00    0.01  797288         can_survive [640]
-                0.00    0.00  173175/12246335     ct_find [114]
-                0.00    0.00  949946/129167539     u_race [89]
-                0.00    0.00   19730/10190660     get_curse [143]
-                0.00    0.00   19730/4201030     curse_active [543]
-                0.00    0.00  742475/744202      has_horses [1378]
------------------------------------------------
-                0.00    0.00   93452/190469      describe [35]
-                0.00    0.00   97017/190469      cr_borders [135]
-[641]    0.0    0.00    0.01  190469         border_name [641]
-                0.00    0.01  190467/190467      b_nameroad [642]
-                0.00    0.00       2/2           b_namequestportal [1279]
------------------------------------------------
-                0.00    0.01  190467/190467      border_name [641]
-[642]    0.0    0.00    0.01  190467         b_nameroad [642]
-                0.00    0.00   93450/24887945     locale_string [27]
-                0.00    0.00   93450/4133717     mkname [261]
-                0.00    0.00    2705/5461936     slprintf [548]
------------------------------------------------
-                0.00    0.00   11159/79772       expandentertainment [637]
-                0.00    0.00   31676/79772       statistics [70]
-                0.00    0.00   36937/79772       cr_output_region [10]
-[643]    0.0    0.00    0.01   79772         entertainmoney [643]
-                0.00    0.00  159633/12246335     ct_find [114]
-                0.00    0.00  159633/10190660     get_curse [143]
-                0.00    0.00  159544/4201030     curse_active [543]
-                0.00    0.00   79772/4666665     rmoney [452]
-                0.00    0.00  159633/651711      oldcursename [1381]
-                0.00    0.00      89/432940      curse_geteffect [1395]
------------------------------------------------
-                0.00    0.00       2/201744      sp_bloodsacrifice [1209]
-                0.00    0.00       3/201744      sp_song_of_peace [939]
-                0.00    0.00       6/201744      sp_mallornhain [968]
-                0.00    0.00       9/201744      sp_hain [931]
-                0.00    0.00       9/201744      sp_summonundead [896]
-                0.00    0.00      21/201744      sp_kampfzauber [957]
-                0.00    0.00      53/201744      sp_dragonodem [627]
-                0.00    0.00    1714/201744      eaten_by_monster [468]
-                0.00    0.00    2200/201744      absorbed_by_monster [804]
-                0.00    0.01  197727/201744      scared_by_monster [380]
-[644]    0.0    0.00    0.01  201744         lovar [644]
-                0.00    0.00  403488/7641081     genrand_int31 [171]
-                0.00    0.00       1/1           register_reports [1851]
------------------------------------------------
-                0.00    0.01   80630/80630       terminate [242]
-[645]    0.0    0.00    0.01   80630         calculate_armor [645]
-                0.00    0.00   80630/80630       select_magicarmor [680]
-                0.00    0.00    7938/7957        magic_resistance [727]
-                0.00    0.00   80630/80630       natural_armor [788]
-                0.00    0.00  161260/868104      select_armor [700]
-                0.00    0.00    7938/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       8/86400       do_combatmagic [825]
-                0.00    0.00      23/86400       do_combatspell [702]
-                0.00    0.00     279/86400       cr_spell [1026]
-                0.00    0.00     604/86400       eval_spell [961]
-                0.00    0.00    1261/86400       cr_output_unit [19]
-                0.00    0.00    2081/86400       cr_reportspell [756]
-                0.00    0.00    2081/86400       nr_spell_syntax [732]
-                0.00    0.00    2081/86400       nr_spell [507]
-                0.00    0.00    8557/86400       select_spellbook [761]
-                0.00    0.00   33909/86400       cr_output_spells [639]
-                0.00    0.00   35516/86400       bufunit [17]
-[646]    0.0    0.00    0.01   86400         spell_name [646]
-                0.00    0.00   86400/24887945     locale_string [27]
-                0.00    0.00   86400/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00       1/41248       movement_error [1193]
-                0.00    0.00       1/41248       travel_i [92]
-                0.00    0.00       1/41248       allocate_resource [752]
-                0.00    0.00       1/41248       plant [1184]
-                0.00    0.00       1/41248       planttrees [1206]
-                0.00    0.00       2/41248       travel [81]
-                0.00    0.00       2/41248       give_men [857]
-                0.00    0.00       3/41248       mail_cmd [844]
-                0.00    0.00       4/41248       init_transportation [384]
-                0.00    0.00       4/41248       ship_ready [354]
-                0.00    0.00       4/41248       spy_cmd [990]
-                0.00    0.00       5/41248       buy [707]
-                0.00    0.00      10/41248       make_cmd [383]
-                0.00    0.00      10/41248       tax_cmd [697]
-                0.00    0.00      16/41248       build_road [950]
-                0.00    0.00      19/41248       enter_building [695]
-                0.00    0.00      22/41248       check_give [1138]
-                0.00    0.00      24/41248       cancast [833]
-                0.00    0.00      46/41248       steal_cmd [766]
-                0.00    0.00      57/41248       start_battle [297]
-                0.00    0.00      84/41248       do_work [612]
-                0.00    0.00     170/41248       guard_on_cmd [656]
-                0.00    0.00     182/41248       msg_materials_required [1005]
-                0.00    0.00     186/41248       study_cmd [105]
-                0.00    0.00    1225/41248       give_item [126]
-                0.00    0.00    1323/41248       teach_cmd [272]
-                0.00    0.00    8935/41248       msg_error [744]
-                0.00    0.00   28910/41248       give_cmd [102]
-[647]    0.0    0.00    0.01   41248         msg_feedback [647]
-                0.00    0.00   41248/1010116     mt_find [227]
-                0.00    0.00   41248/1009159     msg_create [228]
-                0.00    0.00  123744/123744      arg_set [1434]
------------------------------------------------
-                0.00    0.01      53/53          attack [84]
-[648]    0.0    0.00    0.01      53         do_extra_spell [648]
-                0.00    0.01      53/74          cast_combatspell [623]
------------------------------------------------
-                0.00    0.01  832876/832876      parse <cycle 5> [333]
-[649]    0.0    0.00    0.01  832876         parse_int [649]
-                0.01    0.00  832876/13102790     opstack_push [202]
------------------------------------------------
-                0.00    0.01    1835/1835        economics [78]
-[650]    0.0    0.00    0.01    1835         recruit [650]
-                0.00    0.00    1716/15361       is_guarded [377]
-                0.00    0.00    3359/541982      get_pooled [104]
-                0.00    0.00    1670/760673      addlist [217]
-                0.00    0.00    3340/2624955     has_skill [193]
-                0.00    0.00    1835/57138       getint [699]
-                0.00    0.00    1689/71815034     get_race [12]
-                0.00    0.00    1670/635885      copy_order [441]
-                0.00    0.00    1689/12246335     ct_find [114]
-                0.00    0.00    1689/10190660     get_curse [143]
-                0.00    0.00     119/119         syntax_error [1036]
-                0.00    0.00     378/2281756     gettoken [195]
-                0.00    0.00    1835/1027665     init_order [613]
-                0.00    0.00    3551/129167539     u_race [89]
-                0.00    0.00    3359/56052475     get_resourcetype [194]
-                0.00    0.00      46/15102       cmistake [718]
-                0.00    0.00    1689/4201030     curse_active [543]
-                0.00    0.00    1689/18647447     getplane [596]
-                0.00    0.00       4/338         findrace [1030]
-                0.00    0.00    1716/1716        recruit_cost [1564]
-                0.00    0.00    1716/600145      u_setrace [1389]
-                0.00    0.00    1689/651711      oldcursename [1381]
-                0.00    0.00      89/40692       get_gamedate [1466]
-                0.00    0.00      89/59694       r_insectstalled [1446]
------------------------------------------------
-                0.00    0.00       5/490901      name_cmd [835]
-                0.00    0.01  490896/490901      default_wage [173]
-[651]    0.0    0.00    0.01  490901         largestbuilding [651]
-                0.00    0.00  396305/396305      cmp_wage [670]
-                0.00    0.00  172276/51974272     a_find [65]
------------------------------------------------
-                0.00    0.01  329691/329691      is_guard [211]
-[652]    0.0    0.00    0.01  329691         getguard [652]
-                0.00    0.00  329691/51974272     a_find [65]
-                0.00    0.00  329691/377253      guard_flags [690]
------------------------------------------------
-                                                 <spontaneous>
-[653]    0.0    0.01    0.00                 cb_new_kv [653]
------------------------------------------------
-                0.00    0.00  353422/353422      hits [131]
-[654]    0.0    0.00    0.00  353422         contest [654]
-                0.00    0.00  353422/353422      contest_classic [655]
------------------------------------------------
-                0.00    0.00  353422/353422      contest [654]
-[655]    0.0    0.00    0.00  353422         contest_classic [655]
-                0.00    0.00  373896/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00   30554/30554       process [7]
-[656]    0.0    0.00    0.00   30554         guard_on_cmd [656]
-                0.00    0.00   23993/55350       can_start_guarding [679]
-                0.00    0.00   30554/69432       getparam [681]
-                0.00    0.00   23993/71815034     get_race [12]
-                0.00    0.00    6527/15102       cmistake [718]
-                0.00    0.00   30554/55492327     getkeyword [54]
-                0.00    0.00   30554/1027665     init_order [613]
-                0.00    0.00   23781/23781       guard [865]
-                0.00    0.00   47987/129167539     u_race [89]
-                0.00    0.00     170/41248       msg_feedback [647]
-                0.00    0.00     170/392959      add_message [434]
-                0.00    0.00     170/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      79/39810       drift_target [1053]
-                0.00    0.00   39731/39810       sail [181]
-[657]    0.0    0.00    0.00   39810         check_ship_allowed [657]
-                0.00    0.00   39810/560926      bt_find [237]
-                0.00    0.00    1357/12933       owner_buildingtyp [676]
-                0.00    0.00    1198/9953180     alliedunit [31]
-                0.00    0.00    1198/8898        ucontact [927]
-                0.00    0.00     179/188         is_freezing [1088]
-                0.00    0.00   39810/59694       r_insectstalled [1446]
-                0.00    0.00   39810/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.00    0.00   32670/32670       demographics [50]
-[658]    0.0    0.00    0.00   32670         peasants [658]
-                0.00    0.00   32670/264251      rsetpeasants [545]
-                0.00    0.00   32670/669051      production [417]
-                0.00    0.00   30250/1336242     rng_injectable_double [396]
-                0.00    0.00   67774/2605004     rpeasants [435]
-                0.00    0.00   66416/2765718     maintenance_cost [481]
-                0.00    0.00   30250/51974272     a_find [65]
-                0.00    0.00   30250/4984610     config_get_int [348]
-                0.00    0.00   32670/2186159     rsetmoney [553]
-                0.00    0.00   32670/4666665     rmoney [452]
-                0.00    0.00   30250/30308       peasant_growth_factor [928]
-                0.00    0.00   30250/30250       peasant_luck_effect [984]
-                0.00    0.00     110/967784      msg_message [132]
-                0.00    0.00     110/392959      add_message [434]
-                0.00    0.00     110/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00  178254/178254      ageing [185]
-[659]    0.0    0.00    0.00  178254         age_region [659]
-                0.00    0.00  178254/839202      a_age [418]
-                0.00    0.00  178254/1342832     handle_event [1363]
-                0.00    0.00   32670/32670       morale_update [1479]
------------------------------------------------
-                0.00    0.00    5049/5049        move_pirates [326]
-[660]    0.0    0.00    0.00    5049         piracy_cmd [660]
-                0.00    0.00   30248/47287       canswim [682]
-                0.00    0.00   21148/369586      r_connect [474]
-                0.00    0.00    5049/967784      msg_message [132]
-                0.00    0.00      99/103784      move_cmd [66]
-                0.00    0.00    5049/392959      add_message [434]
-                0.00    0.00    5049/5049        parse_ids [852]
-                0.00    0.00    5049/5049        find_piracy_target [967]
-                0.00    0.00     315/4374788     visible_faction [68]
-                0.00    0.00     315/9953180     alliedunit [31]
-                0.00    0.00    5049/5049        validate_pirate [1051]
-                0.00    0.00      99/447808      create_order [341]
-                0.00    0.00     412/7641081     genrand_int31 [171]
-                0.00    0.00      99/24887945     locale_string [27]
-                0.00    0.00     322/3358315     ship_owner [438]
-                0.00    0.00      36/4361        can_takeoff [854]
-                0.00    0.00      97/779419      a_add [555]
-                0.00    0.00      99/1027665     init_order [613]
-                0.00    0.00    5049/1009028     msg_release [1373]
-                0.00    0.00      99/1936876     free_order [1356]
-                0.00    0.00      97/97          mk_piracy [1652]
------------------------------------------------
-                0.00    0.00    1921/1921        report_computer [9]
-[661]    0.0    0.00    0.00    1921         show_allies_cr [661]
-                0.00    0.00   55310/10375491     alliedgroup [34]
------------------------------------------------
-                0.00    0.00  133873/133873      cr_render [196]
-[662]    0.0    0.00    0.00  133873         cr_region [662]
-                0.00    0.00  132705/1826688     adjust_coordinates [234]
-                0.00    0.00  132705/18647447     getplane [596]
-                0.00    0.00  132705/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.00 1771752/1771752     get_food [88]
-[663]    0.0    0.00    0.00 1771752         help_money [663]
-                0.00    0.00 1771752/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00   12828/26045       cr_output_curses [69]
-                0.00    0.00   13217/26045       nr_curses_i [401]
-[664]    0.0    0.00    0.00   26045         msg_curse [664]
-                0.00    0.00   15359/15359       cinfo_building [686]
-                0.00    0.00    5907/5907        cinfo_simple [751]
-                0.00    0.00    2274/2274        cinfo_ship [812]
-                0.00    0.00    1911/1911        cinfo_magicresistance [824]
-                0.00    0.00     183/183         cinfo_magicrunes [996]
-                0.00    0.00     163/163         cinfo_shipnodrift [997]
-                0.00    0.00      62/62          cinfo_speed [1110]
-                0.00    0.00     134/134         cinfo_slave [1118]
-                0.00    0.00      52/52          cinfo_skillmod [1192]
------------------------------------------------
-                0.00    0.00   16596/16596       produce [29]
-[665]    0.0    0.00    0.00   16596         entertain_cmd [665]
-                0.00    0.00   33156/12320804     effskill <cycle 1> [100]
-                0.00    0.00   16560/16751       getuint [778]
-                0.00    0.00     278/15361       is_guarded [377]
-                0.00    0.00   16560/12246335     ct_find [114]
-                0.00    0.00   16560/10190660     get_curse [143]
-                0.00    0.00   16596/1027665     init_order [613]
-                0.00    0.00   16597/20777534     config_get [224]
-                0.00    0.00   16560/4201030     curse_active [543]
-                0.00    0.00   16593/8506411     besieged [547]
-                0.00    0.00      36/15102       cmistake [718]
-                0.00    0.00   16560/651711      oldcursename [1381]
------------------------------------------------
-                0.00    0.00      38/317239      count_allies [1220]
-                0.00    0.00  317201/317239      count_enemies_i [636]
-[666]    0.0    0.00    0.00  317239         count_side [666]
-                0.00    0.00   49445/1662377     get_unitrow [154]
-                0.00    0.00  324731/4301501     statusrow [550]
------------------------------------------------
-                0.00    0.00      55/598069      renumber_unit [1159]
-                0.00    0.00    2889/598069      createunitid [317]
-                0.00    0.00  595125/598069      read_unit [74]
-[667]    0.0    0.00    0.00  598069         uhash [667]
-                0.00    0.00  598069/2903884     jenkins_hash [439]
------------------------------------------------
-                0.00    0.00       1/534930      destroy_cmd [1113]
-                0.00    0.00      16/534930      addparam_unit [1214]
-                0.00    0.00      42/534930      teach_cmd [272]
-                0.00    0.00     241/534930      reshow_cmd [818]
-                0.00    0.00     280/534930      use_cmd [763]
-                0.00    0.00   24385/534930      parse_order [117]
-                0.00    0.00   94233/534930      give_cmd [102]
-                0.00    0.00  131764/534930      give_control_cmd [287]
-                0.00    0.00  283968/534930      read_unitid [413]
-[668]    0.0    0.00    0.00  534930         isparam [668]
-                0.00    0.00  362487/1787006     findparam [458]
------------------------------------------------
-                0.00    0.00     191/66134       follow_ship [749]
-                0.00    0.00   18850/66134       cr_output_ship [152]
-                0.00    0.00   47093/66134       sail [181]
-[669]    0.0    0.00    0.00   66134         shipspeed [669]
-                0.00    0.00   67682/12246335     ct_find [114]
-                0.00    0.00   67682/10190660     get_curse [143]
-                0.00    0.00   66058/51974272     a_find [65]
-                0.00    0.00   66058/66058       ShipSpeedBonus [806]
-                0.00    0.00   66134/3358315     ship_owner [438]
-                0.00    0.00  132028/129167539     u_race [89]
-                0.00    0.00    1624/4201030     curse_active [543]
-                0.00    0.00     820/820         curse_geteffect_int [1590]
------------------------------------------------
-                0.00    0.00  396305/396305      largestbuilding [651]
-[670]    0.0    0.00    0.00  396305         cmp_wage [670]
-                0.00    0.00  396305/1106528     is_building_type [554]
------------------------------------------------
-                0.00    0.00   40099/40099       parse_symbol <cycle 5> [42]
-[671]    0.0    0.00    0.00   40099         eval_skill [671]
-                0.00    0.00   40099/2934859     skillname [122]
-                0.00    0.00   40099/13102790     opstack_pop [176]
-                0.00    0.00   40099/13102790     opstack_push [202]
-                0.00    0.00   40099/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00   20072/20072       cr_render [196]
-[672]    0.0    0.00    0.00   20072         cr_skill [672]
-                0.00    0.00   20072/4434556     translate [75]
-                0.00    0.00   20072/2934859     skillname [122]
-                0.00    0.00   20072/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00   15708/15708       get_addresses [20]
-[673]    0.0    0.00    0.00   15708         add_travelthru_addresses [673]
-                0.00    0.00   15708/3398582     travelthru_map [41]
------------------------------------------------
-                0.00    0.00      15/355423      sp_summonundead [896]
-                0.00    0.00  355408/355423      spawn_undead [629]
-[674]    0.0    0.00    0.00  355423         deathcount [674]
-                0.00    0.00  355423/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      40/40          set_new_dragon_target [486]
-[675]    0.0    0.00    0.00      40         regions_in_range [675]
-                0.00    0.00   30233/162862      allowed_dragon [564]
-                0.00    0.00   25793/369586      r_connect [474]
-                0.00    0.00   27734/152803      new_node [1427]
-                0.00    0.00      40/428         free_nodes [1604]
------------------------------------------------
-                0.00    0.00    1357/12933       check_ship_allowed [657]
-                0.00    0.00    4629/12933       expandselling [93]
-                0.00    0.00    6947/12933       sail [181]
-[676]    0.0    0.00    0.00   12933         owner_buildingtyp [676]
-                0.00    0.00   28665/593636      building_owner [232]
-                0.00    0.00    2920/147171      building_finished [1428]
------------------------------------------------
-                0.00    0.00    2594/83224       make_fighter [424]
-                0.00    0.00   80630/83224       select_magicarmor [680]
-[677]    0.0    0.00    0.00   83224         trollbelts [677]
-                0.00    0.00   83224/5395063     i_get [130]
-                0.00    0.00   83224/2032164     rt_find [597]
------------------------------------------------
-                0.00    0.00  106798/106798      get_food [88]
-[678]    0.0    0.00    0.00  106798         help_feed [678]
-                0.00    0.00  106798/7120688     get_money [187]
-                0.00    0.00  106798/4198692     lifestyle [286]
-                0.00    0.00   32382/2599554     change_money [337]
-                0.00    0.00   16191/16191       add_donation [1509]
------------------------------------------------
-                0.00    0.00   23993/55350       guard_on_cmd [656]
-                0.00    0.00   31357/55350       update_guards [415]
-[679]    0.0    0.00    0.00   55350         can_start_guarding [679]
-                0.00    0.00   15347/771861      armedmen [151]
-                0.00    0.00   39959/3902878     get_monsters [293]
-                0.00    0.00   15173/16669       IsImmune [901]
-                0.00    0.00   15347/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00   80630/80630       calculate_armor [645]
-[680]    0.0    0.00    0.00   80630         select_magicarmor [680]
-                0.00    0.00   80630/83224       trollbelts [677]
------------------------------------------------
-                0.00    0.00       6/69432       send_cmd [1202]
-                0.00    0.00      17/69432       status_cmd [904]
-                0.00    0.00     138/69432       reshow_cmd [818]
-                0.00    0.00     597/69432       move_hunters [342]
-                0.00    0.00     677/69432       ally_cmd [877]
-                0.00    0.00    1425/69432       follow_unit [331]
-                0.00    0.00    5384/69432       teach_cmd [272]
-                0.00    0.00   30554/69432       guard_on_cmd [656]
-                0.00    0.00   30634/69432       guard_off_cmd [711]
-[681]    0.0    0.00    0.00   69432         getparam [681]
-                0.00    0.00   69432/2281756     gettoken [195]
-                0.00    0.00    7650/1787006     findparam [458]
------------------------------------------------
-                0.00    0.00    1953/47287       travel_route [147]
-                0.00    0.00    7542/47287       monthly_healing [215]
-                0.00    0.00    7544/47287       drown [394]
-                0.00    0.00   30248/47287       piracy_cmd [660]
-[682]    0.0    0.00    0.00   47287         canswim [682]
-                0.00    0.00   47287/5395063     i_get [130]
-                0.00    0.00   47287/1177511     it_find [385]
-                0.00    0.00   92804/129167539     u_race [89]
-                0.00    0.00     486/116002      get_movement [750]
------------------------------------------------
-                0.00    0.00   12778/34221       canwalk [633]
-                0.00    0.00   21443/34221       canride [465]
-[683]    0.0    0.00    0.00   34221         eff_weight [683]
-                0.00    0.00   34221/279395      weight [459]
-                0.00    0.00   34221/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00   11880/11880       cb_add_address [598]
-[684]    0.0    0.00    0.00   11880         cansee_unit [684]
-                0.00    0.00   13580/1753922     invisible [139]
-                0.00    0.00    9999/1188532     eff_stealth [163]
-                0.00    0.00    6428/12320804     effskill <cycle 1> [100]
-                0.00    0.00   11880/6610983     is_guard [211]
-                0.00    0.00   11880/129167539     u_race [89]
-                0.00    0.00   11880/4835422     usiege [593]
-                0.00    0.00    6428/21345834     skill_enabled [365]
------------------------------------------------
-                0.00    0.00   46224/46224       parse_symbol <cycle 5> [42]
-[685]    0.0    0.00    0.00   46224         eval_faction [685]
-                0.00    0.00   46224/1295787     factionname [247]
-                0.00    0.00   46224/13102790     opstack_pop [176]
-                0.00    0.00   46224/13102790     opstack_push [202]
-                0.00    0.00   46224/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00   15359/15359       msg_curse [664]
-[686]    0.0    0.00    0.00   15359         cinfo_building [686]
-                0.00    0.00   15359/967784      msg_message [132]
-                0.00    0.00   15359/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00  151532/2155959     report_template [87]
-                0.00    0.00  606357/2155959     read_unit [74]
-                0.00    0.00  692829/2155959     write_unit [97]
-                0.00    0.00  705241/2155959     cr_output_unit [19]
-[687]    0.0    0.00    0.00 2155959         is_persistent [687]
-                0.00    0.00  766833/2985733     is_repeated [552]
------------------------------------------------
-                0.00    0.00    2594/12398       battle_report [503]
-                0.00    0.00    4384/12398       battle_punit [620]
-                0.00    0.00    5420/12398       print_stats [525]
-[688]    0.0    0.00    0.00   12398         fbattlerecord [688]
-                0.00    0.00   12398/967784      msg_message [132]
-                0.00    0.00   12398/31214       message_faction [716]
-                0.00    0.00   12398/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     230/230         report_computer [9]
-[689]    0.0    0.00    0.00     230         write_translations [689]
-                0.00    0.00   50896/4488684     crtag [110]
------------------------------------------------
-                0.00    0.00   23781/377253      setguard [815]
-                0.00    0.00   23781/377253      guard [865]
-                0.00    0.00  329691/377253      getguard [652]
-[690]    0.0    0.00    0.00  377253         guard_flags [690]
-                0.00    0.00  377253/12560453     rc_changed [256]
-                0.00    0.00  407896/129167539     u_race [89]
-                0.00    0.00       3/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00     115/1239        build_ship [839]
-                0.00    0.00     149/1239        create_potion [821]
-                0.00    0.00     377/1239        manufacture [759]
-                0.00    0.00     598/1239        build_building [696]
-[691]    0.0    0.00    0.00    1239         build [691]
-                0.00    0.00    1484/860263      use_pooled [39]
-                0.00    0.00    1816/541982      get_pooled [104]
-                0.00    0.00    1705/12320804     skillmod <cycle 1> [214]
-                0.00    0.00    1230/12320804     effskill <cycle 1> [100]
-                0.00    0.00    1040/472418      produceexp [322]
-                0.00    0.00    4475/4475        matmod [975]
-                0.00    0.00    1356/6010308     i_find [127]
-                0.00    0.00    1230/2858912     get_effect [225]
-                0.00    0.00    1356/56052475     get_resourcetype [194]
-                0.00    0.00    1578/1583        skill_limit [1172]
-                0.00    0.00      95/2977        change_effect [982]
-                0.00    0.00      61/3003        roqf_factor [1329]
-                0.00    0.00    4530/26164       building_is_active [1488]
-                0.00    0.00    2978/3100        required [1547]
-                0.00    0.00    1733/26995       inside_building [1486]
------------------------------------------------
-                0.00    0.00      55/285923      renumber_unit [1159]
-                0.00    0.00  110903/285923      findnewunit [753]
-                0.00    0.00  174965/285923      cr_output_unit [19]
-[692]    0.0    0.00    0.00  285923         ualias [692]
-                0.00    0.00  285923/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00     206/206         do_battle [64]
-[693]    0.0    0.00    0.00     206         join_allies [693]
-                0.00    0.00     345/3203        join_battle [425]
-                0.00    0.00    2033/9953180     alliedunit [31]
-                0.00    0.00      23/48          allysfm [1122]
-                0.00    0.00     498/8506411     besieged [547]
-                0.00    0.00     719/18647447     getplane [596]
-                0.00    0.00       3/10375491     alliedgroup [34]
-                0.00    0.00    1520/1520        set_friendly [1574]
-                0.00    0.00     644/2073        set_enemy [1562]
------------------------------------------------
-                0.00    0.00   21443/21443       canride [465]
-[694]    0.0    0.00    0.00   21443         ridingcapacity [694]
-                0.00    0.00   33015/12320804     effskill <cycle 1> [100]
-                0.00    0.00   21443/129167539     u_race [89]
-                0.00    0.00   21443/130867      get_transporters [1431]
------------------------------------------------
-                0.00    0.00     405/405         do_enter [128]
-[695]    0.0    0.00    0.00     405         enter_building [695]
-                0.00    0.00     323/2887        leave [432]
-                0.00    0.00     401/401         mayenter [936]
-                0.00    0.00      19/41248       msg_feedback [647]
-                0.00    0.00     409/129167539     u_race [89]
-                0.00    0.00      19/392959      add_message [434]
-                0.00    0.00       1/15102       cmistake [718]
-                0.00    0.00     401/48455       findbuilding [1462]
-                0.00    0.00     323/677         slipthru [1593]
-                0.00    0.00     323/48565       u_set_building [1460]
-                0.00    0.00      19/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     621/621         make_cmd [383]
-[696]    0.0    0.00    0.00     621         build_building [696]
-                0.00    0.00     598/1239        build [691]
-                0.00    0.00     490/10232       update_lighthouse [605]
-                0.00    0.00     490/14326       replace_order [526]
-                0.00    0.00     490/967784      msg_message [132]
-                0.00    0.00       9/2887        leave [432]
-                0.00    0.00     621/12320804     effskill <cycle 1> [100]
-                0.00    0.00     581/392959      add_message [434]
-                0.00    0.00     490/24887945     locale_string [27]
-                0.00    0.00     325/447808      create_order [341]
-                0.00    0.00      91/182         msg_materials_required [1005]
-                0.00    0.00       9/11          new_building [1059]
-                0.00    0.00     165/3110        default_order [902]
-                0.00    0.00     587/4984610     config_get_int [348]
-                0.00    0.00      31/15102       cmistake [718]
-                0.00    0.00     598/8506411     besieged [547]
-                0.00    0.00     610/48455       findbuilding [1462]
-                0.00    0.00     581/1009028     msg_release [1373]
-                0.00    0.00     490/1936876     free_order [1356]
-                0.00    0.00       9/48565       u_set_building [1460]
-                0.00    0.00       2/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.00    0.00     960/960         produce [29]
-[697]    0.0    0.00    0.00     960         tax_cmd [697]
-                0.00    0.00     956/15361       is_guarded [377]
-                0.00    0.00    2659/12320804     effskill <cycle 1> [100]
-                0.00    0.00     960/771861      armedmen [151]
-                0.00    0.00     948/760673      addlist [217]
-                0.00    0.00     956/57138       getint [699]
-                0.00    0.00     960/71815034     get_race [12]
-                0.00    0.00    3836/129167539     u_race [89]
-                0.00    0.00     960/1027665     init_order [613]
-                0.00    0.00      10/41248       msg_feedback [647]
-                0.00    0.00     960/8506411     besieged [547]
-                0.00    0.00      10/392959      add_message [434]
-                0.00    0.00       2/15102       cmistake [718]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00      10/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   56643/56643       bufunit [17]
-[698]    0.0    0.00    0.00   56643         groupid [698]
-                0.00    0.00   56643/5100840     itoa36 [116]
------------------------------------------------
-                0.00    0.00      10/57138       combatspell_cmd [898]
-                0.00    0.00      42/57138       loot_cmd [873]
-                0.00    0.00     108/57138       cast_cmd [760]
-                0.00    0.00     956/57138       tax_cmd [697]
-                0.00    0.00    1835/57138       recruit [650]
-                0.00    0.00    5916/57138       buy [707]
-                0.00    0.00   16751/57138       getuint [778]
-                0.00    0.00   31520/57138       reserve_i [213]
-[699]    0.0    0.00    0.00   57138         getint [699]
-                0.00    0.00   57138/2281756     gettoken [195]
------------------------------------------------
-                0.00    0.00  161260/868104      calculate_armor [645]
-                0.00    0.00  706844/868104      hits [131]
-[700]    0.0    0.00    0.00  868104         select_armor [700]
-                0.00    0.00  868104/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00     206/206         do_battle [64]
-[701]    0.0    0.00    0.00     206         aftermath [701]
-                0.00    0.00     136/2887        leave [432]
-                0.00    0.00     319/319         loot_items [810]
-                0.00    0.00    1992/967784      msg_message [132]
-                0.00    0.00    3056/31214       message_faction [716]
-                0.00    0.00     206/412         do_combatmagic [825]
-                0.00    0.00     425/425         reportcasualties [881]
-                0.00    0.00     552/18788       sideabkz [745]
-                0.00    0.00     340/11241829     i_change [115]
-                0.00    0.00     425/3178        scale_number [969]
-                0.00    0.00     623/1474687     leftship [500]
-                0.00    0.00    1722/129167539     u_race [89]
-                0.00    0.00     206/206         battle_effects [1125]
-                0.00    0.00     319/337987      setguard [815]
-                0.00    0.00      60/4301501     statusrow [550]
-                0.00    0.00      12/717218      config_get_flt [714]
-                0.00    0.00    2594/2913        dead_fighters [1549]
-                0.00    0.00    2168/24449       seematrix [1491]
-                0.00    0.00    1992/1009028     msg_release [1373]
-                0.00    0.00    1104/22301       army_index [1498]
-                0.00    0.00     206/206         reorder_fleeing [1631]
-                0.00    0.00      12/160         damage_ship [1641]
------------------------------------------------
-                0.00    0.00      38/38          attack [84]
-[702]    0.0    0.00    0.00      38         do_combatspell [702]
-                0.00    0.00      21/74          cast_combatspell [623]
-                0.00    0.00      23/251         cancast [833]
-                0.00    0.00      23/251         eff_spelllevel [845]
-                0.00    0.00      23/226         fumble [973]
-                0.00    0.00       2/273         pay_spell [805]
-                0.00    0.00      23/1339        get_combatspelllevel [880]
-                0.00    0.00      21/225         spellpower [1000]
-                0.00    0.00      23/447808      create_order [341]
-                0.00    0.00      23/86400       spell_name [646]
-                0.00    0.00      38/4875        get_combatspell [874]
-                0.00    0.00       2/3           report_failed_spell [1187]
-                0.00    0.00      21/7641081     genrand_int31 [171]
-                0.00    0.00      21/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00    1078/11989       resolve_mage [856]
-                0.00    0.00    1202/11989       resolve_familiar [846]
-                0.00    0.00    2607/11989       resolve [757]
-                0.00    0.00    7102/11989       read_reference [726]
-[703]    0.0    0.00    0.00   11989         resolve_unit [703]
-                0.00    0.00    9926/888603      findunit [123]
------------------------------------------------
-                0.00    0.00    6962/6962        move_ship [374]
-[704]    0.0    0.00    0.00    6962         leave_trail [704]
-                0.00    0.00   39729/263302      reldirection [528]
-                0.00    0.00   39729/51974272     a_find [65]
-                0.00    0.00    3233/779419      a_add [555]
-                0.00    0.00    3233/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       6/22644       rsetroad [1152]
-                0.00    0.00   22638/22644       read_borders [706]
-[705]    0.0    0.00    0.00   22644         new_border [705]
-                0.00    0.00   22644/2248440     get_borders_i [118]
------------------------------------------------
-                0.00    0.00       1/1           read_game [62]
-[706]    0.0    0.00    0.00       1         read_borders [706]
-                0.00    0.00   22638/22644       new_border [705]
-                0.00    0.00   45276/46742       findregionbyid [1463]
-                0.00    0.00   22638/22638       find_bordertype [1496]
-                0.00    0.00   22637/22637       b_readroad [1497]
-                0.00    0.00       1/1           b_read [1791]
------------------------------------------------
-                0.00    0.00    5916/5916        produce [29]
-[707]    0.0    0.00    0.00    5916         buy [707]
-                0.00    0.00    5757/760673      addlist [217]
-                0.00    0.00    5903/12320804     effskill <cycle 1> [100]
-                0.00    0.00    5916/57138       getint [699]
-                0.00    0.00    5762/2281756     gettoken [195]
-                0.00    0.00    5915/71815034     get_race [12]
-                0.00    0.00      30/15361       is_guarded [377]
-                0.00    0.00    5903/51974272     a_find [65]
-                0.00    0.00    3642/779419      a_add [555]
-                0.00    0.00    5916/1027665     init_order [613]
-                0.00    0.00    5762/191379      finditemtype [735]
-                0.00    0.00     154/15102       cmistake [718]
-                0.00    0.00    5915/129167539     u_race [89]
-                0.00    0.00    5915/8506411     besieged [547]
-                0.00    0.00       5/41248       msg_feedback [647]
-                0.00    0.00       5/392959      add_message [434]
-                0.00    0.00       1/560926      bt_find [237]
-                0.00    0.00    5762/21500       resource2luxury [1499]
-                0.00    0.00    5762/308950      r_demand [1404]
-                0.00    0.00    5460/204314      bt_changed [1415]
-                0.00    0.00    3642/779868      a_new [1376]
-                0.00    0.00     847/1511812     newterrain [1359]
-                0.00    0.00       5/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   11599/11599       skilldiff [166]
-[708]    0.0    0.00    0.00   11599         building_protection [708]
-                0.00    0.00   11599/184870      buildingeffsize [367]
------------------------------------------------
-                0.00    0.00   12984/748527      plan_monsters [52]
-                0.00    0.00  317735/748527      monster_learn [269]
-                0.00    0.00  417808/748527      study_cmd [105]
-[709]    0.0    0.00    0.00  748527         unit_can_study [709]
-                0.00    0.00  748527/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      42/54318       teach_cmd [272]
-                0.00    0.00     191/54318       follow_ship [749]
-                0.00    0.00     620/54318       mail_cmd [844]
-                0.00    0.00     621/54318       group_cmd [985]
-                0.00    0.00    2012/54318       display_cmd [859]
-                0.00    0.00    3114/54318       name_cmd [835]
-                0.00    0.00    5053/54318       parse_ids [852]
-                0.00    0.00   42665/54318       sail [181]
-[710]    0.0    0.00    0.00   54318         getstrtoken [710]
-                0.00    0.00   54318/5387327     parse_token [125]
------------------------------------------------
-                0.00    0.00   30634/30634       process [7]
-[711]    0.0    0.00    0.00   30634         guard_off_cmd [711]
-                0.00    0.00   30634/69432       getparam [681]
-                0.00    0.00   30634/55492327     getkeyword [54]
-                0.00    0.00   30634/1027665     init_order [613]
-                0.00    0.00      76/337987      setguard [815]
------------------------------------------------
-                0.00    0.00   46184/46184       ageing [185]
-[712]    0.0    0.00    0.00   46184         age_building [712]
-                0.00    0.00   46184/839202      a_age [418]
-                0.00    0.00   46184/1106528     is_building_type [554]
-                0.00    0.00     124/124         age_stonecircle [1021]
-                0.00    0.00   46184/1342832     handle_event [1363]
------------------------------------------------
-                0.00    0.00       1/717287      heal_factor [619]
-                0.00    0.00      68/717287      parse_races [1104]
-                0.00    0.00  717218/717287      config_get_flt [714]
-[713]    0.0    0.00    0.00  717287         get_param_flt [713]
-                0.00    0.00  717287/26776263     get_param [235]
------------------------------------------------
-                0.00    0.00       1/717218      move_iceberg [1094]
-                0.00    0.00       1/717218      plan_monsters [52]
-                0.00    0.00      12/717218      aftermath [701]
-                0.00    0.00      30/717218      overload_start [1295]
-                0.00    0.00      58/717218      peasant_luck_factor [1277]
-                0.00    0.00      96/717218      sinkships [475]
-                0.00    0.00     143/717218      ResourceFactor [1236]
-                0.00    0.00     508/717218      MagicRegeneration [1185]
-                0.00    0.00    1062/717218      loot_quota [1013]
-                0.00    0.00    7273/717218      sail [181]
-                0.00    0.00   23838/717218      give_quota [858]
-                0.00    0.00   30308/717218      peasant_growth_factor [928]
-                0.00    0.00   58080/717218      bewegung_blockiert_von [631]
-                0.00    0.00  178254/717218      drifting_ships [490]
-                0.00    0.00  417554/717218      random_move_chance [754]
-[714]    0.0    0.00    0.00  717218         config_get_flt [714]
-                0.00    0.00  717218/717287      get_param_flt [713]
------------------------------------------------
-                0.00    0.00  152504/152504      terrain_name [226]
-[715]    0.0    0.00    0.00  152504         plain_name [715]
-                0.00    0.00  152504/7910500     r_isforest [199]
------------------------------------------------
-                0.00    0.00       4/31214       terminate [242]
-                0.00    0.00     679/31214       print_header [838]
-                0.00    0.00    3056/31214       aftermath [701]
-                0.00    0.00    4336/31214       print_stats [525]
-                0.00    0.00    5188/31214       battle_report [503]
-                0.00    0.00    5553/31214       message_all [834]
-                0.00    0.00   12398/31214       fbattlerecord [688]
-[716]    0.0    0.00    0.00   31214         message_faction [716]
-                0.00    0.00   31214/392959      add_message [434]
------------------------------------------------
-                0.00    0.00     981/179235      chaosfactor [1077]
-                0.00    0.00  178254/179235      chaos_update [514]
-[717]    0.0    0.00    0.00  179235         get_chaoscount [717]
-                0.00    0.00  179235/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00       1/15102       report_failure [1285]
-                0.00    0.00       1/15102       sp_summon_familiar [1025]
-                0.00    0.00       1/15102       sp_hain [931]
-                0.00    0.00       1/15102       sp_charmingsong [993]
-                0.00    0.00       1/15102       enter_building [695]
-                0.00    0.00       1/15102       display_cmd [859]
-                0.00    0.00       1/15102       try_rename [1225]
-                0.00    0.00       1/15102       fumble_default [1284]
-                0.00    0.00       1/15102       cast_cmd [760]
-                0.00    0.00       2/15102       travel_route [147]
-                0.00    0.00       2/15102       tax_cmd [697]
-                0.00    0.00       2/15102       give_unit [952]
-                0.00    0.00       2/15102       name_cmd [835]
-                0.00    0.00       3/15102       give_control_cmd [287]
-                0.00    0.00       4/15102       init_transportation [384]
-                0.00    0.00       4/15102       breedhorses [742]
-                0.00    0.00       4/15102       build_road [950]
-                0.00    0.00       5/15102       follow_unit [331]
-                0.00    0.00       5/15102       leave_cmd [721]
-                0.00    0.00       6/15102       enter_ship [733]
-                0.00    0.00      16/15102       reshow_other [823]
-                0.00    0.00      22/15102       herbsearch [493]
-                0.00    0.00      22/15102       create_item [617]
-                0.00    0.00      22/15102       destroy_cmd [1113]
-                0.00    0.00      24/15102       do_work [612]
-                0.00    0.00      27/15102       combatspell_cmd [898]
-                0.00    0.00      31/15102       build_building [696]
-                0.00    0.00      32/15102       start_battle [297]
-                0.00    0.00      36/15102       entertain_cmd [665]
-                0.00    0.00      46/15102       recruit [650]
-                0.00    0.00      61/15102       ship_ready [354]
-                0.00    0.00      72/15102       renumber_cmd [780]
-                0.00    0.00     105/15102       travel_i [92]
-                0.00    0.00     107/15102       ally_cmd [877]
-                0.00    0.00     112/15102       sail [181]
-                0.00    0.00     139/15102       allocate_resource [752]
-                0.00    0.00     154/15102       buy [707]
-                0.00    0.00     160/15102       follow_ship [749]
-                0.00    0.00     163/15102       movement [47]
-                0.00    0.00     182/15102       use_cmd [763]
-                0.00    0.00     199/15102       continue_ship [813]
-                0.00    0.00     234/15102       study_cmd [105]
-                0.00    0.00     965/15102       give_cmd [102]
-                0.00    0.00    1141/15102       add_give [379]
-                0.00    0.00    1178/15102       update_long_order [270]
-                0.00    0.00    3277/15102       sell [498]
-                0.00    0.00    6527/15102       guard_on_cmd [656]
-[718]    0.0    0.00    0.00   15102         cmistake [718]
-                0.00    0.00   15102/15240       msg_error [744]
-                0.00    0.00    8797/392959      add_message [434]
-                0.00    0.00    8797/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       3/178257      tolua_getkey [1281]
-                0.00    0.00  178254/178257      tolua_region_getkey [628]
-[719]    0.0    0.00    0.00  178257         key_get [719]
-                0.00    0.00  178257/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00  178254/178254      move_pirates [326]
-[720]    0.0    0.00    0.00  178254         age_traveldir [720]
-                0.00    0.00  178254/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00     236/236         process [7]
-[721]    0.0    0.00    0.00     236         leave_cmd [721]
-                0.00    0.00     222/2887        leave [432]
-                0.00    0.00       5/15102       cmistake [718]
-                0.00    0.00       5/129167539     u_race [89]
-                0.00    0.00     222/677         slipthru [1593]
------------------------------------------------
-                0.00    0.00       3/174968      cast_cmd [760]
-                0.00    0.00  174965/174968      cr_output_unit [19]
-[722]    0.0    0.00    0.00  174968         get_familiar_mage [722]
-                0.00    0.00  174968/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00    5966/5966        herbsearch [493]
-[723]    0.0    0.00    0.00    5966         ntimespprob [723]
-                0.00    0.00   83094/1336242     rng_injectable_double [396]
------------------------------------------------
-                0.00    0.00    5810/5810        report_donations [725]
-[724]    0.0    0.00    0.00    5810         report_transfer [724]
-                0.00    0.00    5810/967784      msg_message [132]
-                0.00    0.00   11620/12265       r_addmessage [779]
-                0.00    0.00    5810/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/1           reports [2]
-[725]    0.0    0.00    0.00       1         report_donations [725]
-                0.00    0.00    5810/5810        report_transfer [724]
------------------------------------------------
-                0.00    0.00       1/9763        caldera_read [1270]
-                0.00    0.00       1/9763        clonedied_read [1271]
-                0.00    0.00       1/9763        giveitem_read [1262]
-                0.00    0.00       2/9763        wormhole_read [1238]
-                0.00    0.00       3/9763        changerace_read [1215]
-                0.00    0.00      10/9763        changefaction_read [1166]
-                0.00    0.00     760/9763        read_familiar [893]
-                0.00    0.00     760/9763        read_magician [894]
-                0.00    0.00     768/9763        shock_read [892]
-                0.00    0.00    1138/9763        read_targetregion [870]
-                0.00    0.00    2299/9763        killunit_read [817]
-                0.00    0.00    4020/9763        curse_read [770]
-[726]    0.0    0.00    0.00    9763         read_reference [726]
-                0.00    0.00    7102/11989       resolve_unit [703]
-                0.00    0.00     760/1202        resolve_familiar [846]
-                0.00    0.00     760/1078        resolve_mage [856]
-                0.00    0.00    8622/8622        read_unit_reference [1521]
-                0.00    0.00    3693/34565       ur_add [1472]
-                0.00    0.00    1140/1140        read_region_reference [1582]
-                0.00    0.00    1140/1466        resolve_region_id [1575]
-                0.00    0.00       1/1           read_building_reference [1831]
-                0.00    0.00       1/1           resolve_building [1862]
------------------------------------------------
-                0.00    0.00       3/7957        target_resists_magic [1154]
-                0.00    0.00      16/7957        damage_unit [1044]
-                0.00    0.00    7938/7957        calculate_armor [645]
-[727]    0.0    0.00    0.00    7957         magic_resistance [727]
-                0.00    0.00    7957/12320804     effskill <cycle 1> [100]
-                0.00    0.00    7957/71815034     get_race [12]
-                0.00    0.00    7957/5395063     i_get [130]
-                0.00    0.00    8573/12246335     ct_find [114]
-                0.00    0.00    7957/10190660     get_curse [143]
-                0.00    0.00    7957/51974272     a_find [65]
-                0.00    0.00    7957/129167539     u_race [89]
-                0.00    0.00    7957/56052475     get_resourcetype [194]
-                0.00    0.00    7957/18647447     getplane [596]
-                0.00    0.00    7957/26995       inside_building [1486]
-                0.00    0.00    7957/26164       building_is_active [1488]
------------------------------------------------
-                0.00    0.00    3438/3438        prepare_lighthouse [340]
-[728]    0.0    0.00    0.00    3438         lighthouse_range [728]
-                0.00    0.00   11409/593636      building_owner [232]
-                0.00    0.00    3403/12320804     effskill <cycle 1> [100]
-                0.00    0.00    3387/21345834     skill_enabled [365]
-                0.00    0.00    3387/19671       buildingcapacity [1500]
------------------------------------------------
-                0.00    0.00   25857/25857       parse_symbol <cycle 5> [42]
-[729]    0.0    0.00    0.00   25857         eval_int36 [729]
-                0.00    0.00   25857/5100840     itoa36 [116]
-                0.00    0.00   25857/13102790     opstack_pop [176]
-                0.00    0.00   25857/13102790     opstack_push [202]
-                0.00    0.00   25857/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00      22/45          report_computer [9]
-                0.00    0.00      23/45          report_plaintext [4]
-[730]    0.0    0.00    0.00      45         count_maxmigrants [730]
-                0.00    0.00      45/967         count_all [357]
-                0.00    0.00      45/5065285     get_param_int [422]
------------------------------------------------
-                0.00    0.00      22/45          report_computer [9]
-                0.00    0.00      23/45          report_plaintext [4]
-[731]    0.0    0.00    0.00      45         count_migrants [731]
-                0.00    0.00      45/2247        count_faction [219]
------------------------------------------------
-                0.00    0.00    2081/2081        nr_spell [507]
-[732]    0.0    0.00    0.00    2081         nr_spell_syntax [732]
-                0.00    0.00    2081/2742237     paragraph [26]
-                0.00    0.00    4762/24887945     locale_string [27]
-                0.00    0.00    2081/86400       spell_name [646]
-                0.00    0.00    2622/34611296     strlcpy [45]
-                0.00    0.00    7912/36653945     wrptr [178]
-                0.00    0.00     140/4133717     mkname [261]
-                0.00    0.00    2081/2009097     keyword [1355]
------------------------------------------------
-                0.00    0.00     222/222         do_enter [128]
-[733]    0.0    0.00    0.00     222         enter_ship [733]
-                0.00    0.00     191/2887        leave [432]
-                0.00    0.00     195/195         mayboard [1046]
-                0.00    0.00     191/191         CheckOverload [1180]
-                0.00    0.00       6/15102       cmistake [718]
-                0.00    0.00     222/129167539     u_race [89]
-                0.00    0.00     222/28818       findship [1483]
-                0.00    0.00     191/27640       u_set_ship [1485]
------------------------------------------------
-                0.00    0.00   41255/41255       copy_arg [521]
-[734]    0.0    0.00    0.00   41255         var_copy_order [734]
-                0.00    0.00   41255/635885      copy_order [441]
------------------------------------------------
-                0.00    0.00       2/191379      claim_cmd [1242]
-                0.00    0.00     103/191379      reshow_other [823]
-                0.00    0.00     590/191379      use_cmd [763]
-                0.00    0.00    4259/191379      make_cmd [383]
-                0.00    0.00    5762/191379      buy [707]
-                0.00    0.00   15731/191379      sell [498]
-                0.00    0.00   71364/191379      reserve_i [213]
-                0.00    0.00   93568/191379      give_cmd [102]
-[735]    0.0    0.00    0.00  191379         finditemtype [735]
-                0.00    0.00  191379/4457785     transliterate [358]
-                0.00    0.00  191379/2124526     locale_index [1354]
------------------------------------------------
-                0.00    0.00      32/115276      travel_i [92]
-                0.00    0.00      74/115276      init_transportation [384]
-                0.00    0.00     474/115276      follow_ship [749]
-                0.00    0.00     475/115276      move_hunters [342]
-                0.00    0.00     519/115276      follow_unit [331]
-                0.00    0.00  113702/115276      movement [47]
-[736]    0.0    0.00    0.00  115276         can_move [736]
-                0.00    0.00  115276/116002      get_movement [750]
-                0.00    0.00  115276/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      36/178290      move_iceberg [1094]
-                0.00    0.00  178254/178290      new_region [275]
-[737]    0.0    0.00    0.00  178290         rhash [737]
-                0.00    0.00  178290/2903884     jenkins_hash [439]
------------------------------------------------
-                0.00    0.00  189341/189341      produce [29]
-[738]    0.0    0.00    0.00  189341         rule_autowork [738]
-                0.00    0.00  189341/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00    2665/2665        read_unitid [413]
-[739]    0.0    0.00    0.00    2665         read_newunitid [739]
-                0.00    0.00    2665/2665        findnewunit [753]
-                0.00    0.00    2665/228907      getid [483]
------------------------------------------------
-                0.00    0.00   19545/19545       parse_symbol <cycle 5> [42]
-[740]    0.0    0.00    0.00   19545         eval_ship [740]
-                0.00    0.00   14502/1065211     shipname [290]
-                0.00    0.00    5043/24887945     locale_string [27]
-                0.00    0.00   19545/13102790     opstack_pop [176]
-                0.00    0.00   19545/13102790     opstack_push [202]
-                0.00    0.00   19545/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00     177/177         produce [29]
-[741]    0.0    0.00    0.00     177         breed_cmd [741]
-                0.00    0.00     174/174         breedhorses [742]
-                0.00    0.00     179/2281756     gettoken [195]
-                0.00    0.00       2/2           breedtrees [1148]
-                0.00    0.00     176/1787006     findparam [458]
-                0.00    0.00     177/1027665     init_order [613]
-                0.00    0.00     174/174         findresourcetype [1181]
-                0.00    0.00       1/1           plant [1184]
-                0.00    0.00     521/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00     174/174         breed_cmd [741]
-[742]    0.0    0.00    0.00     174         breedhorses [742]
-                0.00    0.00   60896/7641081     genrand_int31 [171]
-                0.00    0.00   12859/11241829     i_change [115]
-                0.00    0.00     170/967784      msg_message [132]
-                0.00    0.00     170/472418      produceexp [322]
-                0.00    0.00     170/12320804     effskill <cycle 1> [100]
-                0.00    0.00     170/392959      add_message [434]
-                0.00    0.00     170/5395063     i_get [130]
-                0.00    0.00     174/424669      active_building [560]
-                0.00    0.00       4/15102       cmistake [718]
-                0.00    0.00     174/56052475     get_resourcetype [194]
-                0.00    0.00       1/560926      bt_find [237]
-                0.00    0.00     174/204314      bt_changed [1415]
-                0.00    0.00     170/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00  178254/178254      process [7]
-[743]    0.0    0.00    0.00  178254         split_allocations [743]
-                0.00    0.00    2938/967784      msg_message [132]
-                0.00    0.00    2825/472418      produceexp [322]
-                0.00    0.00    2938/392959      add_message [434]
-                0.00    0.00    1301/1301        leveled_allocation [888]
-                0.00    0.00    1422/1422        attrib_allocation [914]
-                0.00    0.00    2825/11241829     i_change [115]
-                0.00    0.00    2723/2723        get_allocator [1001]
-                0.00    0.00    2723/9298667     resource2item [546]
-                0.00    0.00    2938/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      19/15240       give_men [857]
-                0.00    0.00     119/15240       syntax_error [1036]
-                0.00    0.00   15102/15240       cmistake [718]
-[744]    0.0    0.00    0.00   15240         msg_error [744]
-                0.00    0.00    8935/41248       msg_feedback [647]
------------------------------------------------
-                0.00    0.00     552/18788       aftermath [701]
-                0.00    0.00    7058/18788       battle_report [503]
-                0.00    0.00   11178/18788       print_stats [525]
-[745]    0.0    0.00    0.00   18788         sideabkz [745]
-                0.00    0.00   18788/5100840     itoa36 [116]
-                0.00    0.00   18788/34611296     strlcpy [45]
------------------------------------------------
-                                                 <spontaneous>
-[746]    0.0    0.00    0.00                 tolua_unit_get_race [746]
-                0.00    0.00  420172/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00  417577/417577      study_cmd [105]
-[747]    0.0    0.00    0.00  417577         study_days [747]
-                0.00    0.00  417577/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00   36937/163027      cr_output_region [10]
-                0.00    0.00   62581/163027      report_plaintext [4]
-                0.00    0.00   63509/163027      statistics [70]
-[748]    0.0    0.00    0.00  163027         markets_module [748]
-                0.00    0.00  163027/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00     475/475         move_hunters [342]
-[749]    0.0    0.00    0.00     475         follow_ship [749]
-                0.00    0.00     191/103784      move_cmd [66]
-                0.00    0.00    1188/24887945     locale_string [27]
-                0.00    0.00    1612/17451017     strlcpy_w [67]
-                0.00    0.00     474/228907      getid [483]
-                0.00    0.00     160/15102       cmistake [718]
-                0.00    0.00    1284/1297        hunted_dir [1055]
-                0.00    0.00     191/66134       shipspeed [669]
-                0.00    0.00     191/16751       getuint [778]
-                0.00    0.00     191/54318       getstrtoken [710]
-                0.00    0.00     474/115276      can_move [736]
-                0.00    0.00     475/3358315     ship_owner [438]
-                0.00    0.00     191/1311302     init_tokens_str [544]
-                0.00    0.00     191/36653945     wrptr [178]
-                0.00    0.00     191/5461936     slprintf [548]
-                0.00    0.00     283/28818       findship [1483]
-                0.00    0.00     191/2009097     keyword [1355]
------------------------------------------------
-                0.00    0.00     240/116002      canfly [1031]
-                0.00    0.00     486/116002      canswim [682]
-                0.00    0.00  115276/116002      can_move [736]
-[750]    0.0    0.00    0.00  116002         get_movement [750]
-                0.00    0.00  116002/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00    5907/5907        msg_curse [664]
-[751]    0.0    0.00    0.00    5907         cinfo_simple [751]
-                0.00    0.00    5907/967784      msg_message [132]
-                0.00    0.00    5907/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00    3078/3078        create_item [617]
-[752]    0.0    0.00    0.00    3078         allocate_resource [752]
-                0.00    0.00   36821/6610983     is_guard [211]
-                0.00    0.00    2939/12320804     effskill <cycle 1> [100]
-                0.00    0.00      81/81          can_guard [908]
-                0.00    0.00    2938/5395063     i_get [130]
-                0.00    0.00    2938/2858912     get_effect [225]
-                0.00    0.00    1709/3123        limit_resource [943]
-                0.00    0.00    3078/51974272     a_find [65]
-                0.00    0.00     139/15102       cmistake [718]
-                0.00    0.00    2366/2032164     rt_find [597]
-                0.00    0.00    5877/56052475     get_resourcetype [194]
-                0.00    0.00    2943/8506411     besieged [547]
-                0.00    0.00    3078/9298667     resource2item [546]
-                0.00    0.00    1289/129167539     u_race [89]
-                0.00    0.00       1/41248       msg_feedback [647]
-                0.00    0.00       7/2977        change_effect [982]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00    2938/3003        roqf_factor [1329]
-                0.00    0.00    5920/26995       inside_building [1486]
-                0.00    0.00    5920/26164       building_is_active [1488]
-                0.00    0.00      23/30          limit_seeds [1691]
-                0.00    0.00       1/2           limit_mallornseeds [1775]
------------------------------------------------
-                0.00    0.00    2665/2665        read_newunitid [739]
-[753]    0.0    0.00    0.00    2665         findnewunit [753]
-                0.00    0.00  110903/285923      ualias [692]
------------------------------------------------
-                0.00    0.00  417554/417554      plan_monsters [52]
-[754]    0.0    0.00    0.00  417554         random_move_chance [754]
-                0.00    0.00  417554/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00     443/5358        change_maxspellpoints [911]
-                0.00    0.00    1334/5358        bufunit [17]
-                0.00    0.00    1711/5358        cr_output_unit [19]
-                0.00    0.00    1870/5358        regenerate_aura [346]
-[755]    0.0    0.00    0.00    5358         max_spellpoints [755]
-                0.00    0.00    5358/12320804     effskill <cycle 1> [100]
-                0.00    0.00    5358/5358        get_spchange [862]
-                0.00    0.00    5358/5395063     i_get [130]
-                0.00    0.00    5358/12246335     ct_find [114]
-                0.00    0.00    5358/10190660     get_curse [143]
-                0.00    0.00    5358/2032164     rt_find [597]
-                0.00    0.00    5358/129167539     u_race [89]
-                0.00    0.00    5358/651711      oldcursename [1381]
-                0.00    0.00    5358/432940      curse_geteffect [1395]
------------------------------------------------
-                0.00    0.00    2081/2081        report_computer [9]
-[756]    0.0    0.00    0.00    2081         cr_reportspell [756]
-                0.00    0.00    5284/4434556     translate [75]
-                0.00    0.00    3203/24887945     locale_string [27]
-                0.00    0.00    2081/86400       spell_name [646]
-                0.00    0.00    2081/4162        spell_info [841]
-                0.00    0.00    2081/32337529     hashstring [37]
-                0.00    0.00    2081/4133717     mkname [261]
-                0.00    0.00    3203/13259934     resourcename [233]
------------------------------------------------
-                0.00    0.00       1/1           read_game [62]
-[757]    0.0    0.00    0.00       1         resolve [757]
-                0.00    0.00    2607/11989       resolve_unit [703]
-                0.00    0.00   30872/30872       resolve_faction [820]
-                0.00    0.00     442/1202        resolve_familiar [846]
-                0.00    0.00     318/1078        resolve_mage [856]
-                0.00    0.00     326/1466        resolve_region_id [1575]
------------------------------------------------
-                0.00    0.00      37/365         combatspell_cmd [898]
-                0.00    0.00     103/365         reshow_other [823]
-                0.00    0.00     225/365         cast_cmd [760]
-[758]    0.0    0.00    0.00     365         unit_getspell [758]
-                0.00    0.00     255/255         select_spellbook [761]
-                0.00    0.00     365/597806      unit_get_spellbook [427]
-                0.00    0.00     255/302482      findtoken [501]
-                0.00    0.00     255/267         freetokens [1611]
------------------------------------------------
-                0.00    0.00     377/377         create_item [617]
-[759]    0.0    0.00    0.00     377         manufacture [759]
-                0.00    0.00     377/1239        build [691]
-                0.00    0.00     306/967784      msg_message [132]
-                0.00    0.00     377/12320804     effskill <cycle 1> [100]
-                0.00    0.00     377/12320804     skillmod <cycle 1> [214]
-                0.00    0.00     377/392959      add_message [434]
-                0.00    0.00      71/182         msg_materials_required [1005]
-                0.00    0.00     306/11241829     i_change [115]
-                0.00    0.00     377/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     222/222         magic [157]
-[760]    0.0    0.00    0.00     222         cast_cmd [760]
-                0.00    0.00     225/365         unit_getspell [758]
-                0.00    0.00     220/220         farcasting [842]
-                0.00    0.00     329/12320804     effskill <cycle 1> [100]
-                0.00    0.00     221/482         knowsspell [956]
-                0.00    0.00     395/2281756     gettoken [195]
-                0.00    0.00     220/303         create_castorder [1066]
-                0.00    0.00     108/57138       getint [699]
-                0.00    0.00     322/1787006     findparam [458]
-                0.00    0.00     222/1027665     init_order [613]
-                0.00    0.00      26/26          add_spellparameter [1173]
-                0.00    0.00     222/1629412     LongHunger [536]
-                0.00    0.00      24/24          is_moving_ship [1231]
-                0.00    0.00       5/459083      findregion [420]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00     227/18647447     getplane [596]
-                0.00    0.00       3/71815034     get_race [12]
-                0.00    0.00       1/15102       cmistake [718]
-                0.00    0.00       3/298951      distance [599]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       4/793         is_familiar [1092]
-                0.00    0.00       3/174968      get_familiar_mage [722]
-                0.00    0.00       4/129167539     u_race [89]
-                0.00    0.00      10/10          rel_to_abs [1728]
-                0.00    0.00       5/3587241     pnormalize [1350]
-                0.00    0.00       3/1291427     set_order [1365]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     255/255         unit_getspell [758]
-[761]    0.0    0.00    0.00     255         select_spellbook [761]
-                0.00    0.00    8557/86400       spell_name [646]
-                0.00    0.00    8557/8993        addtoken [811]
------------------------------------------------
-                0.00    0.00     232/232         write_game [83]
-[762]    0.0    0.00    0.00     232         writefaction [762]
-                0.00    0.00    5926/1205451     alliedfaction [162]
-                0.00    0.00     232/11719       locale_name [568]
-                0.00    0.00     232/232         write_groups [920]
-                0.00    0.00     232/1248014     listlen [190]
-                0.00    0.00     232/839970      write_attribs [301]
-                0.00    0.00     232/629123      write_items [511]
-                0.00    0.00     232/647569      write_faction_reference [1382]
-                0.00    0.00     232/232         write_password [1623]
-                0.00    0.00     232/2321        write_spellbook [1556]
------------------------------------------------
-                0.00    0.00     590/590         process [7]
-[763]    0.0    0.00    0.00     590         use_cmd [763]
-                0.00    0.00     590/590         use_item [765]
-                0.00    0.00     900/2281756     gettoken [195]
-                0.00    0.00     182/15102       cmistake [718]
-                0.00    0.00     590/1027665     init_order [613]
-                0.00    0.00     590/191379      finditemtype [735]
-                0.00    0.00     280/534930      isparam [668]
------------------------------------------------
-                0.00    0.00     752/752         monster_attacks [248]
-[764]    0.0    0.00    0.00     752         monster_attack [764]
-                0.00    0.00     752/1437425     cansee [22]
-                0.00    0.00     736/447808      create_order [341]
-                0.00    0.00     752/1121103     monster_is_waiting [407]
------------------------------------------------
-                0.00    0.00     590/590         use_cmd [763]
-[765]    0.0    0.00    0.00     590         use_item [765]
-                0.00    0.00     348/348         use_potion [801]
-                0.00    0.00     590/541982      get_pooled [104]
-                0.00    0.00      56/56          use_bloodpotion [935]
-                0.00    0.00       3/3           use_healingpotion [1119]
-                0.00    0.00       1/860263      use_pooled [39]
-                0.00    0.00       1/1           use_skillpotion [1233]
------------------------------------------------
-                0.00    0.00     111/111         produce [29]
-[766]    0.0    0.00    0.00     111         steal_cmd [766]
-                0.00    0.00      46/3016        dfindhash [307]
-                0.00    0.00      84/1437425     cansee [22]
-                0.00    0.00     110/145         findunitr [991]
-                0.00    0.00      65/65          max_skill [1037]
-                0.00    0.00     111/284005      read_unitid [413]
-                0.00    0.00      46/41248       msg_feedback [647]
-                0.00    0.00      59/760673      addlist [217]
-                0.00    0.00      30/967784      msg_message [132]
-                0.00    0.00      65/12320804     effskill <cycle 1> [100]
-                0.00    0.00      59/472418      produceexp [322]
-                0.00    0.00      76/392959      add_message [434]
-                0.00    0.00     118/5395063     i_get [130]
-                0.00    0.00     111/1027665     init_order [613]
-                0.00    0.00      15/71815034     get_race [12]
-                0.00    0.00      65/16669       IsImmune [901]
-                0.00    0.00     111/111         check_steal [1234]
-                0.00    0.00     222/21345834     skill_enabled [365]
-                0.00    0.00     111/56052475     get_resourcetype [194]
-                0.00    0.00      15/129167539     u_race [89]
-                0.00    0.00       4/3003        roqf_factor [1329]
-                0.00    0.00      76/1009028     msg_release [1373]
-                0.00    0.00      65/192         can_contact [1634]
------------------------------------------------
-                0.00    0.00     233/233         read_game [62]
-[767]    0.0    0.00    0.00     233         readfaction [767]
-                0.00    0.00     233/233         read_groups [782]
-                0.00    0.00    5925/5925        addally [913]
-                0.00    0.00     406/406         faction_setorigin [979]
-                0.00    0.00     233/628037      read_items [320]
-                0.00    0.00     233/5100840     itoa36 [116]
-                0.00    0.00     233/68430117     rc_find [15]
-                0.00    0.00     233/840577      read_attribs [388]
-                0.00    0.00     233/5588        get_locale [884]
-                0.00    0.00     233/4625636     findfaction [259]
-                0.00    0.00     233/457         FactionSpells [1136]
-                0.00    0.00     233/49235       log_debug [1245]
-                0.00    0.00     233/1613387     rule_region_owners [1323]
-                0.00    0.00     233/233         set_email [1620]
-                0.00    0.00     233/233         read_password [1619]
-                0.00    0.00     233/2324        read_spellbook [1555]
------------------------------------------------
-                0.00    0.00    3152/3152        scared_by_monster [380]
-[768]    0.0    0.00    0.00    3152         scareaway [768]
-                0.00    0.00   33436/7641081     genrand_int31 [171]
-                0.00    0.00    2656/369586      r_connect [474]
-                0.00    0.00    3152/264251      rsetpeasants [545]
-                0.00    0.00    6569/2605004     rpeasants [435]
------------------------------------------------
-                0.00    0.00    3246/7630        split_paragraph [828]
-                0.00    0.00    4384/7630        lparagraph [809]
-[769]    0.0    0.00    0.00    7630         addstrlist [769]
-                0.00    0.00    7630/760673      addlist [217]
------------------------------------------------
-                0.00    0.00    4020/4020        a_read_i [390]
-[770]    0.0    0.00    0.00    4020         curse_read [770]
-                0.00    0.00    4020/9763        read_reference [726]
-                0.00    0.00    4020/12246335     ct_find [114]
-                0.00    0.00    4020/4052        chash [1537]
-                0.00    0.00       4/4           read_skill [1759]
------------------------------------------------
-                0.00    0.00       2/2           json_disable_features [772]
-[771]    0.0    0.00    0.00       2         disable_feature [771]
-                0.00    0.00       1/30          config_set [444]
-                0.00    0.00       1/64          log_info [1339]
-                0.00    0.00       1/49235       log_debug [1245]
-                0.00    0.00       2/1041        findskill [1586]
-                0.00    0.00       2/65          findkeyword [1665]
-                0.00    0.00       1/1           enable_keyword [1801]
------------------------------------------------
-                0.00    0.00       1/1           json_config <cycle 2> [464]
-[772]    0.0    0.00    0.00       1         json_disable_features [772]
-                0.00    0.00       2/2           disable_feature [771]
------------------------------------------------
-                                                 <spontaneous>
-[773]    0.0    0.00    0.00                 tolua_settings_eressea_settings_set00 [773]
-                0.00    0.00       1/30          config_set [444]
------------------------------------------------
-                0.00    0.00       2/2457        sp_summonshadowlords [1034]
-                0.00    0.00       6/2457        tolua_unit_setskill [1163]
-                0.00    0.00      12/2457        forget_cmd [1093]
-                0.00    0.00      26/2457        demon_skillchange [826]
-                0.00    0.00      38/2457        sp_viewreality [784]
-                0.00    0.00      54/2457        skill_summoned [1032]
-                0.00    0.00     828/2457        spawn_undead [629]
-                0.00    0.00    1491/2457        equip_unit_mask [776]
-[774]    0.0    0.00    0.00    2457         set_level [774]
-                0.00    0.00    2445/47535       sk_set [510]
-                0.00    0.00    2419/1956810     add_skill [355]
-                0.00    0.00    2457/21345834     skill_enabled [365]
-                0.00    0.00      12/51060       remove_skill [1456]
------------------------------------------------
-                0.00    0.00       1/2375        oldfamiliars [1240]
-                0.00    0.00      10/2375        spawn_dragons [411]
-                0.00    0.00      17/2375        recruit_dracoids [837]
-                0.00    0.00      20/2375        spawn_seaserpent [831]
-                0.00    0.00      21/2375        spawn_undead [629]
-                0.00    0.00     639/2375        spawn_braineaters [505]
-                0.00    0.00    1667/2375        add_recruits [371]
-[775]    0.0    0.00    0.00    2375         equip_unit [775]
-                0.00    0.00    2375/2375        equip_unit_mask [776]
------------------------------------------------
-                                  24             equip_unit_mask [776]
-                0.00    0.00    2375/2375        equip_unit [775]
-[776]    0.0    0.00    0.00    2375+24      equip_unit_mask [776]
-                0.00    0.00    1491/2457        set_level [774]
-                0.00    0.00    1560/146997      dice_rand [409]
-                0.00    0.00      30/1381157     unit_max_hp [136]
-                0.00    0.00      38/752645      chance [495]
-                0.00    0.00      24/7641081     genrand_int31 [171]
-                0.00    0.00      60/822780      i_new [1375]
-                0.00    0.00      60/87004       i_add [1442]
-                                  24             equip_unit_mask [776]
------------------------------------------------
-                0.00    0.00     162/786         report_computer [9]
-                0.00    0.00     162/786         report_plaintext [4]
-                0.00    0.00     462/786         score [23]
-[777]    0.0    0.00    0.00     786         average_score_of_age [777]
-                0.00    0.00   18304/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00     191/16751       follow_ship [749]
-                0.00    0.00   16560/16751       entertain_cmd [665]
-[778]    0.0    0.00    0.00   16751         getuint [778]
-                0.00    0.00   16751/57138       getint [699]
------------------------------------------------
-                0.00    0.00       1/12265       report_spell [1301]
-                0.00    0.00       1/12265       caddmessage [1070]
-                0.00    0.00       2/12265       sp_viewreality [784]
-                0.00    0.00       4/12265       sp_generous [1040]
-                0.00    0.00       5/12265       sp_eternizewall [988]
-                0.00    0.00      12/12265       sp_enterastral [1045]
-                0.00    0.00      13/12265       sp_goodwinds [974]
-                0.00    0.00      30/12265       sp_song_of_peace [939]
-                0.00    0.00      76/12265       sp_stormwinds [871]
-                0.00    0.00     206/12265       report_action [860]
-                0.00    0.00     295/12265       maintain_buildings [339]
-                0.00    0.00   11620/12265       report_transfer [724]
-[779]    0.0    0.00    0.00   12265         r_addmessage [779]
-                0.00    0.00   12265/392959      add_message [434]
------------------------------------------------
-                0.00    0.00     138/138         process [7]
-[780]    0.0    0.00    0.00     138         renumber_cmd [780]
-                0.00    0.00      43/2818        newunitid [319]
-                0.00    0.00     250/2281756     gettoken [195]
-                0.00    0.00      38/221899      findunitg [279]
-                0.00    0.00      72/15102       cmistake [718]
-                0.00    0.00      26/593636      building_owner [232]
-                0.00    0.00      69/688711      atoi36 [440]
-                0.00    0.00      55/55          renumber_unit [1159]
-                0.00    0.00     138/6530        findparam_ex [926]
-                0.00    0.00     138/1027665     init_order [613]
-                0.00    0.00      31/3358315     ship_owner [438]
-                0.00    0.00      38/3002        forbiddenid [1280]
-                0.00    0.00      31/28818       findship [1483]
-                0.00    0.00      27/48455       findbuilding [1462]
-                0.00    0.00      10/12          bunhash [1720]
-                0.00    0.00      10/46196       bhash [1464]
-                0.00    0.00       1/7           sunhash [1744]
-                0.00    0.00       1/19085       shash [1502]
------------------------------------------------
-                0.00    0.00     120/120         demographics [50]
-[781]    0.0    0.00    0.00     120         plagues [781]
-                0.00    0.00   25985/1336242     rng_injectable_double [396]
-                0.00    0.00   12922/4666665     rmoney [452]
-                0.00    0.00    6459/2186159     rsetmoney [553]
-                0.00    0.00     120/967784      msg_message [132]
-                0.00    0.00     120/392959      add_message [434]
-                0.00    0.00     120/264251      rsetpeasants [545]
-                0.00    0.00     120/2605004     rpeasants [435]
-                0.00    0.00     120/37974       deathcounts [843]
-                0.00    0.00     120/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     233/233         readfaction [767]
-[782]    0.0    0.00    0.00     233         read_groups [782]
-                0.00    0.00   49522/4625636     findfaction [259]
-                0.00    0.00    1694/840577      read_attribs [388]
-                0.00    0.00   51216/51239       read_faction_reference [1455]
-                0.00    0.00   49522/55547       ally_add [1452]
-                0.00    0.00   27921/34565       ur_add [1472]
-                0.00    0.00    1694/1697        new_group [1565]
------------------------------------------------
-                0.00    0.00    8892/8892        astralregions [329]
-[783]    0.0    0.00    0.00    8892         r_astral_to_standard [783]
-                0.00    0.00    8892/459083      findregion [420]
-                0.00    0.00    8892/987488      is_astral [479]
-                0.00    0.00    8865/18647447     getplane [596]
-                0.00    0.00    8892/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.00       2/2           magic [157]
-[784]    0.0    0.00    0.00       2         sp_viewreality [784]
-                0.00    0.00      38/2889        create_unit [296]
-                0.00    0.00      38/2457        set_level [774]
-                0.00    0.00       2/8892        astralregions [329]
-                0.00    0.00      38/71815034     get_race [12]
-                0.00    0.00      34/12246335     ct_find [114]
-                0.00    0.00      34/10190660     get_curse [143]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00       2/12265       r_addmessage [779]
-                0.00    0.00      34/4201030     curse_active [543]
-                0.00    0.00       2/3           getplaneid [1337]
-                0.00    0.00      34/651711      oldcursename [1381]
-                0.00    0.00       2/608         co_get_region [1594]
-                0.00    0.00       2/109377      free_regionlist [1436]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     112/112         attack [84]
-[785]    0.0    0.00    0.00     112         attack_firesword [785]
-                0.00    0.00     580/80630       terminate [242]
-                0.00    0.00     580/372173      select_enemy [172]
-                0.00    0.00      18/1486        message_all [834]
-                0.00    0.00      18/967784      msg_message [132]
-                0.00    0.00     112/7641081     genrand_int31 [171]
-                0.00    0.00     112/876979      count_enemies [611]
-                0.00    0.00      18/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   39926/39926       sail [181]
-[786]    0.0    0.00    0.00   39926         check_leuchtturm [786]
-                0.00    0.00   35539/51974272     a_find [65]
-                0.00    0.00   24025/1106528     is_building_type [554]
-                0.00    0.00   23237/21345834     skill_enabled [365]
------------------------------------------------
-                0.00    0.00   27694/27694       dragon_affinity_value [516]
-[787]    0.0    0.00    0.00   27694         dice [787]
-                0.00    0.00   41004/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00   80630/80630       calculate_armor [645]
-[788]    0.0    0.00    0.00   80630         natural_armor [788]
-                0.00    0.00   80630/80630       armor_bonus [819]
-                0.00    0.00   80630/129167539     u_race [89]
------------------------------------------------
-                                3246             centre [789]
-                0.00    0.00     229/37931       list_address [635]
-                0.00    0.00     816/37931       rp_battles [618]
-                0.00    0.00    2081/37931       nr_spell [507]
-                0.00    0.00    3437/37931       report_plaintext [4]
-                0.00    0.00   31368/37931       rp_messages [36]
-[789]    0.0    0.00    0.00   37931+3246    centre [789]
-                0.00    0.00     946/946         sparagraph [827]
-                0.00    0.00   40231/7851812     write_spaces [303]
-                0.00    0.00     946/5330        freestrlist [1534]
-                                3246             centre [789]
------------------------------------------------
-                0.00    0.00       1/1           tolua_read_xml [792]
-[790]    0.0    0.00    0.00       1         init_data [790]
-                0.00    0.00       1/1           read_xml [791]
-                0.00    0.00       1/5           reset_locales [1751]
------------------------------------------------
-                0.00    0.00       1/1           init_data [790]
-[791]    0.0    0.00    0.00       1         read_xml [791]
-                0.00    0.00       1/1           parse_messages [832]
-                0.00    0.00       1/1           parse_strings [864]
-                0.00    0.00       1/1           parse_resources [1086]
-                0.00    0.00       1/1           parse_races [1104]
-                0.00    0.00       1/1           parse_spells [1120]
-                0.00    0.00       1/1           parse_buildings [1131]
-                0.00    0.00       1/1           parse_equipment [1170]
-                0.00    0.00       1/1           parse_calendar [1252]
-                0.00    0.00       1/1           parse_ships [1305]
-                0.00    0.00       1/1           parse_spellbooks [1827]
-                0.00    0.00       1/1           parse_rules [1826]
------------------------------------------------
-                                                 <spontaneous>
-[792]    0.0    0.00    0.00                 tolua_read_xml [792]
-                0.00    0.00       1/1           init_data [790]
------------------------------------------------
-                0.00    0.00  216069/216069      config_token [794]
-[793]    0.0    0.00    0.00  216069         check_param [793]
-                0.00    0.00  216069/26776263     get_param [235]
------------------------------------------------
-                0.00    0.00       1/216069      prepare_report [8]
-                0.00    0.00    6524/216069      maintain [478]
-                0.00    0.00  209544/216069      building_owner_ex [253]
-[794]    0.0    0.00    0.00  216069         config_token [794]
-                0.00    0.00  216069/216069      check_param [793]
------------------------------------------------
-                0.00    0.00   96637/96637       walkingcapacity [403]
-[795]    0.0    0.00    0.00   96637         personcapacity [795]
-                0.00    0.00  193274/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       2/54351       sp_summon_familiar [1025]
-                0.00    0.00   54349/54351       sm_familiar <cycle 1> [520]
-[796]    0.0    0.00    0.00   54351         get_familiar [796]
-                0.00    0.00   54351/51974272     a_find [65]
------------------------------------------------
-[797]    0.0    0.00    0.00    1557+26      <cycle 4 as a whole> [797]
-                0.00    0.00    1570             read_triggers <cycle 4> [798]
-                0.00    0.00      13             timeout_read <cycle 4> [1719]
------------------------------------------------
-                                  13             timeout_read <cycle 4> [1719]
-                0.00    0.00    1557/1557        read_handler [799]
-[798]    0.0    0.00    0.00    1570         read_triggers <cycle 4> [798]
-                0.00    0.00    2299/2299        killunit_read [817]
-                0.00    0.00     768/768         shock_read [892]
-                0.00    0.00      10/10          changefaction_read [1166]
-                0.00    0.00       3/3           changerace_read [1215]
-                0.00    0.00       1/1           giveitem_read [1262]
-                0.00    0.00       1/1           caldera_read [1270]
-                0.00    0.00       1/1           clonedied_read [1271]
-                0.00    0.00    3096/3096        tt_find [1548]
-                0.00    0.00    3096/3113        t_new [1546]
-                                  13             timeout_read <cycle 4> [1719]
------------------------------------------------
-                0.00    0.00    1557/1557        a_read_i [390]
-[799]    0.0    0.00    0.00    1557         read_handler [799]
-                0.00    0.00    1557/1557        read_triggers <cycle 4> [798]
------------------------------------------------
-                0.00    0.00       1/45          sp_holyground [1068]
-                0.00    0.00       1/45          sp_generous [1040]
-                0.00    0.00       1/45          shipcurse_flyingship [1072]
-                0.00    0.00       2/45          sp_charmingsong [993]
-                0.00    0.00       3/45          sp_song_of_peace [939]
-                0.00    0.00       3/45          sp_eternizewall [988]
-                0.00    0.00       4/45          sp_goodwinds [974]
-                0.00    0.00      13/45          sp_blessedharvest [847]
-                0.00    0.00      17/45          sp_stormwinds [871]
-[800]    0.0    0.00    0.00      45         create_curse [800]
-                0.00    0.00      32/32          make_curse [802]
-                0.00    0.00      45/10190660     get_curse [143]
-                0.00    0.00      13/13          set_curseingmagician [1265]
------------------------------------------------
-                0.00    0.00     348/348         use_item [765]
-[801]    0.0    0.00    0.00     348         use_potion [801]
-                0.00    0.00     345/345         end_potion [814]
-                0.00    0.00     345/345         do_potion [941]
-                0.00    0.00     348/348         begin_potion [1096]
-                0.00    0.00     348/1582        resource2potion [1569]
------------------------------------------------
-                0.00    0.00      32/32          create_curse [800]
-[802]    0.0    0.00    0.00      32         make_curse [802]
-                0.00    0.00      32/2818        newunitid [319]
-                0.00    0.00      32/779419      a_add [555]
-                0.00    0.00      32/779868      a_new [1376]
-                0.00    0.00      32/4052        chash [1537]
------------------------------------------------
-                0.00    0.00       6/2931        make_undead_unit [1188]
-                0.00    0.00      10/2931        spawn_dragons [411]
-                0.00    0.00      17/2931        recruit_dracoids [837]
-                0.00    0.00      92/2931        spawn_undead [629]
-                0.00    0.00    2806/2931        create_unit [296]
-[803]    0.0    0.00    0.00    2931         name_unit [803]
-                0.00    0.00    2008/2008        default_name [851]
-                0.00    0.00     923/1351796     racename [133]
-                0.00    0.00     923/923         race_namegen [905]
-                0.00    0.00    4777/129167539     u_race [89]
-                0.00    0.00    2931/3862        unit_setname [1540]
------------------------------------------------
-                0.00    0.00   11540/11540       monster_kills_peasants [230]
-[804]    0.0    0.00    0.00   11540         absorbed_by_monster [804]
-                0.00    0.00   11540/7641081     genrand_int31 [171]
-                0.00    0.00     681/967784      msg_message [132]
-                0.00    0.00    2200/201744      lovar [644]
-                0.00    0.00     681/392959      add_message [434]
-                0.00    0.00    3455/2605004     rpeasants [435]
-                0.00    0.00     681/264251      rsetpeasants [545]
-                0.00    0.00     681/3178        scale_number [969]
-                0.00    0.00     681/129167539     u_race [89]
-                0.00    0.00     681/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       2/273         do_combatspell [702]
-                0.00    0.00       5/273         do_combatmagic [825]
-                0.00    0.00      74/273         cast_combatspell [623]
-                0.00    0.00     192/273         magic [157]
-[805]    0.0    0.00    0.00     273         pay_spell [805]
-                0.00    0.00     470/860263      use_pooled [39]
-                0.00    0.00     269/767         spellcost [995]
-                0.00    0.00     273/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00   66058/66058       shipspeed [669]
-[806]    0.0    0.00    0.00   66058         ShipSpeedBonus [806]
-                0.00    0.00   66058/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      41/41          produce [29]
-[807]    0.0    0.00    0.00      41         expandstealing [807]
-                0.00    0.00      41/10852       expandorders [197]
-                0.00    0.00      38/860263      use_pooled [39]
-                0.00    0.00      59/541982      get_pooled [104]
-                0.00    0.00      59/34409       add_income [625]
-                0.00    0.00      59/221899      findunitg [279]
-                0.00    0.00      38/967784      msg_message [132]
-                0.00    0.00      38/392959      add_message [434]
-                0.00    0.00      38/2599554     change_money [337]
-                0.00    0.00      41/56052475     get_resourcetype [194]
-                0.00    0.00      40/18647447     getplane [596]
-                0.00    0.00      38/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      88/88          get_food [88]
-[808]    0.0    0.00    0.00      88         hunger [808]
-                0.00    0.00    2491/146997      dice_rand [409]
-                0.00    0.00      88/967784      msg_message [132]
-                0.00    0.00      88/392959      add_message [434]
-                0.00    0.00      88/88          hunger_damage [1223]
-                0.00    0.00      27/3178        scale_number [969]
-                0.00    0.00      88/129167539     u_race [89]
-                0.00    0.00      27/37974       deathcounts [843]
-                0.00    0.00      88/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    4384/4384        spunit [632]
-[809]    0.0    0.00    0.00    4384         lparagraph [809]
-                0.00    0.00    4384/7630        addstrlist [769]
------------------------------------------------
-                0.00    0.00     319/319         aftermath [701]
-[810]    0.0    0.00    0.00     319         loot_items [810]
-                0.00    0.00    1100/372173      select_enemy [172]
-                0.00    0.00    2204/7641081     genrand_int31 [171]
-                0.00    0.00    1091/1091        loot_quota [1013]
-                0.00    0.00    1091/11241829     i_change [115]
-                0.00    0.00     983/3902878     get_monsters [293]
-                0.00    0.00      38/38          select_ally [1132]
-                0.00    0.00     319/2913        dead_fighters [1549]
------------------------------------------------
-                              178365             addtoken [811]
-                0.00    0.00       2/8993        register_special_direction [1259]
-                0.00    0.00      14/8993        findshiptype [869]
-                0.00    0.00      22/8993        init_options_translation [1157]
-                0.00    0.00      26/8993        init_directions [1143]
-                0.00    0.00      36/8993        init_terrains_translation [1129]
-                0.00    0.00      54/8993        findbuildingtype [866]
-                0.00    0.00     282/8993        init_locale [948]
-                0.00    0.00    8557/8993        select_spellbook [761]
-[811]    0.0    0.00    0.00    8993+178365  addtoken [811]
-                0.00    0.00  176717/46391457     unicode_utf8_to_ucs4 [177]
-                0.00    0.00  141675/141675      mknode [1429]
-                              178365             addtoken [811]
------------------------------------------------
-                0.00    0.00    2274/2274        msg_curse [664]
-[812]    0.0    0.00    0.00    2274         cinfo_ship [812]
-                0.00    0.00    2274/967784      msg_message [132]
-                0.00    0.00    2252/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00     312/312         make_cmd [383]
-[813]    0.0    0.00    0.00     312         continue_ship [813]
-                0.00    0.00     113/115         build_ship [839]
-                0.00    0.00     120/122         maxbuild [946]
-                0.00    0.00     432/12320804     effskill <cycle 1> [100]
-                0.00    0.00     306/307         getship [1018]
-                0.00    0.00     199/15102       cmistake [718]
------------------------------------------------
-                0.00    0.00     345/345         use_potion [801]
-[814]    0.0    0.00    0.00     345         end_potion [814]
-                0.00    0.00     345/860263      use_pooled [39]
-                0.00    0.00     345/967784      msg_message [132]
-                0.00    0.00     345/392959      add_message [434]
-                0.00    0.00     345/404         usetpotionuse [1078]
-                0.00    0.00     345/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       6/337987      update_guards [415]
-                0.00    0.00      76/337987      guard_off_cmd [711]
-                0.00    0.00     319/337987      aftermath [701]
-                0.00    0.00   14191/337987      flee [638]
-                0.00    0.00   23781/337987      guard [865]
-                0.00    0.00  106892/337987      move_unit [421]
-                0.00    0.00  192722/337987      travel_route [147]
-[815]    0.0    0.00    0.00  337987         setguard [815]
-                0.00    0.00   23509/51974272     a_find [65]
-                0.00    0.00   23781/377253      guard_flags [690]
------------------------------------------------
-                0.00    0.00      36/36          produce [29]
-[816]    0.0    0.00    0.00      36         expandloot [816]
-                0.00    0.00      36/10852       expandorders [197]
-                0.00    0.00    4800/2599554     change_money [337]
-                0.00    0.00      42/34409       add_income [625]
-                0.00    0.00      36/7641081     genrand_int31 [171]
-                0.00    0.00      36/2186159     rsetmoney [553]
-                0.00    0.00      36/4666665     rmoney [452]
-                0.00    0.00       5/65345       region_get_morale [1444]
------------------------------------------------
-                0.00    0.00    2299/2299        read_triggers <cycle 4> [798]
-[817]    0.0    0.00    0.00    2299         killunit_read [817]
-                0.00    0.00    2299/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00     241/241         process [7]
-[818]    0.0    0.00    0.00     241         reshow_cmd [818]
-                0.00    0.00     241/241         reshow [822]
-                0.00    0.00     241/2281756     gettoken [195]
-                0.00    0.00     138/69432       getparam [681]
-                0.00    0.00     241/1027665     init_order [613]
-                0.00    0.00     241/534930      isparam [668]
------------------------------------------------
-                0.00    0.00   80630/80630       natural_armor [788]
-[819]    0.0    0.00    0.00   80630         armor_bonus [819]
-                0.00    0.00   80630/5065285     get_param_int [422]
------------------------------------------------
-                0.00    0.00   30872/30872       resolve [757]
-[820]    0.0    0.00    0.00   30872         resolve_faction [820]
-                0.00    0.00   30872/4625636     findfaction [259]
------------------------------------------------
-                0.00    0.00     149/149         create_item [617]
-[821]    0.0    0.00    0.00     149         create_potion [821]
-                0.00    0.00     149/1239        build [691]
-                0.00    0.00     129/967784      msg_message [132]
-                0.00    0.00     149/392959      add_message [434]
-                0.00    0.00      20/182         msg_materials_required [1005]
-                0.00    0.00     129/11241829     i_change [115]
-                0.00    0.00     149/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     241/241         reshow_cmd [818]
-[822]    0.0    0.00    0.00     241         reshow [822]
-                0.00    0.00     104/104         reshow_other [823]
-                0.00    0.00     327/328         display_potion [1090]
-                0.00    0.00      22/12320804     effskill <cycle 1> [100]
-                0.00    0.00     115/178429      a_removeall [958]
------------------------------------------------
-                0.00    0.00     104/104         reshow [822]
-[823]    0.0    0.00    0.00     104         reshow_other [823]
-                0.00    0.00     103/365         unit_getspell [758]
-                0.00    0.00      47/47          display_race [963]
-                0.00    0.00      39/39          display_item [1054]
-                0.00    0.00     103/338         findrace [1030]
-                0.00    0.00      59/5395063     i_get [130]
-                0.00    0.00      16/15102       cmistake [718]
-                0.00    0.00     103/191379      finditemtype [735]
-                0.00    0.00      19/283711      item2resource [561]
-                0.00    0.00      48/129167539     u_race [89]
-                0.00    0.00       1/451774      a_remove [366]
-                0.00    0.00       1/328         display_potion [1090]
-                0.00    0.00       1/51974272     a_find [65]
-                0.00    0.00      19/1582        resource2potion [1569]
------------------------------------------------
-                0.00    0.00    1911/1911        msg_curse [664]
-[824]    0.0    0.00    0.00    1911         cinfo_magicresistance [824]
-                0.00    0.00    1911/967784      msg_message [132]
-                0.00    0.00    1911/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00     206/412         aftermath [701]
-                0.00    0.00     206/412         do_battle [64]
-[825]    0.0    0.00    0.00     412         do_combatmagic [825]
-                0.00    0.00    2273/12320804     effskill <cycle 1> [100]
-                0.00    0.00       2/2           sp_igjarjuk [923]
-                0.00    0.00       7/7           sp_healing [989]
-                0.00    0.00       8/251         cancast [833]
-                0.00    0.00       5/273         pay_spell [805]
-                0.00    0.00       8/251         eff_spelllevel [845]
-                0.00    0.00      51/1339        get_combatspelllevel [880]
-                0.00    0.00      51/4875        get_combatspell [874]
-                0.00    0.00       8/226         fumble [973]
-                0.00    0.00       8/225         spellpower [1000]
-                0.00    0.00       8/447808      create_order [341]
-                0.00    0.00       8/86400       spell_name [646]
-                0.00    0.00       1/3           report_failed_spell [1187]
-                0.00    0.00       9/83          create_castorder_combat [1137]
-                0.00    0.00    3708/3717        free_castorders [1541]
-                0.00    0.00      16/11052       find_spell [1513]
-                0.00    0.00       9/229         add_castorder [1626]
-                0.00    0.00       8/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00    2148/2148        demon_skillchanges [246]
-[826]    0.0    0.00    0.00    2148         demon_skillchange [826]
-                0.00    0.00   18444/7641081     genrand_int31 [171]
-                0.00    0.00    2190/892307      learn_skill [471]
-                0.00    0.00      26/2457        set_level [774]
-                0.00    0.00    1508/1583        reduce_skill [1091]
-                0.00    0.00      12/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00     946/946         centre [789]
-[827]    0.0    0.00    0.00     946         sparagraph [827]
-                0.00    0.00     946/946         split_paragraph [828]
------------------------------------------------
-                0.00    0.00     946/946         sparagraph [827]
-[828]    0.0    0.00    0.00     946         split_paragraph [828]
-                0.00    0.00    3246/7630        addstrlist [769]
------------------------------------------------
-                0.00    0.00   47562/47562       skill_weeks [509]
-[829]    0.0    0.00    0.00   47562         rule_random_progress [829]
-                0.00    0.00   47562/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00   72692/72692       terminate [242]
-[830]    0.0    0.00    0.00   72692         rc_specialdamage [830]
-                0.00    0.00  117616/129167539     u_race [89]
-                0.00    0.00     410/12560453     rc_changed [256]
-                0.00    0.00       1/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00      20/20          spawn_dragons [411]
-[831]    0.0    0.00    0.00      20         spawn_seaserpent [831]
-                0.00    0.00      20/2889        create_unit [296]
-                0.00    0.00      20/2375        equip_unit [775]
-                0.00    0.00      20/71815034     get_race [12]
-                0.00    0.00      20/2742        get_equipment [1551]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[832]    0.0    0.00    0.00       1         parse_messages [832]
-                0.00    0.00    1909/1909        nrt_register [883]
-                0.00    0.00     957/1010116     mt_find [227]
-                0.00    0.00    1910/5354        xml_readtext [887]
-                0.00    0.00     957/957         mt_register [1007]
-                0.00    0.00     957/957         crt_register [1006]
-                0.00    0.00    1909/8788        xml_cleanup_string [1520]
-                0.00    0.00     957/957         mt_new [1588]
------------------------------------------------
-                0.00    0.00       8/251         do_combatmagic [825]
-                0.00    0.00      23/251         do_combatspell [702]
-                0.00    0.00     220/251         magic [157]
-[833]    0.0    0.00    0.00     251         cancast [833]
-                0.00    0.00     503/541982      get_pooled [104]
-                0.00    0.00     251/482         knowsspell [956]
-                0.00    0.00     251/12320804     effskill <cycle 1> [100]
-                0.00    0.00     249/767         spellcost [995]
-                0.00    0.00      24/41248       msg_feedback [647]
-                0.00    0.00      24/392959      add_message [434]
-                0.00    0.00     251/56052475     get_resourcetype [194]
-                0.00    0.00      24/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       2/1486        summon_allies [925]
-                0.00    0.00       3/1486        report_failed_spell [1187]
-                0.00    0.00       7/1486        sp_healing [989]
-                0.00    0.00      18/1486        do_attack [80]
-                0.00    0.00      18/1486        attack_firesword [785]
-                0.00    0.00      21/1486        sp_kampfzauber [957]
-                0.00    0.00      53/1486        sp_dragonodem [627]
-                0.00    0.00     355/1486        print_stats [525]
-                0.00    0.00     395/1486        reportcasualties [881]
-                0.00    0.00     614/1486        print_fighters [616]
-[834]    0.0    0.00    0.00    1486         message_all [834]
-                0.00    0.00    5553/31214       message_faction [716]
------------------------------------------------
-                0.00    0.00    3117/3117        process [7]
-[835]    0.0    0.00    0.00    3117         name_cmd [835]
-                0.00    0.00    3117/2281756     gettoken [195]
-                0.00    0.00    3114/54318       getstrtoken [710]
-                0.00    0.00    3117/6530        findparam_ex [926]
-                0.00    0.00    3117/1027665     init_order [613]
-                0.00    0.00       5/593636      building_owner [232]
-                0.00    0.00       4/4           try_rename [1225]
-                0.00    0.00       2/15102       cmistake [718]
-                0.00    0.00      10/3358315     ship_owner [438]
-                0.00    0.00       5/490901      largestbuilding [651]
-                0.00    0.00       5/5           get_cmp_region_owner [1347]
-                0.00    0.00    3114/3114        rename_cmd [1545]
------------------------------------------------
-                0.00    0.00       6/41882       give_men [857]
-                0.00    0.00   41876/41882       give_item [126]
-[836]    0.0    0.00    0.00   41882         GiveRestriction [836]
-                0.00    0.00   41882/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      17/17          plan_dragon [273]
-[837]    0.0    0.00    0.00      17         recruit_dracoids [837]
-                0.00    0.00      17/2889        create_unit [296]
-                0.00    0.00      17/2375        equip_unit [775]
-                0.00    0.00      17/2931        name_unit [803]
-                0.00    0.00      17/760673      addlist [217]
-                0.00    0.00      17/447808      create_order [341]
-                0.00    0.00      17/2934859     skillname [122]
-                0.00    0.00      17/71815034     get_race [12]
-                0.00    0.00      17/2599554     change_money [337]
-                0.00    0.00      23/599650      setstatus [1390]
-                0.00    0.00      17/2742        get_equipment [1551]
------------------------------------------------
-                0.00    0.00     206/206         do_battle [64]
-[838]    0.0    0.00    0.00     206         print_header [838]
-                0.00    0.00     679/967784      msg_message [132]
-                0.00    0.00    1029/3111        sidename [867]
-                0.00    0.00    1799/17451017     strlcpy_w [67]
-                0.00    0.00     679/31214       message_faction [716]
-                0.00    0.00     210/24887945     locale_string [27]
-                0.00    0.00    2703/2854        is_attacker [1550]
-                0.00    0.00    1084/24449       seematrix [1491]
-                0.00    0.00     679/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       2/115         create_ship [1014]
-                0.00    0.00     113/115         continue_ship [813]
-[839]    0.0    0.00    0.00     115         build_ship [839]
-                0.00    0.00     115/1239        build [691]
-                0.00    0.00     115/967784      msg_message [132]
-                0.00    0.00     115/392959      add_message [434]
-                0.00    0.00     115/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   12407/12407       cr_render [196]
-[840]    0.0    0.00    0.00   12407         cr_regions [840]
-                0.00    0.00    7499/1826688     adjust_coordinates [234]
-                0.00    0.00    9641/18647447     getplane [596]
-                0.00    0.00    7499/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.00    2081/4162        cr_reportspell [756]
-                0.00    0.00    2081/4162        nr_spell [507]
-[841]    0.0    0.00    0.00    4162         spell_info [841]
-                0.00    0.00    4162/24887945     locale_string [27]
-                0.00    0.00    4162/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00     220/220         cast_cmd [760]
-[842]    0.0    0.00    0.00     220         farcasting [842]
-                0.00    0.00       3/252         path_exists [431]
-                0.00    0.00     220/514146      koor_distance [476]
------------------------------------------------
-                0.00    0.00      27/37974       hunger [808]
-                0.00    0.00      34/37974       battle_effects [1125]
-                0.00    0.00     120/37974       plagues [781]
-                0.00    0.00     567/37974       eaten_by_monster [468]
-                0.00    0.00   37226/37974       spawn_undead [629]
-[843]    0.0    0.00    0.00   37974         deathcounts [843]
-                0.00    0.00    5948/12246335     ct_find [114]
-                0.00    0.00    5948/10190660     get_curse [143]
-                0.00    0.00    5941/51974272     a_find [65]
-                0.00    0.00    5948/4201030     curse_active [543]
-                0.00    0.00      40/451774      a_remove [366]
-                0.00    0.00      35/779419      a_add [555]
-                0.00    0.00      35/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     348/348         process [7]
-[844]    0.0    0.00    0.00     348         mail_cmd [844]
-                0.00    0.00      35/35          mailunit [921]
-                0.00    0.00     325/967784      msg_message [132]
-                0.00    0.00      38/1437425     cansee [22]
-                0.00    0.00     620/54318       getstrtoken [710]
-                0.00    0.00     328/392959      add_message [434]
-                0.00    0.00     348/2281756     gettoken [195]
-                0.00    0.00     623/6530        findparam_ex [926]
-                0.00    0.00       4/4           mailfaction [1106]
-                0.00    0.00       4/4           seefaction [1117]
-                0.00    0.00     348/1027665     init_order [613]
-                0.00    0.00      22/228907      getid [483]
-                0.00    0.00       3/41248       msg_feedback [647]
-                0.00    0.00      15/51974272     a_find [65]
-                0.00    0.00       1/307         getship [1018]
-                0.00    0.00     328/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       8/251         do_combatmagic [825]
-                0.00    0.00      23/251         do_combatspell [702]
-                0.00    0.00     220/251         magic [157]
-[845]    0.0    0.00    0.00     251         eff_spelllevel [845]
-                0.00    0.00     489/541982      get_pooled [104]
-                0.00    0.00     249/767         spellcost [995]
-                0.00    0.00      99/597806      unit_get_spellbook [427]
-                0.00    0.00     251/56052475     get_resourcetype [194]
-                0.00    0.00      99/2112        spellbook_get [1557]
------------------------------------------------
-                0.00    0.00     442/1202        resolve [757]
-                0.00    0.00     760/1202        read_reference [726]
-[846]    0.0    0.00    0.00    1202         resolve_familiar [846]
-                0.00    0.00    1202/11989       resolve_unit [703]
-                0.00    0.00     442/760         set_familiar [992]
-                0.00    0.00     760/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      13/13          magic [157]
-[847]    0.0    0.00    0.00      13         sp_blessedharvest [847]
-                0.00    0.00      13/45          create_curse [800]
-                0.00    0.00      13/28          report_effect [861]
-                0.00    0.00      26/967784      msg_message [132]
-                0.00    0.00      13/12246335     ct_find [114]
-                0.00    0.00      26/1009028     msg_release [1373]
-                0.00    0.00      13/608         co_get_region [1594]
------------------------------------------------
-                0.00    0.00    3597/3597        chaos_update [514]
-[848]    0.0    0.00    0.00    3597         chaos [848]
-                0.00    0.00       5/2889        create_unit [296]
-                0.00    0.00      96/105         terraform_region [932]
-                0.00    0.00    3890/7641081     genrand_int31 [171]
-                0.00    0.00       3/1794        remove_unit [499]
-                0.00    0.00      51/967784      msg_message [132]
-                0.00    0.00      51/392959      add_message [434]
-                0.00    0.00     125/125         random_unit [1174]
-                0.00    0.00      15/369586      r_connect [474]
-                0.00    0.00      48/48          chaosterrain [1213]
-                0.00    0.00      10/71815034     get_race [12]
-                0.00    0.00       5/242         canfly [1031]
-                0.00    0.00       5/3902878     get_monsters [293]
-                0.00    0.00       9/129167539     u_race [89]
-                0.00    0.00       5/5           set_money [1326]
-                0.00    0.00      51/1009028     msg_release [1373]
-                0.00    0.00      48/1511812     newterrain [1359]
------------------------------------------------
-                0.00    0.00   22843/22843       teach_cmd [272]
-[849]    0.0    0.00    0.00   22843         parser_end [849]
-                0.00    0.00   22778/5329742     eatwhitespace_c [255]
------------------------------------------------
-                0.00    0.00    5596/5596        attack [84]
-[850]    0.0    0.00    0.00    5596         drain_exp [850]
-                0.00    0.00   11021/7641081     genrand_int31 [171]
-                0.00    0.00   45149/45891       get_level [934]
-                0.00    0.00      75/1583        reduce_skill [1091]
-                0.00    0.00    5425/595705      unit_skill [1391]
------------------------------------------------
-                0.00    0.00    2008/2008        name_unit [803]
-[851]    0.0    0.00    0.00    2008         default_name [851]
-                0.00    0.00    2008/24887945     locale_string [27]
-                0.00    0.00    2008/5100840     itoa36 [116]
-                0.00    0.00    2008/34611296     strlcpy [45]
-                0.00    0.00    4016/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.00    5049/5049        piracy_cmd [660]
-[852]    0.0    0.00    0.00    5049         parse_ids [852]
-                0.00    0.00    5053/54318       getstrtoken [710]
-                0.00    0.00    5049/1027665     init_order [613]
-                0.00    0.00       4/688711      atoi36 [440]
-                0.00    0.00       4/4           intlist_init [1757]
-                0.00    0.00       4/4           intlist_add [1756]
------------------------------------------------
-                0.00    0.00     232/232         reports [2]
-[853]    0.0    0.00    0.00     232         write_script [853]
-                0.00    0.00     232/11719       locale_name [568]
-                0.00    0.00     232/5100840     itoa36 [116]
-                0.00    0.00     886/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.00      36/4361        piracy_cmd [660]
-                0.00    0.00    4325/4361        sail [181]
-[854]    0.0    0.00    0.00    4361         can_takeoff [854]
-                0.00    0.00    4337/263302      reldirection [528]
-                0.00    0.00     322/560926      bt_find [237]
-                0.00    0.00     322/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.00    0.00   32679/32679       produce [29]
-[855]    0.0    0.00    0.00   32679         rule_auto_taxation [855]
-                0.00    0.00   32679/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00     318/1078        resolve [757]
-                0.00    0.00     760/1078        read_reference [726]
-[856]    0.0    0.00    0.00    1078         resolve_mage [856]
-                0.00    0.00    1078/11989       resolve_unit [703]
-                0.00    0.00     318/760         set_familiar [992]
-                0.00    0.00     760/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00     588/588         give_cmd [102]
-[857]    0.0    0.00    0.00     588         give_men [857]
-                0.00    0.00    1758/2624955     has_skill [193]
-                0.00    0.00     588/659         can_give_men [940]
-                0.00    0.00     567/1936        transfermen [899]
-                0.00    0.00    1529/2275967     get_racename [368]
-                0.00    0.00     488/12246335     ct_find [114]
-                0.00    0.00     488/10190660     get_curse [143]
-                0.00    0.00     567/1474687     leftship [500]
-                0.00    0.00     588/8898        ucontact [927]
-                0.00    0.00     588/702         max_transfers [1109]
-                0.00    0.00     359/2421        set_racename [1015]
-                0.00    0.00     783/129167539     u_race [89]
-                0.00    0.00      19/15240       msg_error [744]
-                0.00    0.00     488/4201030     curse_active [543]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       2/41248       msg_feedback [647]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00       5/234         set_leftship [1134]
-                0.00    0.00       1/5100840     itoa36 [116]
-                0.00    0.00       6/41882       GiveRestriction [836]
-                0.00    0.00       4/118         rule_transfermen [1204]
-                0.00    0.00       1/49235       log_debug [1245]
-                0.00    0.00     588/1361        unit_has_cursed_item [1577]
-                0.00    0.00     488/651711      oldcursename [1381]
-                0.00    0.00     359/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00   93119/93119       give_item [126]
-[858]    0.0    0.00    0.00   93119         give_quota [858]
-                0.00    0.00   93119/93119       limited_give [879]
-                0.00    0.00   23838/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00    2013/2013        process [7]
-[859]    0.0    0.00    0.00    2013         display_cmd [859]
-                0.00    0.00    2013/2281756     gettoken [195]
-                0.00    0.00    2012/54318       getstrtoken [710]
-                0.00    0.00    2013/6530        findparam_ex [926]
-                0.00    0.00    2013/1027665     init_order [613]
-                0.00    0.00    1573/1573        usetprivate [1041]
-                0.00    0.00       1/15102       cmistake [718]
-                0.00    0.00       1/593636      building_owner [232]
-                0.00    0.00      17/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.00      38/38          report_effect [861]
-[860]    0.0    0.00    0.00      38         report_action [860]
-                0.00    0.00     197/1437425     cansee [22]
-                0.00    0.00     206/12265       r_addmessage [779]
-                0.00    0.00       1/392959      add_message [434]
------------------------------------------------
-                0.00    0.00       6/28          sp_mallornhain [968]
-                0.00    0.00       9/28          sp_hain [931]
-                0.00    0.00      13/28          sp_blessedharvest [847]
-[861]    0.0    0.00    0.00      28         report_effect [861]
-                0.00    0.00      38/38          report_action [860]
------------------------------------------------
-                0.00    0.00    5358/5358        max_spellpoints [755]
-[862]    0.0    0.00    0.00    5358         get_spchange [862]
-                0.00    0.00    5358/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00       2/2           parse_strings [864]
-[863]    0.0    0.00    0.00       2         xml_readstrings [863]
-                0.00    0.00    3444/5354        xml_readtext [887]
-                0.00    0.00    3435/3496        locale_setstring [918]
-                0.00    0.00    2342/4136059     mkname_buf [316]
-                0.00    0.00    6879/8788        xml_cleanup_string [1520]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[864]    0.0    0.00    0.00       1         parse_strings [864]
-                0.00    0.00       2/2           xml_readstrings [863]
------------------------------------------------
-                0.00    0.00   23781/23781       guard_on_cmd [656]
-[865]    0.0    0.00    0.00   23781         guard [865]
-                0.00    0.00   23781/377253      guard_flags [690]
-                0.00    0.00   23781/337987      setguard [815]
------------------------------------------------
-                0.00    0.00       2/4261        findparam_ex [926]
-                0.00    0.00    4259/4261        make_cmd [383]
-[866]    0.0    0.00    0.00    4261         findbuildingtype [866]
-                0.00    0.00    4261/302482      findtoken [501]
-                0.00    0.00      54/24887945     locale_string [27]
-                0.00    0.00      54/8993        addtoken [811]
------------------------------------------------
-                0.00    0.00    1029/3111        print_header [838]
-                0.00    0.00    2082/3111        print_stats [525]
-[867]    0.0    0.00    0.00    3111         sidename [867]
-                0.00    0.00    3111/1295787     factionname [247]
-                0.00    0.00    3111/34611296     strlcpy [45]
------------------------------------------------
-                0.00    0.00       4/4           study_cmd [105]
-[868]    0.0    0.00    0.00       4         count_skill [868]
-                0.00    0.00    5253/2624955     has_skill [193]
-                0.00    0.00       5/793         is_familiar [1092]
------------------------------------------------
-                0.00    0.00    4259/4259        make_cmd [383]
-[869]    0.0    0.00    0.00    4259         findshiptype [869]
-                0.00    0.00    4259/302482      findtoken [501]
-                0.00    0.00      14/24887945     locale_string [27]
-                0.00    0.00      14/8993        addtoken [811]
------------------------------------------------
-                0.00    0.00    1138/1138        a_read_i [390]
-[870]    0.0    0.00    0.00    1138         read_targetregion [870]
-                0.00    0.00    1138/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00       9/9           magic [157]
-[871]    0.0    0.00    0.00       9         sp_stormwinds [871]
-                0.00    0.00      17/45          create_curse [800]
-                0.00    0.00      76/12265       r_addmessage [779]
-                0.00    0.00       9/967784      msg_message [132]
-                0.00    0.00      27/12246335     ct_find [114]
-                0.00    0.00      10/10190660     get_curse [143]
-                0.00    0.00      10/4201030     curse_active [543]
-                0.00    0.00      10/651711      oldcursename [1381]
-                0.00    0.00       9/608         co_get_region [1594]
-                0.00    0.00       9/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    1334/4915        bufunit [17]
-                0.00    0.00    1711/4915        cr_output_unit [19]
-                0.00    0.00    1870/4915        regenerate_aura [346]
-[872]    0.0    0.00    0.00    4915         get_spellpoints [872]
-                0.00    0.00    4915/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00      42/42          produce [29]
-[873]    0.0    0.00    0.00      42         loot_cmd [873]
-                0.00    0.00      84/133         income [885]
-                0.00    0.00      42/15361       is_guarded [377]
-                0.00    0.00      42/771861      armedmen [151]
-                0.00    0.00      42/760673      addlist [217]
-                0.00    0.00      42/57138       getint [699]
-                0.00    0.00      42/71815034     get_race [12]
-                0.00    0.00      84/3902878     get_monsters [293]
-                0.00    0.00     168/129167539     u_race [89]
-                0.00    0.00      42/1027665     init_order [613]
-                0.00    0.00      42/4984610     config_get_int [348]
-                0.00    0.00      42/8506411     besieged [547]
------------------------------------------------
-                0.00    0.00      38/4875        do_combatspell [702]
-                0.00    0.00      51/4875        do_combatmagic [825]
-                0.00    0.00    4786/4875        bufunit [17]
-[874]    0.0    0.00    0.00    4875         get_combatspell [874]
-                0.00    0.00    4875/2426021     get_mage [198]
-                0.00    0.00      50/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      15/6962        drifting_ships [490]
-                0.00    0.00    6947/6962        sail [181]
-[875]    0.0    0.00    0.00    6962         set_coast [875]
-                0.00    0.00    4307/263302      reldirection [528]
-                0.00    0.00    4307/44216       flying_ship [1465]
------------------------------------------------
-                0.00    0.00     552/552         make_fighter [424]
-[876]    0.0    0.00    0.00     552         make_side [876]
-                0.00    0.00     814/9953180     alliedunit [31]
-                0.00    0.00    6102/6610983     is_guard [211]
------------------------------------------------
-                0.00    0.00     791/791         process [7]
-[877]    0.0    0.00    0.00     791         ally_cmd [877]
-                0.00    0.00     791/791         getfaction [937]
-                0.00    0.00     677/69432       getparam [681]
-                0.00    0.00     677/2281756     gettoken [195]
-                0.00    0.00     107/15102       cmistake [718]
-                0.00    0.00     677/1787006     findparam [458]
-                0.00    0.00     791/1027665     init_order [613]
-                0.00    0.00     664/51974272     a_find [65]
-                0.00    0.00     677/10383360     HelpMask [288]
-                0.00    0.00       1/1           removelist [1290]
-                0.00    0.00       2/55547       ally_add [1452]
------------------------------------------------
-                0.00    0.00       1/1           process [7]
-[878]    0.0    0.00    0.00       1         nmr_warnings [878]
-                0.00    0.00    1449/1205451     alliedfaction [162]
-                0.00    0.00    1398/4984610     config_get_int [348]
-                0.00    0.00      24/967784      msg_message [132]
-                0.00    0.00      55/392959      add_message [434]
-                0.00    0.00      20/27          NMRTimeout [1264]
-                0.00    0.00      24/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   93119/93119       give_quota [858]
-[879]    0.0    0.00    0.00   93119         limited_give [879]
-                0.00    0.00   93119/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00      23/1339        do_combatspell [702]
-                0.00    0.00      51/1339        do_combatmagic [825]
-                0.00    0.00    1265/1339        bufunit [17]
-[880]    0.0    0.00    0.00    1339         get_combatspelllevel [880]
-                0.00    0.00    1302/12320804     effskill <cycle 1> [100]
-                0.00    0.00    1339/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00     425/425         aftermath [701]
-[881]    0.0    0.00    0.00     425         reportcasualties [881]
-                0.00    0.00     395/1486        message_all [834]
-                0.00    0.00     395/967784      msg_message [132]
-                0.00    0.00     395/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    1520/1520        parse_symbol <cycle 5> [42]
-[882]    0.0    0.00    0.00    1520         eval_race [882]
-                0.00    0.00    1520/24887945     locale_string [27]
-                0.00    0.00    1520/2818494     rc_name_s [260]
-                0.00    0.00    3040/13102790     opstack_pop [176]
-                0.00    0.00    1520/13102790     opstack_push [202]
-                0.00    0.00    1520/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00    1909/1909        parse_messages [832]
-[883]    0.0    0.00    0.00    1909         nrt_register [883]
-                0.00    0.00    4921/34611296     strlcpy [45]
-                0.00    0.00    1909/32337529     hashstring [37]
-                0.00    0.00    1909/1909        section_find [1563]
-                0.00    0.00      10/10          section_add [1729]
------------------------------------------------
-                0.00    0.00       1/5588        crtag [110]
-                0.00    0.00     233/5588        readfaction [767]
-                0.00    0.00    5354/5588        xml_readtext [887]
-[884]    0.0    0.00    0.00    5588         get_locale [884]
-                0.00    0.00    5588/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.00      49/133         plan_dragon [273]
-                0.00    0.00      84/133         loot_cmd [873]
-[885]    0.0    0.00    0.00     133         income [885]
-                0.00    0.00     133/2480226     old_race [14]
-                0.00    0.00     266/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00     349/349         produce [29]
-[886]    0.0    0.00    0.00     349         research_cmd [886]
-                0.00    0.00     349/967784      msg_message [132]
-                0.00    0.00     349/472418      produceexp [322]
-                0.00    0.00     349/12320804     effskill <cycle 1> [100]
-                0.00    0.00     349/392959      add_message [434]
-                0.00    0.00     349/1027665     init_order [613]
-                0.00    0.00     692/3166898     rherbs [1351]
-                0.00    0.00     349/1009028     msg_release [1373]
-                0.00    0.00     343/343         rough_amount [1607]
------------------------------------------------
-                0.00    0.00    1910/5354        parse_messages [832]
-                0.00    0.00    3444/5354        xml_readstrings [863]
-[887]    0.0    0.00    0.00    5354         xml_readtext [887]
-                0.00    0.00    5354/5588        get_locale [884]
------------------------------------------------
-                0.00    0.00    1301/1301        split_allocations [743]
-[888]    0.0    0.00    0.00    1301         leveled_allocation [888]
-                0.00    0.00    1423/12320804     effskill <cycle 1> [100]
-                0.00    0.00    1281/7641081     genrand_int31 [171]
-                0.00    0.00    1245/1245        use_default [1149]
-                0.00    0.00    1301/9298667     resource2item [546]
-                0.00    0.00    2704/7493        required [1527]
-                0.00    0.00    1301/1301        rm_get [1578]
------------------------------------------------
-                0.00    0.00     396/396         update_spells [381]
-[889]    0.0    0.00    0.00     396         show_new_spells [889]
-                0.00    0.00    7815/7815        already_seen [929]
-                0.00    0.00    4162/779419      a_add [555]
-                0.00    0.00    4162/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00   25088/25088       rmtroop [533]
-[890]    0.0    0.00    0.00   25088         rmfighter [890]
-                0.00    0.00   25088/129167539     u_race [89]
-                0.00    0.00   25088/4301501     statusrow [550]
------------------------------------------------
-                0.00    0.00       9/1803        destroyfaction [392]
-                0.00    0.00    1794/1803        remove_unit [499]
-[891]    0.0    0.00    0.00    1803         gift_items [891]
-                0.00    0.00     112/112         get_friends [895]
-                0.00    0.00    3606/56052475     get_resourcetype [194]
-                0.00    0.00     578/129167539     u_race [89]
-                0.00    0.00      26/11241829     i_change [115]
-                0.00    0.00      38/2186159     rsetmoney [553]
-                0.00    0.00      38/4666665     rmoney [452]
-                0.00    0.00    1803/103079      rule_give [1328]
-                0.00    0.00     216/257723      i_remove [1407]
-                0.00    0.00     216/374425      i_free [1400]
-                0.00    0.00      88/97          i_merge [1651]
-                0.00    0.00       5/1160345     rhorses [1369]
-                0.00    0.00       5/257693      rsethorses [1408]
------------------------------------------------
-                0.00    0.00     768/768         read_triggers <cycle 4> [798]
-[892]    0.0    0.00    0.00     768         shock_read [892]
-                0.00    0.00     768/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00     760/760         a_read_i [390]
-[893]    0.0    0.00    0.00     760         read_familiar [893]
-                0.00    0.00     760/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00     760/760         a_read_i [390]
-[894]    0.0    0.00    0.00     760         read_magician [894]
-                0.00    0.00     760/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00     112/112         gift_items [891]
-[895]    0.0    0.00    0.00     112         get_friends [895]
-                0.00    0.00    1104/9953180     alliedunit [31]
-                0.00    0.00    1085/4984610     config_get_int [348]
-                0.00    0.00      28/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       6/6           magic [157]
-[896]    0.0    0.00    0.00       6         sp_summonundead [896]
-                0.00    0.00       6/2889        create_unit [296]
-                0.00    0.00       6/6           skill_summoned [1032]
-                0.00    0.00      12/967784      msg_message [132]
-                0.00    0.00       6/6           make_undead_unit [1188]
-                0.00    0.00      12/392959      add_message [434]
-                0.00    0.00      12/71815034     get_race [12]
-                0.00    0.00       9/201744      lovar [644]
-                0.00    0.00      15/355423      deathcount [674]
-                0.00    0.00      12/1009028     msg_release [1373]
-                0.00    0.00       6/608         co_get_region [1594]
------------------------------------------------
-                0.00    0.00   16132/16132       teach_unit [426]
-[897]    0.0    0.00    0.00   16132         magic_lowskill [897]
-                0.00    0.00   16132/12560453     rc_changed [256]
-                0.00    0.00   16132/129167539     u_race [89]
-                0.00    0.00       1/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00      80/80          process [7]
-[898]    0.0    0.00    0.00      80         combatspell_cmd [898]
-                0.00    0.00      37/365         unit_getspell [758]
-                0.00    0.00     100/2281756     gettoken [195]
-                0.00    0.00      27/15102       cmistake [718]
-                0.00    0.00      10/10          set_combatspell [1146]
-                0.00    0.00      43/43          unset_combatspell [1167]
-                0.00    0.00     115/1787006     findparam [458]
-                0.00    0.00      80/1027665     init_order [613]
-                0.00    0.00      10/57138       getint [699]
------------------------------------------------
-                0.00    0.00      71/1936        disband_men [999]
-                0.00    0.00     567/1936        give_men [857]
-                0.00    0.00    1298/1936        add_recruits [371]
-[899]    0.0    0.00    0.00    1936         transfermen [899]
-                0.00    0.00    3730/51974272     a_find [65]
-                0.00    0.00    1936/3178        scale_number [969]
-                0.00    0.00    1865/1474687     leftship [500]
-                0.00    0.00    1610/1610        transfer_curse [1039]
-                0.00    0.00     698/1956810     add_skill [355]
-                0.00    0.00      71/264251      rsetpeasants [545]
-                0.00    0.00      71/2605004     rpeasants [435]
-                0.00    0.00     142/129167539     u_race [89]
-                0.00    0.00       5/234         set_leftship [1134]
-                0.00    0.00  108170/595705      unit_skill [1391]
-                0.00    0.00    1865/603524      set_number [1387]
-                0.00    0.00      95/51060       remove_skill [1456]
------------------------------------------------
-                0.00    0.00       2/16493       start_battle [297]
-                0.00    0.00     237/16493       quit [276]
-                0.00    0.00   16254/16493       IsImmune [901]
-[900]    0.0    0.00    0.00   16493         NewbieImmunity [900]
-                0.00    0.00   16493/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      65/16669       steal_cmd [766]
-                0.00    0.00    1431/16669       start_battle [297]
-                0.00    0.00   15173/16669       can_start_guarding [679]
-[901]    0.0    0.00    0.00   16669         IsImmune [901]
-                0.00    0.00   16254/16493       NewbieImmunity [900]
------------------------------------------------
-                0.00    0.00      56/3110        update_long_order [270]
-                0.00    0.00     165/3110        build_building [696]
-                0.00    0.00    2889/3110        create_unit [296]
-[902]    0.0    0.00    0.00    3110         default_order [902]
-                0.00    0.00    3110/635885      copy_order [441]
-                0.00    0.00       2/447808      create_order [341]
-                0.00    0.00       2/20777534     config_get [224]
-                0.00    0.00    3110/2124526     locale_index [1354]
-                0.00    0.00       2/65          findkeyword [1665]
------------------------------------------------
-                0.00    0.00       2/2831        do_fumble [1062]
-                0.00    0.00     767/2831        spellcost [995]
-                0.00    0.00    2062/2831        magic [157]
-[903]    0.0    0.00    0.00    2831         countspells [903]
-                0.00    0.00    2831/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00    1700/1700        process [7]
-[904]    0.0    0.00    0.00    1700         status_cmd [904]
-                0.00    0.00    1700/2281756     gettoken [195]
-                0.00    0.00    1700/1787006     findparam [458]
-                0.00    0.00    1700/1027665     init_order [613]
-                0.00    0.00      17/69432       getparam [681]
-                0.00    0.00    1683/599650      setstatus [1390]
------------------------------------------------
-                0.00    0.00     923/923         name_unit [803]
-[905]    0.0    0.00    0.00     923         race_namegen [905]
-                0.00    0.00     666/666         generic_name [962]
-                0.00    0.00      74/74          ghoul_name [1029]
-                0.00    0.00      70/70          skeleton_name [1035]
-                0.00    0.00      52/52          zombie_name [1056]
-                0.00    0.00      27/27          dragon_name [1095]
-                0.00    0.00      34/34          dracoid_name [1126]
------------------------------------------------
-                0.00    0.00       1/1           processorders [6]
-[906]    0.0    0.00    0.00       1         wormholes_update [906]
-                0.00    0.00       1/1           select_wormhole_regions [909]
-                0.00    0.00       1/1           make_wormholes [1151]
-                0.00    0.00       1/560926      bt_find [237]
-                0.00    0.00       1/1           sort_wormhole_regions [1864]
------------------------------------------------
-                0.00    0.00     834/834         parse_symbol <cycle 5> [42]
-[907]    0.0    0.00    0.00     834         eval_resources [907]
-                0.00    0.00    1490/24887945     locale_string [27]
-                0.00    0.00    1490/13259934     resourcename [233]
-                0.00    0.00     834/13102790     opstack_pop [176]
-                0.00    0.00     834/13102790     opstack_push [202]
-                0.00    0.00    1490/36653945     wrptr [178]
-                0.00    0.00     834/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00      81/81          allocate_resource [752]
-[908]    0.0    0.00    0.00      81         can_guard [908]
-                0.00    0.00      81/1437425     cansee [22]
-                0.00    0.00      79/771861      armedmen [151]
-                0.00    0.00      79/9953180     alliedunit [31]
-                0.00    0.00      79/129167539     u_race [89]
-                0.00    0.00      79/8506411     besieged [547]
------------------------------------------------
-                0.00    0.00       1/1           wormholes_update [906]
-[909]    0.0    0.00    0.00       1         select_wormhole_regions [909]
-                0.00    0.00  178255/178255      good_region [910]
-                0.00    0.00       3/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00  178255/178255      select_wormhole_regions [909]
-[910]    0.0    0.00    0.00  178255         good_region [910]
-                0.00    0.00  174658/18647447     getplane [596]
------------------------------------------------
-                0.00    0.00     443/443         res_changepermaura [912]
-[911]    0.0    0.00    0.00     443         change_maxspellpoints [911]
-                0.00    0.00     443/5358        max_spellpoints [755]
-                0.00    0.00     443/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00      86/443         change_resource [240]
-                0.00    0.00     357/443         get_resource [99]
-[912]    0.0    0.00    0.00     443         res_changepermaura [912]
-                0.00    0.00     443/443         change_maxspellpoints [911]
------------------------------------------------
-                0.00    0.00    5925/5925        readfaction [767]
-[913]    0.0    0.00    0.00    5925         addally [913]
-                0.00    0.00    5925/4625636     findfaction [259]
-                0.00    0.00    5925/10383360     HelpMask [288]
-                0.00    0.00    5925/55547       ally_add [1452]
-                0.00    0.00    2941/34565       ur_add [1472]
------------------------------------------------
-                0.00    0.00    1422/1422        split_allocations [743]
-[914]    0.0    0.00    0.00    1422         attrib_allocation [914]
-                0.00    0.00    1584/1584        produce_resource [994]
-                0.00    0.00    1414/3123        limit_resource [943]
-                0.00    0.00    1596/7641081     genrand_int31 [171]
-                0.00    0.00    1422/51974272     a_find [65]
-                0.00    0.00    4789/7493        required [1527]
-                0.00    0.00      11/11          produce_seeds [1725]
-                0.00    0.00       7/30          limit_seeds [1691]
-                0.00    0.00       1/2           limit_mallornseeds [1775]
-                0.00    0.00       1/1           produce_mallornseeds [1829]
------------------------------------------------
-                0.00    0.00    1725/1725        add_skill [355]
-[915]    0.0    0.00    0.00    1725         max_magicians [915]
-                0.00    0.00    1725/71815034     get_race [12]
-                0.00    0.00    1725/51974272     a_find [65]
-                0.00    0.00    1725/4984610     config_get_int [348]
------------------------------------------------
-                                                 <spontaneous>
-[916]    0.0    0.00    0.00                 tolua_unit_create [916]
-                0.00    0.00       6/2889        create_unit [296]
-                0.00    0.00       6/68430117     rc_find [15]
------------------------------------------------
-                0.00    0.00       1/1           process [7]
-[917]    0.0    0.00    0.00       1         promotion_cmd [917]
-                0.00    0.00       1/461         maxheroes [492]
-                0.00    0.00       1/967         count_all [357]
-                0.00    0.00       1/457         countheroes [572]
-                0.00    0.00       1/860263      use_pooled [39]
-                0.00    0.00       1/541982      get_pooled [104]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/129167539     u_race [89]
-                0.00    0.00       1/56052475     get_resourcetype [194]
-                0.00    0.00       1/1           valid_race [1893]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      61/3496        json_keyword [1127]
-                0.00    0.00    3435/3496        xml_readstrings [863]
-[918]    0.0    0.00    0.00    3496         locale_setstring [918]
-                0.00    0.00    3496/32337529     hashstring [37]
------------------------------------------------
-                0.00    0.00    1551/8034        spskill [53]
-                0.00    0.00    1637/8034        cr_output_unit [19]
-                0.00    0.00    4846/8034        eff_stealth [163]
-[919]    0.0    0.00    0.00    8034         u_geteffstealth [919]
-                0.00    0.00    8034/51974272     a_find [65]
-                0.00    0.00    8034/21345834     skill_enabled [365]
------------------------------------------------
-                0.00    0.00     232/232         writefaction [762]
-[920]    0.0    0.00    0.00     232         write_groups [920]
-                0.00    0.00    1692/841675      a_write [299]
-                0.00    0.00   51104/647569      write_faction_reference [1382]
------------------------------------------------
-                0.00    0.00      35/35          mail_cmd [844]
-[921]    0.0    0.00    0.00      35         mailunit [921]
-                0.00    0.00      35/39          deliverMail [966]
-                0.00    0.00      35/1437425     cansee [22]
-                0.00    0.00      35/145         findunitr [991]
------------------------------------------------
-                0.00    0.00    1196/1196        parse_symbol <cycle 5> [42]
-[922]    0.0    0.00    0.00    1196         eval_localize [922]
-                0.00    0.00    1196/24887945     locale_string [27]
-                0.00    0.00    1196/13102790     opstack_pop [176]
-                0.00    0.00    1196/13102790     opstack_push [202]
-                0.00    0.00    1196/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00       2/2           do_combatmagic [825]
-[923]    0.0    0.00    0.00       2         sp_igjarjuk [923]
-                0.00    0.00       2/2           summon_allies [925]
-                0.00    0.00       2/361         regionname [987]
-                0.00    0.00       2/2383101     unitname [142]
-                0.00    0.00       2/71815034     get_race [12]
-                0.00    0.00       2/64          log_info [1339]
-                0.00    0.00       2/3862        unit_setname [1540]
------------------------------------------------
-                                                 <spontaneous>
-[924]    0.0    0.00    0.00                 cb_foreach_i [924]
-                0.00    0.00     324/324         add_resourcename_cb [977]
-                0.00    0.00     324/324         add_itemname_cb [980]
------------------------------------------------
-                0.00    0.00       2/2           sp_igjarjuk [923]
-[925]    0.0    0.00    0.00       2         summon_allies [925]
-                0.00    0.00       2/1297        make_fighter [424]
-                0.00    0.00       2/2889        create_unit [296]
-                0.00    0.00       2/2887        leave [432]
-                0.00    0.00       2/1486        message_all [834]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00       2/1381157     unit_max_hp [136]
-                0.00    0.00       2/779419      a_add [555]
-                0.00    0.00       2/599650      setstatus [1390]
-                0.00    0.00       2/779868      a_new [1376]
-                0.00    0.00       2/1009028     msg_release [1373]
-                0.00    0.00       2/2854        is_attacker [1550]
------------------------------------------------
-                0.00    0.00     138/6530        renumber_cmd [780]
-                0.00    0.00     623/6530        mail_cmd [844]
-                0.00    0.00     639/6530        do_enter [128]
-                0.00    0.00    2013/6530        display_cmd [859]
-                0.00    0.00    3117/6530        name_cmd [835]
-[926]    0.0    0.00    0.00    6530         findparam_ex [926]
-                0.00    0.00    6530/1787006     findparam [458]
-                0.00    0.00       2/4261        findbuildingtype [866]
------------------------------------------------
-                0.00    0.00       2/8898        sp_enterastral [1045]
-                0.00    0.00      20/8898        can_give_to [600]
-                0.00    0.00      50/8898        give_cmd [102]
-                0.00    0.00     186/8898        mayboard [1046]
-                0.00    0.00     317/8898        mayenter [936]
-                0.00    0.00     397/8898        is_guardian_u [626]
-                0.00    0.00     588/8898        give_men [857]
-                0.00    0.00    1198/8898        check_ship_allowed [657]
-                0.00    0.00    6140/8898        bewegung_blockiert_von [631]
-[927]    0.0    0.00    0.00    8898         ucontact [927]
-                0.00    0.00    8144/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      58/30308       peasant_luck_effect [984]
-                0.00    0.00   30250/30308       peasants [658]
-[928]    0.0    0.00    0.00   30308         peasant_growth_factor [928]
-                0.00    0.00   30308/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00    7815/7815        show_new_spells [889]
-[929]    0.0    0.00    0.00    7815         already_seen [929]
-                0.00    0.00    7815/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00    4024/4024        a_write [299]
-[930]    0.0    0.00    0.00    4024         curse_write [930]
-                0.00    0.00    4024/604861      write_unit_reference [557]
-                0.00    0.00       3/3           write_skill [1769]
------------------------------------------------
-                0.00    0.00       1/10          do_fumble [1062]
-                0.00    0.00       9/10          magic [157]
-[931]    0.0    0.00    0.00      10         sp_hain [931]
-                0.00    0.00       9/28          report_effect [861]
-                0.00    0.00      18/967784      msg_message [132]
-                0.00    0.00       9/201744      lovar [644]
-                0.00    0.00       1/15102       cmistake [718]
-                0.00    0.00       9/10053919     rtrees [302]
-                0.00    0.00      18/1009028     msg_release [1373]
-                0.00    0.00      10/608         co_get_region [1594]
-                0.00    0.00       9/229715      rsettrees [1410]
------------------------------------------------
-                0.00    0.00       9/105         melt_iceberg [1082]
-                0.00    0.00      96/105         chaos [848]
-[932]    0.0    0.00    0.00     105         terraform_region [932]
-                0.00    0.00     105/105         terraform_resources [986]
-                0.00    0.00      48/32727       rsetherbtype [537]
-                0.00    0.00      48/48          makename [1084]
-                0.00    0.00     298/7641081     genrand_int31 [171]
-                0.00    0.00      48/60          equip_items [1121]
-                0.00    0.00      57/264251      rsetpeasants [545]
-                0.00    0.00      29/752645      chance [495]
-                0.00    0.00      10/369586      r_connect [474]
-                0.00    0.00      57/2186159     rsetmoney [553]
-                0.00    0.00      58/10053919     rtrees [302]
-                0.00    0.00     252/229715      rsettrees [1410]
-                0.00    0.00      64/257693      rsethorses [1408]
-                0.00    0.00      57/178311      region_setinfo [1422]
-                0.00    0.00      57/10475       i_freeall [1515]
-                0.00    0.00      57/57          free_land [1673]
-                0.00    0.00      48/32727       region_set_morale [1476]
-                0.00    0.00      48/48          region_setname [1683]
-                0.00    0.00      48/48          get_maxluxuries [1682]
-                0.00    0.00      48/2742        get_equipment [1551]
-                0.00    0.00      48/101322      rsetherbs [1438]
-                0.00    0.00      29/1511812     newterrain [1359]
------------------------------------------------
-                0.00    0.00       3/1873        do_fumble [1062]
-                0.00    0.00    1870/1873        regenerate_aura [346]
-[933]    0.0    0.00    0.00    1873         set_spellpoints [933]
-                0.00    0.00    1873/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00       1/45891       sp_summonshadowlords [1034]
-                0.00    0.00      17/45891       study_cmd [105]
-                0.00    0.00     724/45891       study_cost [433]
-                0.00    0.00   45149/45891       drain_exp [850]
-[934]    0.0    0.00    0.00   45891         get_level [934]
-                0.00    0.00   45891/21345834     skill_enabled [365]
------------------------------------------------
-                0.00    0.00      56/56          use_item [765]
-[935]    0.0    0.00    0.00      56         use_bloodpotion [935]
-                0.00    0.00      56/860263      use_pooled [39]
-                0.00    0.00      56/967784      msg_message [132]
-                0.00    0.00      56/392959      add_message [434]
-                0.00    0.00      56/71815034     get_race [12]
-                0.00    0.00      56/404         usetpotionuse [1078]
-                0.00    0.00      55/2977        change_effect [982]
-                0.00    0.00      58/129167539     u_race [89]
-                0.00    0.00       1/68430117     rc_find [15]
-                0.00    0.00       1/3           trigger_changerace [1297]
-                0.00    0.00       1/2868601     u_irace [257]
-                0.00    0.00       1/11          add_trigger [1260]
-                0.00    0.00       1/7641081     genrand_int31 [171]
-                0.00    0.00      56/1009028     msg_release [1373]
-                0.00    0.00       1/5           trigger_timeout [1753]
-                0.00    0.00       1/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00     401/401         enter_building [695]
-[936]    0.0    0.00    0.00     401         mayenter [936]
-                0.00    0.00     401/593636      building_owner [232]
-                0.00    0.00     215/9953180     alliedunit [31]
-                0.00    0.00     317/8898        ucontact [927]
------------------------------------------------
-                0.00    0.00     791/791         ally_cmd [877]
-[937]    0.0    0.00    0.00     791         getfaction [937]
-                0.00    0.00     791/228907      getid [483]
-                0.00    0.00     791/4625636     findfaction [259]
------------------------------------------------
-                0.00    0.00     230/45860       report_computer [9]
-                0.00    0.00   45630/45860       cr_output_region [10]
-[938]    0.0    0.00    0.00   45860         print_items [938]
-                0.00    0.00     446/4434556     translate [75]
-                0.00    0.00     446/24887945     locale_string [27]
-                0.00    0.00     446/13259934     resourcename [233]
------------------------------------------------
-                0.00    0.00       3/3           magic [157]
-[939]    0.0    0.00    0.00       3         sp_song_of_peace [939]
-                0.00    0.00       3/45          create_curse [800]
-                0.00    0.00      30/1437425     cansee [22]
-                0.00    0.00      30/12265       r_addmessage [779]
-                0.00    0.00       5/967784      msg_message [132]
-                0.00    0.00       3/201744      lovar [644]
-                0.00    0.00       3/12246335     ct_find [114]
-                0.00    0.00       5/1009028     msg_release [1373]
-                0.00    0.00       3/608         co_get_region [1594]
------------------------------------------------
-                0.00    0.00      71/659         disband_men [999]
-                0.00    0.00     588/659         give_men [857]
-[940]    0.0    0.00    0.00     659         can_give_men [940]
-                0.00    0.00     659/71815034     get_race [12]
-                0.00    0.00     659/2624955     has_skill [193]
-                0.00    0.00     349/12246335     ct_find [114]
-                0.00    0.00     349/10190660     get_curse [143]
-                0.00    0.00     659/129167539     u_race [89]
-                0.00    0.00     349/4201030     curse_active [543]
-                0.00    0.00     659/1361        unit_has_cursed_item [1577]
-                0.00    0.00     349/651711      oldcursename [1381]
------------------------------------------------
-                0.00    0.00     345/345         use_potion [801]
-[941]    0.0    0.00    0.00     345         do_potion [941]
-                0.00    0.00      51/51          potion_water_of_life [945]
-                0.00    0.00     232/2977        change_effect [982]
-                0.00    0.00      62/62          potion_luck [1176]
------------------------------------------------
-                0.00    0.00     508/508         regenerate_aura [346]
-[942]    0.0    0.00    0.00     508         regeneration [942]
-                0.00    0.00     508/12320804     effskill <cycle 1> [100]
-                0.00    0.00    1016/1336242     rng_injectable_double [396]
-                0.00    0.00     508/129167539     u_race [89]
-                0.00    0.00     508/508         MagicRegeneration [1185]
------------------------------------------------
-                0.00    0.00    1414/3123        attrib_allocation [914]
-                0.00    0.00    1709/3123        allocate_resource [752]
-[943]    0.0    0.00    0.00    3123         limit_resource [943]
-                0.00    0.00    3123/34611296     strlcpy [45]
-                0.00    0.00    3123/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.00     230/230         report_plaintext [4]
-[944]    0.0    0.00    0.00     230         gamedate_season [944]
-                0.00    0.00    1150/24887945     locale_string [27]
-                0.00    0.00     230/40692       get_gamedate [1466]
------------------------------------------------
-                0.00    0.00      51/51          do_potion [941]
-[945]    0.0    0.00    0.00      51         potion_water_of_life [945]
-                0.00    0.00      51/860263      use_pooled [39]
-                0.00    0.00      51/967784      msg_message [132]
-                0.00    0.00      51/392959      add_message [434]
-                0.00    0.00      51/2032164     rt_find [597]
-                0.00    0.00      51/10053919     rtrees [302]
-                0.00    0.00       2/4984610     config_get_int [348]
-                0.00    0.00      51/2386892     config_changed [1352]
-                0.00    0.00      51/229715      rsettrees [1410]
-                0.00    0.00      51/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       2/122         create_ship [1014]
-                0.00    0.00     120/122         continue_ship [813]
-[946]    0.0    0.00    0.00     122         maxbuild [946]
-                0.00    0.00     122/541982      get_pooled [104]
-                0.00    0.00     122/3100        required [1547]
------------------------------------------------
-                0.00    0.00       1/3           config_parse [462]
-                0.00    0.00       1/3           reset_game [356]
-                0.00    0.00       1/3           readgame [60]
-[947]    0.0    0.00    0.00       3         init_locales [947]
-                0.00    0.00       2/2           init_locale [948]
-                0.00    0.00       2/6           get_or_create_locale [1275]
------------------------------------------------
-                0.00    0.00       2/2           init_locales [947]
-[948]    0.0    0.00    0.00       2         init_locale [948]
-                0.00    0.00     282/24887945     locale_string [27]
-                0.00    0.00     282/8993        addtoken [811]
-                0.00    0.00       2/2           init_keywords [1099]
-                0.00    0.00       2/2           init_skills [1101]
-                0.00    0.00       2/2           init_parameters [1100]
-                0.00    0.00     272/2818494     rc_name_s [260]
-                0.00    0.00       2/2           init_terrains_translation [1129]
-                0.00    0.00       2/2           init_directions [1143]
-                0.00    0.00       2/2           init_options_translation [1157]
-                0.00    0.00      10/4133717     mkname [261]
-                0.00    0.00       4/4558423     get_translations [437]
-                0.00    0.00       2/20777534     config_get [224]
------------------------------------------------
-                0.00    0.00     356/356         cr_render [196]
-[949]    0.0    0.00    0.00     356         cr_race [949]
-                0.00    0.00     356/4434556     translate [75]
-                0.00    0.00     356/24887945     locale_string [27]
-                0.00    0.00     356/2818494     rc_name_s [260]
------------------------------------------------
-                0.00    0.00      41/41          make_cmd [383]
-[950]    0.0    0.00    0.00      41         build_road [950]
-                0.00    0.00      21/860263      use_pooled [39]
-                0.00    0.00      23/541982      get_pooled [104]
-                0.00    0.00      60/143730      rroad [508]
-                0.00    0.00      21/967784      msg_message [132]
-                0.00    0.00      41/12320804     effskill <cycle 1> [100]
-                0.00    0.00      21/22          rsetroad [1152]
-                0.00    0.00      16/41248       msg_feedback [647]
-                0.00    0.00      37/392959      add_message [434]
-                0.00    0.00      36/369586      r_connect [474]
-                0.00    0.00      21/472418      produceexp [322]
-                0.00    0.00      44/71815034     get_race [12]
-                0.00    0.00       5/560926      bt_find [237]
-                0.00    0.00       4/15102       cmistake [718]
-                0.00    0.00      11/6010308     i_find [127]
-                0.00    0.00      11/2858912     get_effect [225]
-                0.00    0.00      44/129167539     u_race [89]
-                0.00    0.00      55/56052475     get_resourcetype [194]
-                0.00    0.00      41/8506411     besieged [547]
-                0.00    0.00     114/1511812     newterrain [1359]
-                0.00    0.00      37/1009028     msg_release [1373]
-                0.00    0.00       5/75797       buildingtype_exists [1443]
------------------------------------------------
-                0.00    0.00      10/492         set_combatspell [1146]
-                0.00    0.00     482/492         knowsspell [956]
-[951]    0.0    0.00    0.00     492         u_hasspell [951]
-                0.00    0.00     489/12320804     effskill <cycle 1> [100]
-                0.00    0.00     492/597806      unit_get_spellbook [427]
-                0.00    0.00     489/2112        spellbook_get [1557]
------------------------------------------------
-                0.00    0.00     114/114         give_cmd [102]
-[952]    0.0    0.00    0.00     114         give_unit [952]
-                0.00    0.00     112/94420       add_give [379]
-                0.00    0.00     112/9953180     alliedunit [31]
-                0.00    0.00     224/2624955     has_skill [193]
-                0.00    0.00     114/118         rule_transfermen [1204]
-                0.00    0.00     114/702         max_transfers [1109]
-                0.00    0.00     112/129167539     u_race [89]
-                0.00    0.00       2/15102       cmistake [718]
-                0.00    0.00     112/56052475     get_resourcetype [194]
-                0.00    0.00     112/598129      u_setfaction [1111]
-                0.00    0.00     114/1361        unit_has_cursed_item [1577]
------------------------------------------------
-[953]    0.0    0.00    0.00    1564+36      <cycle 3 as a whole> [953]
-                0.00    0.00    1582             write_triggers <cycle 3> [954]
-                0.00    0.00      18             timeout_write <cycle 3> [1711]
------------------------------------------------
-                                  18             timeout_write <cycle 3> [1711]
-                0.00    0.00    1564/1564        write_handler [955]
-[954]    0.0    0.00    0.00    1582         write_triggers <cycle 3> [954]
-                0.00    0.00    2304/2304        killunit_write [978]
-                0.00    0.00     769/769         shock_write [1050]
-                0.00    0.00      12/12          changefaction_write [1258]
-                0.00    0.00       6/6           changerace_write [1287]
-                0.00    0.00       2/2           giveitem_write [1309]
-                0.00    0.00       1/1           clonedied_write [1321]
-                0.00    0.00       1/1           caldera_write [1795]
-                                  18             timeout_write <cycle 3> [1711]
------------------------------------------------
-                0.00    0.00    1564/1564        a_write [299]
-[955]    0.0    0.00    0.00    1564         write_handler [955]
-                0.00    0.00    1564/1564        write_triggers <cycle 3> [954]
------------------------------------------------
-                0.00    0.00      10/482         set_combatspell [1146]
-                0.00    0.00     221/482         cast_cmd [760]
-                0.00    0.00     251/482         cancast [833]
-[956]    0.0    0.00    0.00     482         knowsspell [956]
-                0.00    0.00     482/492         u_hasspell [951]
------------------------------------------------
-                0.00    0.00      21/21          cast_combatspell [623]
-[957]    0.0    0.00    0.00      21         sp_kampfzauber [957]
-                0.00    0.00      45/80630       terminate [242]
-                0.00    0.00      45/372173      select_enemy [172]
-                0.00    0.00      21/1486        message_all [834]
-                0.00    0.00      21/967784      msg_message [132]
-                0.00    0.00      21/201744      lovar [644]
-                0.00    0.00      21/876979      count_enemies [611]
-                0.00    0.00      21/74          spell_damage [1657]
-                0.00    0.00      21/74          get_force [1656]
-                0.00    0.00      21/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/178429      sp_holyground [1068]
-                0.00    0.00      59/178429      setstealth_cmd [182]
-                0.00    0.00     115/178429      reshow [822]
-                0.00    0.00  178254/178429      age_piracy [959]
-[958]    0.0    0.00    0.00  178429         a_removeall [958]
-                0.00    0.00    2172/454395      a_free [558]
------------------------------------------------
-                0.00    0.00  178254/178254      move_pirates [326]
-[959]    0.0    0.00    0.00  178254         age_piracy [959]
-                0.00    0.00  178254/178429      a_removeall [958]
------------------------------------------------
-                0.00    0.00     210/210         cr_render [196]
-[960]    0.0    0.00    0.00     210         cr_resources [960]
-                0.00    0.00     352/4434556     translate [75]
-                0.00    0.00     352/24887945     locale_string [27]
-                0.00    0.00     352/13259934     resourcename [233]
------------------------------------------------
-                0.00    0.00     604/604         parse_symbol <cycle 5> [42]
-[961]    0.0    0.00    0.00     604         eval_spell [961]
-                0.00    0.00     604/86400       spell_name [646]
-                0.00    0.00     604/13102790     opstack_pop [176]
-                0.00    0.00     604/13102790     opstack_push [202]
-                0.00    0.00     604/13399069     balloc [363]
------------------------------------------------
-                0.00    0.00     666/666         race_namegen [905]
-[962]    0.0    0.00    0.00     666         generic_name [962]
-                0.00    0.00     666/24887945     locale_string [27]
-                0.00    0.00     666/2818494     rc_name_s [260]
-                0.00    0.00     666/129167539     u_race [89]
-                0.00    0.00     666/3862        unit_setname [1540]
------------------------------------------------
-                0.00    0.00      47/47          reshow_other [823]
-[963]    0.0    0.00    0.00      47         display_race [963]
-                0.00    0.00     495/24887945     locale_string [27]
-                0.00    0.00      47/48          addmessage [1069]
-                0.00    0.00     211/17451017     strlcpy_w [67]
-                0.00    0.00      47/779486      locale_getstring [266]
-                0.00    0.00     456/36653945     wrptr [178]
-                0.00    0.00      86/4133717     mkname [261]
-                0.00    0.00      47/2818494     rc_name_s [260]
-                0.00    0.00     211/5461936     slprintf [548]
------------------------------------------------
-                0.00    0.00    9352/9352        nr_spell [507]
-[964]    0.0    0.00    0.00    9352         write_spell_modifier [964]
-                0.00    0.00    2478/34611296     strlcpy [45]
------------------------------------------------
-                0.00    0.00     147/147         do_contact [250]
-[965]    0.0    0.00    0.00     147         contact_cmd [965]
-                0.00    0.00     147/888603      findunit [123]
-                0.00    0.00     147/284005      read_unitid [413]
-                0.00    0.00     115/115         usetcontact [1147]
-                0.00    0.00     147/1027665     init_order [613]
-                0.00    0.00     115/192         can_contact [1634]
------------------------------------------------
-                0.00    0.00       4/39          mailfaction [1106]
-                0.00    0.00      35/39          mailunit [921]
-[966]    0.0    0.00    0.00      39         deliverMail [966]
-                0.00    0.00      39/1437425     cansee [22]
-                0.00    0.00      39/967784      msg_message [132]
-                0.00    0.00      39/392959      add_message [434]
-                0.00    0.00      39/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    5049/5049        piracy_cmd [660]
-[967]    0.0    0.00    0.00    5049         find_piracy_target [967]
-                0.00    0.00    5049/51974272     a_find [65]
-                0.00    0.00       2/9953180     alliedunit [31]
------------------------------------------------
-                0.00    0.00       6/6           magic [157]
-[968]    0.0    0.00    0.00       6         sp_mallornhain [968]
-                0.00    0.00       6/28          report_effect [861]
-                0.00    0.00      12/967784      msg_message [132]
-                0.00    0.00       6/201744      lovar [644]
-                0.00    0.00       6/10053919     rtrees [302]
-                0.00    0.00      12/1009028     msg_release [1373]
-                0.00    0.00       6/608         co_get_region [1594]
-                0.00    0.00       6/229715      rsettrees [1410]
------------------------------------------------
-                0.00    0.00       1/3178        res_changeitem [101]
-                0.00    0.00       1/3178        make_zombie [1267]
-                0.00    0.00       3/3178        drown [394]
-                0.00    0.00       4/3178        age_firedragon [1123]
-                0.00    0.00       7/3178        age_ghoul [1024]
-                0.00    0.00      16/3178        damage_unit [1044]
-                0.00    0.00      17/3178        age_zombie [1019]
-                0.00    0.00      19/3178        age_skeleton [1008]
-                0.00    0.00      27/3178        hunger [808]
-                0.00    0.00      41/3178        dissolve_units [241]
-                0.00    0.00     425/3178        aftermath [701]
-                0.00    0.00     681/3178        absorbed_by_monster [804]
-                0.00    0.00    1936/3178        transfermen [899]
-[969]    0.0    0.00    0.00    3178         scale_number [969]
-                0.00    0.00    3035/51974272     a_find [65]
-                0.00    0.00    1279/7641081     genrand_int31 [171]
-                0.00    0.00   50953/51060       remove_skill [1456]
-                0.00    0.00    3036/603524      set_number [1387]
------------------------------------------------
-                0.00    0.00      52/196         zombie_name [1056]
-                0.00    0.00      70/196         skeleton_name [1035]
-                0.00    0.00      74/196         ghoul_name [1029]
-[970]    0.0    0.00    0.00     196         make_name [970]
-                0.00    0.00     407/779486      locale_getstring [266]
-                0.00    0.00     588/7641081     genrand_int31 [171]
-                0.00    0.00       3/3           count_particles [1089]
-                0.00    0.00      76/34611296     strlcpy [45]
-                0.00    0.00     542/987128      strlcat [1374]
-                0.00    0.00     196/3862        unit_setname [1540]
------------------------------------------------
-                0.00    0.00       2/1201        sp_bloodsacrifice [1209]
-                0.00    0.00    1199/1201        res_changeaura [972]
-[971]    0.0    0.00    0.00    1201         change_spellpoints [971]
-                0.00    0.00    1201/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00     216/1199        change_resource [240]
-                0.00    0.00     983/1199        get_resource [99]
-[972]    0.0    0.00    0.00    1199         res_changeaura [972]
-                0.00    0.00    1199/1201        change_spellpoints [971]
------------------------------------------------
-                0.00    0.00       8/226         do_combatmagic [825]
-                0.00    0.00      23/226         do_combatspell [702]
-                0.00    0.00     195/226         magic [157]
-[973]    0.0    0.00    0.00     226         fumble [973]
-                0.00    0.00     226/12320804     effskill <cycle 1> [100]
-                0.00    0.00     226/2426021     get_mage [198]
-                0.00    0.00     452/12246335     ct_find [114]
-                0.00    0.00     452/10190660     get_curse [143]
-                0.00    0.00     226/4984610     config_get_int [348]
-                0.00    0.00      83/7641081     genrand_int31 [171]
-                0.00    0.00     452/4201030     curse_active [543]
-                0.00    0.00     452/651711      oldcursename [1381]
-                0.00    0.00     226/26995       inside_building [1486]
-                0.00    0.00     226/26164       building_is_active [1488]
------------------------------------------------
-                0.00    0.00       4/4           magic [157]
-[974]    0.0    0.00    0.00       4         sp_goodwinds [974]
-                0.00    0.00       4/45          create_curse [800]
-                0.00    0.00      13/12265       r_addmessage [779]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       4/12246335     ct_find [114]
-                0.00    0.00       4/608         co_get_region [1594]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    4475/4475        build [691]
-[975]    0.0    0.00    0.00    4475         matmod [975]
-                0.00    0.00    4475/51974272     a_find [65]
-                0.00    0.00     505/505         mm_smithy [1203]
------------------------------------------------
-                                                 <spontaneous>
-[976]    0.0    0.00    0.00                 tolua_region_get_resource [976]
-                0.00    0.00    3355/2032164     rt_find [597]
-                0.00    0.00    2772/10053919     rtrees [302]
-                0.00    0.00    3355/3355        region_getresource [1058]
-                0.00    0.00    6127/7889        special_resources [1526]
------------------------------------------------
-                0.00    0.00     324/324         cb_foreach_i [924]
-[977]    0.0    0.00    0.00     324         add_resourcename_cb [977]
-                0.00    0.00     648/24887945     locale_string [27]
-                0.00    0.00     648/4457785     transliterate [358]
-                0.00    0.00     648/13259934     resourcename [233]
-                0.00    0.00     324/2124526     locale_index [1354]
------------------------------------------------
-                0.00    0.00    2304/2304        write_triggers <cycle 3> [954]
-[978]    0.0    0.00    0.00    2304         killunit_write [978]
-                0.00    0.00    2304/604861      write_unit_reference [557]
------------------------------------------------
-                0.00    0.00     406/406         readfaction [767]
-[979]    0.0    0.00    0.00     406         faction_setorigin [979]
-                0.00    0.00     406/760673      addlist [217]
------------------------------------------------
-                0.00    0.00     324/324         cb_foreach_i [924]
-[980]    0.0    0.00    0.00     324         add_itemname_cb [980]
-                0.00    0.00     628/24887945     locale_string [27]
-                0.00    0.00     628/4457785     transliterate [358]
-                0.00    0.00     628/13259934     resourcename [233]
-                0.00    0.00     324/2124526     locale_index [1354]
------------------------------------------------
-                0.00    0.00       1/1           randomevents [91]
-[981]    0.0    0.00    0.00       1         volcano_update [981]
-                0.00    0.00       6/6           volcano_outbreak [1023]
-                0.00    0.00     648/7641081     genrand_int31 [171]
-                0.00    0.00      37/967784      msg_message [132]
-                0.00    0.00      37/392959      add_message [434]
-                0.00    0.00      85/51974272     a_find [65]
-                0.00    0.00       6/6           rrandneighbour [1221]
-                0.00    0.00      37/1009028     msg_release [1373]
-                0.00    0.00       2/178270      get_terrain [1423]
------------------------------------------------
-                0.00    0.00       7/2977        allocate_resource [752]
-                0.00    0.00       9/2977        movement_speed [155]
-                0.00    0.00      55/2977        use_bloodpotion [935]
-                0.00    0.00      95/2977        build [691]
-                0.00    0.00     232/2977        do_potion [941]
-                0.00    0.00    1118/2977        study_cmd [105]
-                0.00    0.00    1461/2977        get_food [88]
-[982]    0.0    0.00    0.00    2977         change_effect [982]
-                0.00    0.00    2977/51974272     a_find [65]
-                0.00    0.00     105/451774      a_remove [366]
-                0.00    0.00     159/779419      a_add [555]
-                0.00    0.00     159/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     287/287         readorders [43]
-[983]    0.0    0.00    0.00     287         factionorders [983]
-                0.00    0.00     287/228907      getid [483]
-                0.00    0.00     286/2281756     gettoken [195]
-                0.00    0.00     287/4625636     findfaction [259]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00       5/5100840     itoa36 [116]
-                0.00    0.00     286/286         checkpasswd [1268]
-                0.00    0.00       5/49235       log_debug [1245]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00   30250/30250       peasants [658]
-[984]    0.0    0.00    0.00   30250         peasant_luck_effect [984]
-                0.00    0.00     174/147217      normalvariate [376]
-                0.00    0.00      58/1336242     rng_injectable_double [396]
-                0.00    0.00      58/30308       peasant_growth_factor [928]
-                0.00    0.00      58/58          peasant_luck_factor [1277]
------------------------------------------------
-                0.00    0.00     621/621         process [7]
-[985]    0.0    0.00    0.00     621         group_cmd [985]
-                0.00    0.00     621/54318       getstrtoken [710]
-                0.00    0.00     621/735         join_group [1083]
-                0.00    0.00     621/1027665     init_order [613]
------------------------------------------------
-                0.00    0.00     105/105         terraform_region [932]
-[986]    0.0    0.00    0.00     105         terraform_resources [986]
-                0.00    0.00     174/146997      dice_rand [409]
-                0.00    0.00     138/752645      chance [495]
-                0.00    0.00      58/58          add_resource [1162]
-                0.00    0.00     105/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00       1/361         tolua_region_tostring [1291]
-                0.00    0.00       2/361         sp_igjarjuk [923]
-                0.00    0.00      10/361         spawn_dragons [411]
-                0.00    0.00      50/361         rsetherbtype [537]
-                0.00    0.00      92/361         spawn_undead [629]
-                0.00    0.00     206/361         do_battle [64]
-[987]    0.0    0.00    0.00     361         regionname [987]
-                0.00    0.00     361/515911      write_regionname [280]
------------------------------------------------
-                0.00    0.00       3/3           magic [157]
-[988]    0.0    0.00    0.00       3         sp_eternizewall [988]
-                0.00    0.00       3/45          create_curse [800]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       5/12265       r_addmessage [779]
-                0.00    0.00       3/12246335     ct_find [114]
-                0.00    0.00       3/608         co_get_region [1594]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       7/7           do_combatmagic [825]
-[989]    0.0    0.00    0.00       7         sp_healing [989]
-                0.00    0.00       7/7           fighters [1012]
-                0.00    0.00       7/7           scramble_fighters [1116]
-                0.00    0.00      14/14          heal_fighters [1158]
-                0.00    0.00       7/1486        message_all [834]
-                0.00    0.00       7/967784      msg_message [132]
-                0.00    0.00       7/7           has_ao_healing [1269]
-                0.00    0.00       7/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      16/16          produce [29]
-[990]    0.0    0.00    0.00      16         spy_cmd [990]
-                0.00    0.00       8/8           spy_message [1038]
-                0.00    0.00      96/12320804     effskill <cycle 1> [100]
-                0.00    0.00      16/282847      getunit [205]
-                0.00    0.00      12/1753922     invisible [139]
-                0.00    0.00       6/967784      msg_message [132]
-                0.00    0.00       8/472418      produceexp [322]
-                0.00    0.00      10/392959      add_message [434]
-                0.00    0.00       4/41248       msg_feedback [647]
-                0.00    0.00      24/752645      chance [495]
-                0.00    0.00      16/1027665     init_order [613]
-                0.00    0.00      12/192         can_contact [1634]
-                0.00    0.00      10/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      35/145         mailunit [921]
-                0.00    0.00     110/145         steal_cmd [766]
-[991]    0.0    0.00    0.00     145         findunitr [991]
-                0.00    0.00     145/1118718     ufindhash [109]
------------------------------------------------
-                0.00    0.00     318/760         resolve_mage [856]
-                0.00    0.00     442/760         resolve_familiar [846]
-[992]    0.0    0.00    0.00     760         set_familiar [992]
-                0.00    0.00    2280/51974272     a_find [65]
-                0.00    0.00     760/779419      a_add [555]
-                0.00    0.00     760/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       3/3           magic [157]
-[993]    0.0    0.00    0.00       3         sp_charmingsong [993]
-                0.00    0.00       2/45          create_curse [800]
-                0.00    0.00      90/12320804     effskill <cycle 1> [100]
-                0.00    0.00       3/3           target_resists_magic [1154]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00       1/15102       cmistake [718]
-                0.00    0.00       1/1           report_failure [1285]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00       6/11          add_trigger [1260]
-                0.00    0.00       2/12246335     ct_find [114]
-                0.00    0.00       2/7641081     genrand_int31 [171]
-                0.00    0.00       3/3           can_charm [1338]
-                0.00    0.00       2/598129      u_setfaction [1111]
-                0.00    0.00       2/154110      rule_stealth_anon [1325]
-                0.00    0.00       4/5           trigger_killunit [1752]
-                0.00    0.00       2/2           trigger_changefaction [1783]
-                0.00    0.00       2/5           trigger_timeout [1753]
-                0.00    0.00       2/1291427     set_order [1365]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    1584/1584        attrib_allocation [914]
-[994]    0.0    0.00    0.00    1584         produce_resource [994]
-                0.00    0.00    1584/34611296     strlcpy [45]
-                0.00    0.00    1584/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.00     249/767         eff_spelllevel [845]
-                0.00    0.00     249/767         cancast [833]
-                0.00    0.00     269/767         pay_spell [805]
-[995]    0.0    0.00    0.00     767         spellcost [995]
-                0.00    0.00     767/2831        countspells [903]
-                0.00    0.00     767/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00     183/183         msg_curse [664]
-[996]    0.0    0.00    0.00     183         cinfo_magicrunes [996]
-                0.00    0.00     174/967784      msg_message [132]
------------------------------------------------
-                0.00    0.00     163/163         msg_curse [664]
-[997]    0.0    0.00    0.00     163         cinfo_shipnodrift [997]
-                0.00    0.00     163/967784      msg_message [132]
------------------------------------------------
-                0.00    0.00    1522/1522        a_write [299]
-[998]    0.0    0.00    0.00    1522         a_write_unit [998]
-                0.00    0.00    1522/604861      write_unit_reference [557]
------------------------------------------------
-                0.00    0.00      71/71          give_cmd [102]
-[999]    0.0    0.00    0.00      71         disband_men [999]
-                0.00    0.00      71/967784      msg_message [132]
-                0.00    0.00      71/659         can_give_men [940]
-                0.00    0.00      71/1936        transfermen [899]
-                0.00    0.00      71/71815034     get_race [12]
-                0.00    0.00      71/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       8/225         do_combatmagic [825]
-                0.00    0.00      21/225         do_combatspell [702]
-                0.00    0.00     196/225         magic [157]
-[1000]   0.0    0.00    0.00     225         spellpower [1000]
-                0.00    0.00     450/12246335     ct_find [114]
-                0.00    0.00     225/5395063     i_get [130]
-                0.00    0.00     450/10190660     get_curse [143]
-                0.00    0.00     225/4984610     config_get_int [348]
-                0.00    0.00     225/2032164     rt_find [597]
-                0.00    0.00     450/4201030     curse_active [543]
-                0.00    0.00     225/26995       inside_building [1486]
-                0.00    0.00     225/26164       building_is_active [1488]
------------------------------------------------
-                0.00    0.00    2723/2723        split_allocations [743]
-[1001]   0.0    0.00    0.00    2723         get_allocator [1001]
-                0.00    0.00    2723/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      15/15          drifting_ships [490]
-[1002]   0.0    0.00    0.00      15         overload [1002]
-                0.00    0.00      15/47902       getshipweight [212]
------------------------------------------------
-                0.00    0.00     133/324         travel [81]
-                0.00    0.00     191/324         sail [181]
-[1003]   0.0    0.00    0.00     324         caught_target [1003]
-                0.00    0.00     131/9953180     alliedunit [31]
-                0.00    0.00       8/1437425     cansee [22]
-                0.00    0.00     324/51974272     a_find [65]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00     133/133         present [1643]
-                0.00    0.00       4/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    3659/3659        study_cmd [105]
-[1004]   0.0    0.00    0.00    3659         ExpensiveMigrants [1004]
-                0.00    0.00    3659/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      20/182         create_potion [821]
-                0.00    0.00      71/182         manufacture [759]
-                0.00    0.00      91/182         build_building [696]
-[1005]   0.0    0.00    0.00     182         msg_materials_required [1005]
-                0.00    0.00     182/41248       msg_feedback [647]
------------------------------------------------
-                0.00    0.00     957/957         parse_messages [832]
-[1006]   0.0    0.00    0.00     957         crt_register [1006]
-                0.00    0.00     957/32337529     hashstring [37]
-                0.00    0.00    2468/2468        tsf_find [1554]
------------------------------------------------
-                0.00    0.00     957/957         parse_messages [832]
-[1007]   0.0    0.00    0.00     957         mt_register [1007]
-                0.00    0.00     957/32337529     hashstring [37]
-                0.00    0.00     957/957         mt_id [1587]
------------------------------------------------
-                0.00    0.00    1363/1363        age_unit [336]
-[1008]   0.0    0.00    0.00    1363         age_skeleton [1008]
-                0.00    0.00     725/7641081     genrand_int31 [171]
-                0.00    0.00     725/3902878     get_monsters [293]
-                0.00    0.00      38/1381157     unit_max_hp [136]
-                0.00    0.00      19/71815034     get_race [12]
-                0.00    0.00      19/3178        scale_number [969]
-                0.00    0.00      19/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00    1125/1125        leave [432]
-[1009]   0.0    0.00    0.00    1125         leave_building [1009]
-                0.00    0.00      92/92          building_update_owner [1010]
------------------------------------------------
-                0.00    0.00      92/92          leave_building [1009]
-[1010]   0.0    0.00    0.00      92         building_update_owner [1010]
-                0.00    0.00      92/209572      building_owner_ex [253]
------------------------------------------------
-                0.00    0.00      37/37          init_transportation [384]
-[1011]   0.0    0.00    0.00      37         transport [1011]
-                0.00    0.00      70/282847      getunit [205]
-                0.00    0.00     148/55492327     getkeyword [54]
-                0.00    0.00      70/1027665     init_order [613]
-                0.00    0.00      37/1629412     LongHunger [536]
------------------------------------------------
-                0.00    0.00       7/7           sp_healing [989]
-[1012]   0.0    0.00    0.00       7         fighters [1012]
-                0.00    0.00     308/1662377     get_unitrow [154]
-                0.00    0.00       8/25          allysf [1160]
------------------------------------------------
-                0.00    0.00    1091/1091        loot_items [810]
-[1013]   0.0    0.00    0.00    1091         loot_quota [1013]
-                0.00    0.00    1062/752645      chance [495]
-                0.00    0.00    1062/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00       2/2           make_cmd [383]
-[1014]   0.0    0.00    0.00       2         create_ship [1014]
-                0.00    0.00       2/2887        leave [432]
-                0.00    0.00       2/115         build_ship [839]
-                0.00    0.00       2/14326       replace_order [526]
-                0.00    0.00       2/122         maxbuild [946]
-                0.00    0.00       2/2           new_ship [1229]
-                0.00    0.00       4/12320804     effskill <cycle 1> [100]
-                0.00    0.00       2/447808      create_order [341]
-                0.00    0.00       2/24887945     locale_string [27]
-                0.00    0.00       2/129167539     u_race [89]
-                0.00    0.00       2/8506411     besieged [547]
-                0.00    0.00       2/27640       u_set_ship [1485]
-                0.00    0.00       2/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00     359/2421        give_men [857]
-                0.00    0.00    2062/2421        create_unit [296]
-[1015]   0.0    0.00    0.00    2421         set_racename [1015]
-                0.00    0.00    2421/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00       1/573         config_read [460]
-                0.00    0.00       1/573         reports [2]
-                0.00    0.00       1/573         writepasswd [1074]
-                0.00    0.00       1/573         readgame [60]
-                0.00    0.00       1/573         writegame [82]
-                0.00    0.00       2/573         writeturn [1253]
-                0.00    0.00       2/573         report_summary [614]
-                0.00    0.00       2/573         score [23]
-                0.00    0.00       3/573         json_include <cycle 2> [1283]
-                0.00    0.00     559/573         write_reports [3]
-[1016]   0.0    0.00    0.00     573         join_path [1016]
-                0.00    0.00    1146/34611296     strlcpy [45]
------------------------------------------------
-                0.00    0.00     106/106         a_age [418]
-[1017]   0.0    0.00    0.00     106         age_reduceproduction [1017]
-                0.00    0.00     100/967784      msg_message [132]
-                0.00    0.00     100/392959      add_message [434]
-                0.00    0.00     100/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/307         mail_cmd [844]
-                0.00    0.00     306/307         continue_ship [813]
-[1018]   0.0    0.00    0.00     307         getship [1018]
-                0.00    0.00     307/228907      getid [483]
-                0.00    0.00     307/28818       findship [1483]
------------------------------------------------
-                0.00    0.00     688/688         age_unit [336]
-[1019]   0.0    0.00    0.00     688         age_zombie [1019]
-                0.00    0.00     665/7641081     genrand_int31 [171]
-                0.00    0.00     665/3902878     get_monsters [293]
-                0.00    0.00      34/1381157     unit_max_hp [136]
-                0.00    0.00      17/71815034     get_race [12]
-                0.00    0.00      17/3178        scale_number [969]
-                0.00    0.00      17/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00     133/133         travel [81]
-[1020]   0.0    0.00    0.00     133         reroute [1020]
-                0.00    0.00     233/113487      next_region [601]
------------------------------------------------
-                0.00    0.00     124/124         age_building [712]
-[1021]   0.0    0.00    0.00     124         age_stonecircle [1021]
-                0.00    0.00     124/125         r_standard_to_astral [1067]
-                0.00    0.00      87/1441945     is_mage [262]
-                0.00    0.00     124/987612      get_astralplane [482]
-                0.00    0.00      98/752645      chance [495]
-                0.00    0.00      15/12320804     effskill <cycle 1> [100]
-                0.00    0.00      15/12246335     ct_find [114]
-                0.00    0.00      97/129167539     u_race [89]
-                0.00    0.00     124/56052475     get_resourcetype [194]
-                0.00    0.00      15/10190660     get_curse [143]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/11241829     i_change [115]
-                0.00    0.00     140/26995       inside_building [1486]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      12/12          volcano_outbreak [1023]
-[1022]   0.0    0.00    0.00      12         volcano_destruction [1022]
-                0.00    0.00      16/16          damage_unit [1044]
-                0.00    0.00      13/967784      msg_message [132]
-                0.00    0.00      12/1375380     remove_empty_units_in_region [134]
-                0.00    0.00      13/392959      add_message [434]
-                0.00    0.00      12/7641081     genrand_int31 [171]
-                0.00    0.00      12/779419      a_add [555]
-                0.00    0.00      12/51974272     a_find [65]
-                0.00    0.00      36/229715      rsettrees [1410]
-                0.00    0.00      13/1009028     msg_release [1373]
-                0.00    0.00      12/12          make_reduceproduction [1722]
------------------------------------------------
-                0.00    0.00       6/6           volcano_update [981]
-[1023]   0.0    0.00    0.00       6         volcano_outbreak [1023]
-                0.00    0.00      12/12          volcano_destruction [1022]
------------------------------------------------
-                0.00    0.00     708/708         age_unit [336]
-[1024]   0.0    0.00    0.00     708         age_ghoul [1024]
-                0.00    0.00     653/7641081     genrand_int31 [171]
-                0.00    0.00     653/3902878     get_monsters [293]
-                0.00    0.00      14/1381157     unit_max_hp [136]
-                0.00    0.00       7/71815034     get_race [12]
-                0.00    0.00       7/3178        scale_number [969]
-                0.00    0.00       7/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00       2/2           magic [157]
-[1025]   0.0    0.00    0.00       2         sp_summon_familiar [1025]
-                0.00    0.00       1/2889        create_unit [296]
-                0.00    0.00       1/1380398     nr_render [25]
-                0.00    0.00       8/2934859     skillname [122]
-                0.00    0.00       1/1           make_familiar [1219]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00      15/34611296     strlcpy [45]
-                0.00    0.00       1/15102       cmistake [718]
-                0.00    0.00      58/21345834     skill_enabled [365]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/24887945     locale_string [27]
-                0.00    0.00      15/36653945     wrptr [178]
-                0.00    0.00       2/54351       get_familiar [796]
-                0.00    0.00       1/1           select_familiar [1322]
-                0.00    0.00       2/608         co_get_region [1594]
-                0.00    0.00       2/1009028     msg_release [1373]
-                0.00    0.00       1/599650      setstatus [1390]
------------------------------------------------
-                0.00    0.00     279/279         cr_render [196]
-[1026]   0.0    0.00    0.00     279         cr_spell [1026]
-                0.00    0.00     279/86400       spell_name [646]
------------------------------------------------
-                0.00    0.00     196/196         magic [157]
-[1027]   0.0    0.00    0.00     196         verify_targets [1027]
-                0.00    0.00      16/16          verify_unit [1028]
-                0.00    0.00       4/4           verify_building [1255]
-                0.00    0.00     196/608         co_get_region [1594]
-                0.00    0.00      22/22          verify_ship [1704]
------------------------------------------------
-                0.00    0.00      16/16          verify_targets [1027]
-[1028]   0.0    0.00    0.00      16         verify_unit [1028]
-                0.00    0.00      14/1437425     cansee [22]
-                0.00    0.00      16/888603      findunit [123]
------------------------------------------------
-                0.00    0.00      74/74          race_namegen [905]
-[1029]   0.0    0.00    0.00      74         ghoul_name [1029]
-                0.00    0.00      74/196         make_name [970]
------------------------------------------------
-                0.00    0.00       4/338         recruit [650]
-                0.00    0.00     103/338         reshow_other [823]
-                0.00    0.00     231/338         setstealth_cmd [182]
-[1030]   0.0    0.00    0.00     338         findrace [1030]
-                0.00    0.00     338/302482      findtoken [501]
-                0.00    0.00     338/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00       3/242         drown [394]
-                0.00    0.00       5/242         chaos [848]
-                0.00    0.00     234/242         travel_route [147]
-[1031]   0.0    0.00    0.00     242         canfly [1031]
-                0.00    0.00     242/5395063     i_get [130]
-                0.00    0.00     242/1177511     it_find [385]
-                0.00    0.00     240/116002      get_movement [750]
-                0.00    0.00     242/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       6/6           sp_summonundead [896]
-[1032]   0.0    0.00    0.00       6         skill_summoned [1032]
-                0.00    0.00      54/2457        set_level [774]
-                0.00    0.00       6/1381157     unit_max_hp [136]
-                0.00    0.00       6/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       2/6           init_keywords [1099]
-                0.00    0.00       2/6           init_skills [1101]
-                0.00    0.00       2/6           init_parameters [1100]
-[1033]   0.0    0.00    0.00       6         init_translations [1033]
-                0.00    0.00     264/24887945     locale_string [27]
-                0.00    0.00     264/371         add_translation [1145]
-                0.00    0.00      58/58          skill_key [1205]
-                0.00    0.00       6/4558423     get_translations [437]
-                0.00    0.00     118/118         keyword_key [1647]
-                0.00    0.00      88/88          parameter_key [1655]
------------------------------------------------
-                0.00    0.00       1/1           magic [157]
-[1034]   0.0    0.00    0.00       1         sp_summonshadowlords [1034]
-                0.00    0.00       1/2889        create_unit [296]
-                0.00    0.00       2/2457        set_level [774]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/71815034     get_race [12]
-                0.00    0.00       1/129167539     u_race [89]
-                0.00    0.00       1/45891       get_level [934]
-                0.00    0.00       1/608         co_get_region [1594]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      70/70          race_namegen [905]
-[1035]   0.0    0.00    0.00      70         skeleton_name [1035]
-                0.00    0.00      70/196         make_name [970]
------------------------------------------------
-                0.00    0.00     119/119         recruit [650]
-[1036]   0.0    0.00    0.00     119         syntax_error [1036]
-                0.00    0.00     119/15240       msg_error [744]
-                0.00    0.00     119/392959      add_message [434]
-                0.00    0.00     119/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      65/65          steal_cmd [766]
-[1037]   0.0    0.00    0.00      65         max_skill [1037]
-                0.00    0.00     200/12320804     effskill <cycle 1> [100]
------------------------------------------------
-                0.00    0.00       8/8           spy_cmd [990]
-[1038]   0.0    0.00    0.00       8         spy_message [1038]
-                0.00    0.00      48/12320804     eff_skill <cycle 1> [334]
-                0.00    0.00      22/967784      msg_message [132]
-                0.00    0.00      48/2934859     skillname [122]
-                0.00    0.00      48/884940      itoa10 [338]
-                0.00    0.00      22/392959      add_message [434]
-                0.00    0.00       8/4374788     visible_faction [68]
-                0.00    0.00       8/598234      report_status [318]
-                0.00    0.00       1/2426021     get_mage [198]
-                0.00    0.00      22/1009028     msg_release [1373]
-                0.00    0.00       1/1           add_seen_faction [1788]
------------------------------------------------
-                0.00    0.00    1610/1610        transfermen [899]
-[1039]   0.0    0.00    0.00    1610         transfer_curse [1039]
-                0.00    0.00    1610/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00       1/1           magic [157]
-[1040]   0.0    0.00    0.00       1         sp_generous [1040]
-                0.00    0.00       1/45          create_curse [800]
-                0.00    0.00       4/1437425     cansee [22]
-                0.00    0.00       4/12265       r_addmessage [779]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       2/12246335     ct_find [114]
-                0.00    0.00       1/10190660     get_curse [143]
-                0.00    0.00       1/4201030     curse_active [543]
-                0.00    0.00       1/608         co_get_region [1594]
-                0.00    0.00       1/651711      oldcursename [1381]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    1573/1573        display_cmd [859]
-[1041]   0.0    0.00    0.00    1573         usetprivate [1041]
-                0.00    0.00    1573/51974272     a_find [65]
-                0.00    0.00       1/451774      a_remove [366]
-                0.00    0.00       3/779419      a_add [555]
-                0.00    0.00       3/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     121/121         tolua_msg_send_faction [1043]
-[1042]   0.0    0.00    0.00     121         msg_send_faction [1042]
-                0.00    0.00     121/1009159     msg_create [228]
-                0.00    0.00     121/392959      add_message [434]
------------------------------------------------
-                                                 <spontaneous>
-[1043]   0.0    0.00    0.00                 tolua_msg_send_faction [1043]
-                0.00    0.00     121/121         msg_send_faction [1042]
------------------------------------------------
-                0.00    0.00      16/16          volcano_destruction [1022]
-[1044]   0.0    0.00    0.00      16         damage_unit [1044]
-                0.00    0.00      60/146997      dice_rand [409]
-                0.00    0.00      16/7957        magic_resistance [727]
-                0.00    0.00      20/71815034     get_race [12]
-                0.00    0.00      16/3178        scale_number [969]
-                0.00    0.00      60/60          nb_armor [1273]
-                0.00    0.00       4/5395063     i_get [130]
-                0.00    0.00       4/2858912     get_effect [225]
-                0.00    0.00      36/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       1/1           magic [157]
-[1045]   0.0    0.00    0.00       1         sp_enterastral [1045]
-                0.00    0.00      12/1437425     cansee [22]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00      12/12265       r_addmessage [779]
-                0.00    0.00       2/109785      move_unit [421]
-                0.00    0.00       2/279395      weight [459]
-                0.00    0.00       1/125         r_standard_to_astral [1067]
-                0.00    0.00       2/12246335     ct_find [114]
-                0.00    0.00       2/10190660     get_curse [143]
-                0.00    0.00       2/8898        ucontact [927]
-                0.00    0.00       2/797288      can_survive [640]
-                0.00    0.00       2/4201030     curse_active [543]
-                0.00    0.00       1/3           getplaneid [1337]
-                0.00    0.00       4/1009028     msg_release [1373]
-                0.00    0.00       2/651711      oldcursename [1381]
-                0.00    0.00       1/608         co_get_region [1594]
------------------------------------------------
-                0.00    0.00     195/195         enter_ship [733]
-[1046]   0.0    0.00    0.00     195         mayboard [1046]
-                0.00    0.00     112/9953180     alliedunit [31]
-                0.00    0.00     186/8898        ucontact [927]
-                0.00    0.00     195/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.00    3659/3659        study_cmd [105]
-[1047]   0.0    0.00    0.00    3659         is_migrant [1047]
-                0.00    0.00    4069/129167539     u_race [89]
-                0.00    0.00     260/793         is_familiar [1092]
-                0.00    0.00     150/12560453     rc_changed [256]
-                0.00    0.00       1/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00     535/1270        create_unit [296]
-                0.00    0.00     735/1270        join_group [1083]
-[1048]   0.0    0.00    0.00    1270         set_group [1048]
-                0.00    0.00     631/779419      a_add [555]
-                0.00    0.00     380/51974272     a_find [65]
-                0.00    0.00      23/451774      a_remove [366]
-                0.00    0.00     631/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      55/1848        renumber_unit [1159]
-                0.00    0.00    1793/1848        remove_unit [499]
-[1049]   0.0    0.00    0.00    1848         uunhash [1049]
-                0.00    0.00    1848/2903884     jenkins_hash [439]
------------------------------------------------
-                0.00    0.00     769/769         write_triggers <cycle 3> [954]
-[1050]   0.0    0.00    0.00     769         shock_write [1050]
-                0.00    0.00     769/604861      write_unit_reference [557]
------------------------------------------------
-                0.00    0.00    5049/5049        piracy_cmd [660]
-[1051]   0.0    0.00    0.00    5049         validate_pirate [1051]
-                0.00    0.00    5049/129167539     u_race [89]
-                0.00    0.00       6/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.00    2491/2491        a_read_i [390]
-[1052]   0.0    0.00    0.00    2491         a_readeffect [1052]
-                0.00    0.00    2491/2032164     rt_find [597]
------------------------------------------------
-                0.00    0.00      15/15          drifting_ships [490]
-[1053]   0.0    0.00    0.00      15         drift_target [1053]
-                0.00    0.00      79/39810       check_ship_allowed [657]
-                0.00    0.00      58/369586      r_connect [474]
-                0.00    0.00      15/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00      39/39          reshow_other [823]
-[1054]   0.0    0.00    0.00      39         display_item [1054]
-                0.00    0.00      39/967784      msg_message [132]
-                0.00    0.00      39/779486      locale_getstring [266]
-                0.00    0.00      39/392959      add_message [434]
-                0.00    0.00      47/4133717     mkname [261]
-                0.00    0.00       8/24887945     locale_string [27]
-                0.00    0.00      39/13259934     resourcename [233]
-                0.00    0.00      39/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      13/1297        follow_unit [331]
-                0.00    0.00    1284/1297        follow_ship [749]
-[1055]   0.0    0.00    0.00    1297         hunted_dir [1055]
-                0.00    0.00    1297/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      52/52          race_namegen [905]
-[1056]   0.0    0.00    0.00      52         zombie_name [1056]
-                0.00    0.00      52/196         make_name [970]
------------------------------------------------
-                                                 <spontaneous>
-[1057]   0.0    0.00    0.00                 tolua_region_set_resource [1057]
-                0.00    0.00    1139/2032164     rt_find [597]
-                0.00    0.00    1139/1139        region_setresource [1097]
-                0.00    0.00    1762/7889        special_resources [1526]
-                0.00    0.00     623/229715      rsettrees [1410]
------------------------------------------------
-                0.00    0.00    3355/3355        tolua_region_get_resource [976]
-[1058]   0.0    0.00    0.00    3355         region_getresource [1058]
-                0.00    0.00    6714/56052475     get_resourcetype [194]
-                0.00    0.00      45/2605004     rpeasants [435]
-                0.00    0.00      41/4666665     rmoney [452]
-                0.00    0.00    3269/1160345     rhorses [1369]
------------------------------------------------
-                0.00    0.00       2/11          make_wormhole [1150]
-                0.00    0.00       9/11          build_building [696]
-[1059]   0.0    0.00    0.00      11         new_building [1059]
-                0.00    0.00      11/10232       update_lighthouse [605]
-                0.00    0.00      11/24887945     locale_string [27]
-                0.00    0.00      11/5100840     itoa36 [116]
-                0.00    0.00       3/218425      buildingtype [414]
-                0.00    0.00      11/13          newcontainerid [1263]
-                0.00    0.00      11/5461936     slprintf [548]
-                0.00    0.00      11/46196       bhash [1464]
------------------------------------------------
-                0.00    0.00      47/47          reduce_weight [404]
-[1060]   0.0    0.00    0.00      47         give_peasants [1060]
-                0.00    0.00      47/1481407     parse_order [117]
-                0.00    0.00      94/24887945     locale_string [27]
-                0.00    0.00      47/5461936     slprintf [548]
-                0.00    0.00      47/2009097     keyword [1355]
-                0.00    0.00      47/48          unit_addorder [1684]
------------------------------------------------
-                0.00    0.00       5/569         datapath [1289]
-                0.00    0.00     564/569         reportpath [1063]
-[1061]   0.0    0.00    0.00     569         relpath [1061]
-                0.00    0.00     569/34611296     strlcpy [45]
------------------------------------------------
-                0.00    0.00       8/8           magic [157]
-[1062]   0.0    0.00    0.00       8         do_fumble [1062]
-                0.00    0.00       1/10          sp_hain [931]
-                0.00    0.00      15/967784      msg_message [132]
-                0.00    0.00      15/392959      add_message [434]
-                0.00    0.00      10/7641081     genrand_int31 [171]
-                0.00    0.00       3/1873        set_spellpoints [933]
-                0.00    0.00       1/1           fumble_default [1284]
-                0.00    0.00       2/71815034     get_race [12]
-                0.00    0.00       2/2831        countspells [903]
-                0.00    0.00       2/3           trigger_changerace [1297]
-                0.00    0.00       2/752645      chance [495]
-                0.00    0.00       2/11          add_trigger [1260]
-                0.00    0.00       2/129167539     u_race [89]
-                0.00    0.00       1/2032164     rt_find [597]
-                0.00    0.00      15/1009028     msg_release [1373]
-                0.00    0.00       8/608         co_get_region [1594]
-                0.00    0.00       2/5           trigger_timeout [1753]
-                0.00    0.00       2/600145      u_setrace [1389]
-                0.00    0.00       2/121         lua_callspell [1645]
-                0.00    0.00       1/1           trigger_giveitem [1891]
-                0.00    0.00       1/1           t_add [1865]
------------------------------------------------
-                0.00    0.00       1/564         load_inifile [1293]
-                0.00    0.00       1/564         parse_inifile [1317]
-                0.00    0.00       1/564         reports [2]
-                0.00    0.00       2/564         create_directories [1294]
-                0.00    0.00     559/564         write_reports [3]
-[1063]   0.0    0.00    0.00     564         reportpath [1063]
-                0.00    0.00     564/569         relpath [1061]
------------------------------------------------
-                0.00    0.00       1/1           magic [157]
-[1064]   0.0    0.00    0.00       1         sp_flying_ship [1064]
-                0.00    0.00       1/1           levitate_ship [1071]
-                0.00    0.00       5/392959      add_message [434]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       1/608         co_get_region [1594]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      39/39          plan_dragon [273]
-[1065]   0.0    0.00    0.00      39         random_growl [1065]
-                0.00    0.00      39/967784      msg_message [132]
-                0.00    0.00      39/1552289     rname [200]
-                0.00    0.00      39/392959      add_message [434]
-                0.00    0.00      39/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00      83/303         create_castorder_combat [1137]
-                0.00    0.00     220/303         cast_cmd [760]
-[1066]   0.0    0.00    0.00     303         create_castorder [1066]
-                0.00    0.00     303/635885      copy_order [441]
-                0.00    0.00     303/499         MagicPower [1195]
------------------------------------------------
-                0.00    0.00       1/125         sp_enterastral [1045]
-                0.00    0.00     124/125         age_stonecircle [1021]
-[1067]   0.0    0.00    0.00     125         r_standard_to_astral [1067]
-                0.00    0.00     125/125         tpregion [1085]
-                0.00    0.00     125/987488      is_astral [479]
------------------------------------------------
-                0.00    0.00       1/1           magic [157]
-[1068]   0.0    0.00    0.00       1         sp_holyground [1068]
-                0.00    0.00       1/45          create_curse [800]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       1/1           report_spell [1301]
-                0.00    0.00       1/12246335     ct_find [114]
-                0.00    0.00       1/178429      a_removeall [958]
-                0.00    0.00       1/608         co_get_region [1594]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/48          tolua_unit_addnotice [1256]
-                0.00    0.00      47/48          display_race [963]
-[1069]   0.0    0.00    0.00      48         addmessage [1069]
-                0.00    0.00      48/48          caddmessage [1070]
------------------------------------------------
-                0.00    0.00      48/48          addmessage [1069]
-[1070]   0.0    0.00    0.00      48         caddmessage [1070]
-                0.00    0.00      48/967784      msg_message [132]
-                0.00    0.00      47/392959      add_message [434]
-                0.00    0.00       1/12265       r_addmessage [779]
-                0.00    0.00      48/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/1           sp_flying_ship [1064]
-[1071]   0.0    0.00    0.00       1         levitate_ship [1071]
-                0.00    0.00       1/1           shipcurse_flyingship [1072]
------------------------------------------------
-                0.00    0.00       1/1           levitate_ship [1071]
-[1072]   0.0    0.00    0.00       1         shipcurse_flyingship [1072]
-                0.00    0.00       1/45          create_curse [800]
-                0.00    0.00       2/12246335     ct_find [114]
-                0.00    0.00       2/10190660     get_curse [143]
-                0.00    0.00       2/4201030     curse_active [543]
-                0.00    0.00       1/651711      oldcursename [1381]
------------------------------------------------
-                0.00    0.00    2096/2096        a_write [299]
-[1073]   0.0    0.00    0.00    2096         a_writeeffect [1073]
-                0.00    0.00    2096/13259934     resourcename [233]
------------------------------------------------
-                0.00    0.00       1/1           tolua_write_passwords [1075]
-[1074]   0.0    0.00    0.00       1         writepasswd [1074]
-                0.00    0.00     232/5100840     itoa36 [116]
-                0.00    0.00       1/573         join_path [1016]
-                0.00    0.00       1/64          log_info [1339]
-                0.00    0.00       1/9           basepath [1730]
------------------------------------------------
-                                                 <spontaneous>
-[1075]   0.0    0.00    0.00                 tolua_write_passwords [1075]
-                0.00    0.00       1/1           writepasswd [1074]
------------------------------------------------
-                0.00    0.00     124/124         parse_symbol <cycle 5> [42]
-[1076]   0.0    0.00    0.00     124         eval_unit_dative [1076]
-                0.00    0.00     122/2383101     unitname [142]
-                0.00    0.00     124/13102790     opstack_pop [176]
-                0.00    0.00     124/13102790     opstack_push [202]
-                0.00    0.00     124/13399069     balloc [363]
-                0.00    0.00       2/24887945     locale_string [27]
------------------------------------------------
-                0.00    0.00    9312/21517       spawn_undead [629]
-                0.00    0.00   12205/21517       spawn_dragons [411]
-[1077]   0.0    0.00    0.00   21517         chaosfactor [1077]
-                0.00    0.00     981/179235      get_chaoscount [717]
------------------------------------------------
-                0.00    0.00       3/404         use_healingpotion [1119]
-                0.00    0.00      56/404         use_bloodpotion [935]
-                0.00    0.00     345/404         end_potion [814]
-[1078]   0.0    0.00    0.00     404         usetpotionuse [1078]
-                0.00    0.00     389/779419      a_add [555]
-                0.00    0.00     404/51974272     a_find [65]
-                0.00    0.00     389/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00    4782/4782        expandrecruit [349]
-[1079]   0.0    0.00    0.00    4782         select_recruitment [1079]
-                0.00    0.00    3340/129167539     u_race [89]
-                0.00    0.00    1670/1670        any_recruiters [1566]
-                0.00    0.00    1670/1670        horse_recruiters [1567]
------------------------------------------------
-                0.00    0.00     127/127         tolua_msg_create [1081]
-[1080]   0.0    0.00    0.00     127         msg_create_message [1080]
-                0.00    0.00     127/1010116     mt_find [227]
------------------------------------------------
-                                                 <spontaneous>
-[1081]   0.0    0.00    0.00                 tolua_msg_create [1081]
-                0.00    0.00     127/127         msg_create_message [1080]
------------------------------------------------
-                0.00    0.00       9/9           move_icebergs [534]
-[1082]   0.0    0.00    0.00       9         melt_iceberg [1082]
-                0.00    0.00       9/105         terraform_region [932]
-                0.00    0.00       9/178263      drown [394]
-                0.00    0.00       8/451774      a_remove [366]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       3/392959      add_message [434]
-                0.00    0.00       9/51974272     a_find [65]
-                0.00    0.00       9/1511812     newterrain [1359]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     114/735         u_setfaction [1111]
-                0.00    0.00     621/735         group_cmd [985]
-[1083]   0.0    0.00    0.00     735         join_group [1083]
-                0.00    0.00     735/1270        set_group [1048]
-                0.00    0.00     453/453         find_groupbyname [1217]
-                0.00    0.00       3/1697        new_group [1565]
-                0.00    0.00       3/3           init_group [1764]
------------------------------------------------
-                0.00    0.00      48/48          terraform_region [932]
-[1084]   0.0    0.00    0.00      48         makename [1084]
-                0.00    0.00     598/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00     125/125         r_standard_to_astral [1067]
-[1085]   0.0    0.00    0.00     125         tpregion [1085]
-                0.00    0.00     125/459083      findregion [420]
-                0.00    0.00     125/987488      is_astral [479]
-                0.00    0.00     250/250         real2tp [1612]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1086]   0.0    0.00    0.00       1         parse_resources [1086]
-                0.00    0.00     157/157         xml_readitem [1107]
-                0.00    0.00      12/39          bt_get_or_create [1114]
-                0.00    0.00     159/383         rt_get_or_create [1139]
-                0.00    0.00       1/1           init_resources [1228]
-                0.00    0.00       7/779419      a_add [555]
-                0.00    0.00       2/68430117     rc_find [15]
-                0.00    0.00       2/150         rc_get_or_create [1105]
-                0.00    0.00       7/51974272     a_find [65]
-                0.00    0.00       1/1           init_itemtypes [1307]
-                0.00    0.00     318/6576        xml_bvalue [1532]
-                0.00    0.00      54/54          it_set_appearance [1679]
-                0.00    0.00      19/178         parse_function [1637]
-                0.00    0.00       7/7           rmt_create [1741]
-                0.00    0.00       7/779868      a_new [1376]
-                0.00    0.00       6/501         xml_fvalue [1599]
-                0.00    0.00       6/465         get_function [1600]
-                0.00    0.00       4/5453        xml_ivalue [1533]
------------------------------------------------
-                0.00    0.00      49/49          plan_dragon [273]
-[1087]   0.0    0.00    0.00      49         get_money_for_dragon [1087]
-                0.00    0.00      10/160206      monster_attacks [248]
-                0.00    0.00      43/447808      create_order [341]
-                0.00    0.00      43/752645      chance [495]
-                0.00    0.00      59/4666665     rmoney [452]
-                0.00    0.00      10/6610983     is_guard [211]
-                0.00    0.00      43/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       9/188         travel_route [147]
-                0.00    0.00     179/188         check_ship_allowed [657]
-[1088]   0.0    0.00    0.00     188         is_freezing [1088]
-                0.00    0.00     188/71815034     get_race [12]
-                0.00    0.00     188/129167539     u_race [89]
-                0.00    0.00       9/12246335     ct_find [114]
-                0.00    0.00       9/10190660     get_curse [143]
-                0.00    0.00       9/4201030     curse_active [543]
-                0.00    0.00       9/651711      oldcursename [1381]
------------------------------------------------
-                0.00    0.00       3/3           make_name [970]
-[1089]   0.0    0.00    0.00       3         count_particles [1089]
-                0.00    0.00     117/779486      locale_getstring [266]
------------------------------------------------
-                0.00    0.00       1/328         reshow_other [823]
-                0.00    0.00     327/328         reshow [822]
-[1090]   0.0    0.00    0.00     328         display_potion [1090]
-                0.00    0.00     328/779419      a_add [555]
-                0.00    0.00     328/51974272     a_find [65]
-                0.00    0.00     328/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      75/1583        drain_exp [850]
-                0.00    0.00    1508/1583        demon_skillchange [826]
-[1091]   0.0    0.00    0.00    1583         reduce_skill [1091]
-                0.00    0.00      27/47562       skill_weeks [509]
------------------------------------------------
-                0.00    0.00       4/793         cast_cmd [760]
-                0.00    0.00       5/793         count_skill [868]
-                0.00    0.00     260/793         is_migrant [1047]
-                0.00    0.00     524/793         study_cmd [105]
-[1092]   0.0    0.00    0.00     793         is_familiar [1092]
-                0.00    0.00     793/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      12/12          economics [78]
-[1093]   0.0    0.00    0.00      12         forget_cmd [1093]
-                0.00    0.00      12/2457        set_level [774]
-                0.00    0.00      12/967784      msg_message [132]
-                0.00    0.00      12/392959      add_message [434]
-                0.00    0.00      12/2281756     gettoken [195]
-                0.00    0.00      12/996009      get_skill [423]
-                0.00    0.00       6/12246335     ct_find [114]
-                0.00    0.00      12/1027665     init_order [613]
-                0.00    0.00       6/10190660     get_curse [143]
-                0.00    0.00       6/4201030     curse_active [543]
-                0.00    0.00      12/1009028     msg_release [1373]
-                0.00    0.00       6/651711      oldcursename [1381]
------------------------------------------------
-                0.00    0.00       7/27          create_icebergs [538]
-                0.00    0.00      20/27          move_icebergs [534]
-[1094]   0.0    0.00    0.00      27         move_iceberg [1094]
-                0.00    0.00       1/6963        move_ship [374]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00      37/7641081     genrand_int31 [171]
-                0.00    0.00      36/36          runhash [1247]
-                0.00    0.00      36/178290      rhash [737]
-                0.00    0.00      27/51974272     a_find [65]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00      13/779419      a_add [555]
-                0.00    0.00       1/369586      r_connect [474]
-                0.00    0.00       1/3358315     ship_owner [438]
-                0.00    0.00       1/717218      config_get_flt [714]
-                0.00    0.00      13/13          make_iceberg [1718]
-                0.00    0.00       4/1009028     msg_release [1373]
-                0.00    0.00       1/160         damage_ship [1641]
------------------------------------------------
-                0.00    0.00      27/27          race_namegen [905]
-[1095]   0.0    0.00    0.00      27         dragon_name [1095]
-                0.00    0.00      58/779486      locale_getstring [266]
-                0.00    0.00      92/7641081     genrand_int31 [171]
-                0.00    0.00      18/1552289     rname [200]
-                0.00    0.00      22/34611296     strlcpy [45]
-                0.00    0.00      52/987128      strlcat [1374]
-                0.00    0.00      27/560         oldterrain [1596]
-                0.00    0.00      27/3862        unit_setname [1540]
------------------------------------------------
-                0.00    0.00     348/348         use_potion [801]
-[1096]   0.0    0.00    0.00     348         begin_potion [1096]
-                0.00    0.00     348/348         ugetpotionuse [1133]
-                0.00    0.00     348/4984610     config_get_int [348]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       3/392959      add_message [434]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    1139/1139        tolua_region_set_resource [1057]
-[1097]   0.0    0.00    0.00    1139         region_setresource [1097]
-                0.00    0.00    3335/56052475     get_resourcetype [194]
-                0.00    0.00      41/2186159     rsetmoney [553]
-                0.00    0.00    1098/257693      rsethorses [1408]
------------------------------------------------
-                0.00    0.00     295/295         age_unit [336]
-[1098]   0.0    0.00    0.00     295         age_dragon [1098]
-                0.00    0.00     295/7641081     genrand_int31 [171]
-                0.00    0.00      10/1381157     unit_max_hp [136]
-                0.00    0.00       5/71815034     get_race [12]
-                0.00    0.00       5/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00       2/2           init_locale [948]
-[1099]   0.0    0.00    0.00       2         init_keywords [1099]
-                0.00    0.00       2/6           init_translations [1033]
------------------------------------------------
-                0.00    0.00       2/2           init_locale [948]
-[1100]   0.0    0.00    0.00       2         init_parameters [1100]
-                0.00    0.00       2/6           init_translations [1033]
------------------------------------------------
-                0.00    0.00       2/2           init_locale [948]
-[1101]   0.0    0.00    0.00       2         init_skills [1101]
-                0.00    0.00       2/6           init_translations [1033]
------------------------------------------------
-                0.00    0.00      78/78          parse_symbol <cycle 5> [42]
-[1102]   0.0    0.00    0.00      78         eval_weight [1102]
-                0.00    0.00      78/24887945     locale_string [27]
-                0.00    0.00      78/13102790     opstack_pop [176]
-                0.00    0.00      78/13102790     opstack_push [202]
-                0.00    0.00      78/13399069     balloc [363]
------------------------------------------------
-                                                 <spontaneous>
-[1103]   0.0    0.00    0.00                 tolua_unit_add_item [1103]
-                0.00    0.00     121/1177511     it_find [385]
-                0.00    0.00     121/11241829     i_change [115]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1104]   0.0    0.00    0.00       1         parse_races [1104]
-                0.00    0.00     146/150         rc_get_or_create [1105]
-                0.00    0.00      68/717287      get_param_flt [713]
-                0.00    0.00    2798/6576        xml_bvalue [1532]
-                0.00    0.00    2706/5453        xml_ivalue [1533]
-                0.00    0.00     820/1041        findskill [1586]
-                0.00    0.00     340/501         xml_fvalue [1599]
-                0.00    0.00      69/178         parse_function [1637]
-                0.00    0.00      67/67          parse_ai [1662]
-                0.00    0.00      11/11          xml_spell [1727]
-                0.00    0.00       3/3           parse_param [1765]
------------------------------------------------
-                0.00    0.00       2/150         xml_readweapon [1266]
-                0.00    0.00       2/150         parse_resources [1086]
-                0.00    0.00     146/150         parse_races [1104]
-[1105]   0.0    0.00    0.00     150         rc_get_or_create [1105]
-                0.00    0.00     150/68430271     rc_find_i [16]
-                0.00    0.00      68/68          rc_create [1661]
------------------------------------------------
-                0.00    0.00       4/4           mail_cmd [844]
-[1106]   0.0    0.00    0.00       4         mailfaction [1106]
-                0.00    0.00       4/39          deliverMail [966]
-                0.00    0.00       4/4625636     findfaction [259]
------------------------------------------------
-                0.00    0.00     157/157         parse_resources [1086]
-[1107]   0.0    0.00    0.00     157         xml_readitem [1107]
-                0.00    0.00     157/185         it_get_or_create [1115]
-                0.00    0.00     157/191         xml_readconstruction [1183]
-                0.00    0.00      23/23          xml_readweapon [1266]
-                0.00    0.00     942/6576        xml_bvalue [1532]
-                0.00    0.00     471/5453        xml_ivalue [1533]
-                0.00    0.00      72/72          default_score [1659]
-                0.00    0.00      55/178         parse_function [1637]
-                0.00    0.00      15/15          xml_readpotion [1714]
-                0.00    0.00       8/8           xml_readarmor [1736]
-                0.00    0.00       7/7           xml_readluxury [1745]
------------------------------------------------
-                0.00    0.00    1761/1761        give_item [126]
-[1108]   0.0    0.00    0.00    1761         give_horses [1108]
-                0.00    0.00       5/860263      use_pooled [39]
-                0.00    0.00       5/283711      item2resource [561]
-                0.00    0.00       5/1160345     rhorses [1369]
-                0.00    0.00       5/257693      rsethorses [1408]
------------------------------------------------
-                0.00    0.00     114/702         give_unit [952]
-                0.00    0.00     588/702         give_men [857]
-[1109]   0.0    0.00    0.00     702         max_transfers [1109]
-                0.00    0.00     702/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      62/62          msg_curse [664]
-[1110]   0.0    0.00    0.00      62         cinfo_speed [1110]
-                0.00    0.00      28/967784      msg_message [132]
------------------------------------------------
-                0.00    0.00       1/598129      make_zombie [1267]
-                0.00    0.00       2/598129      sp_charmingsong [993]
-                0.00    0.00     112/598129      give_unit [952]
-                0.00    0.00    2889/598129      create_unit [296]
-                0.00    0.00  595125/598129      read_unit [74]
-[1111]   0.0    0.00    0.00  598129         u_setfaction [1111]
-                0.00    0.00     114/1644867     free_orders [306]
-                0.00    0.00     114/735         join_group [1083]
-                0.00    0.00     114/3383689     update_interval [551]
-                0.00    0.00     228/603524      set_number [1387]
-                0.00    0.00     114/1291427     set_order [1365]
------------------------------------------------
-                0.00    0.00     199/95593       travel_i [92]
-                0.00    0.00     734/95593       leave [432]
-                0.00    0.00   94660/95593       travel [81]
-[1112]   0.0    0.00    0.00   95593         can_leave [1112]
-                0.00    0.00     688/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      23/23          economics [78]
-[1113]   0.0    0.00    0.00      23         destroy_cmd [1113]
-                0.00    0.00      22/15102       cmistake [718]
-                0.00    0.00      38/2281756     gettoken [195]
-                0.00    0.00       1/1           destroy_road [1230]
-                0.00    0.00      22/1027665     init_order [613]
-                0.00    0.00       1/534930      isparam [668]
------------------------------------------------
-                0.00    0.00      12/39          parse_resources [1086]
-                0.00    0.00      27/39          parse_buildings [1131]
-[1114]   0.0    0.00    0.00      39         bt_get_or_create [1114]
-                0.00    0.00      39/560965      bt_find_i [236]
-                0.00    0.00      27/27          bt_register [1698]
------------------------------------------------
-                0.00    0.00       1/185         init_resources [1228]
-                0.00    0.00      27/185         json_terrain [1189]
-                0.00    0.00     157/185         xml_readitem [1107]
-[1115]   0.0    0.00    0.00     185         it_get_or_create [1115]
-                0.00    0.00     185/1177511     it_find [385]
-                0.00    0.00     185/185         it_register [1636]
------------------------------------------------
-                0.00    0.00       7/7           sp_healing [989]
-[1116]   0.0    0.00    0.00       7         scramble_fighters [1116]
-                0.00    0.00     290/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00       4/4           mail_cmd [844]
-[1117]   0.0    0.00    0.00       4         seefaction [1117]
-                0.00    0.00       4/1437425     cansee [22]
------------------------------------------------
-                0.00    0.00     134/134         msg_curse [664]
-[1118]   0.0    0.00    0.00     134         cinfo_slave [1118]
-                0.00    0.00      24/967784      msg_message [132]
------------------------------------------------
-                0.00    0.00       3/3           use_item [765]
-[1119]   0.0    0.00    0.00       3         use_healingpotion [1119]
-                0.00    0.00       3/860263      use_pooled [39]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       4/4           heal [1224]
-                0.00    0.00       3/392959      add_message [434]
-                0.00    0.00       3/404         usetpotionuse [1078]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1120]   0.0    0.00    0.00       1         parse_spells [1120]
-                0.00    0.00     137/34611296     strlcpy [45]
-                0.00    0.00     233/2032164     rt_find [597]
-                0.00    0.00    1660/6576        xml_bvalue [1532]
-                0.00    0.00     731/5453        xml_ivalue [1533]
-                0.00    0.00     274/465         get_function [1600]
-                0.00    0.00     166/166         create_spell [1639]
-                0.00    0.00      29/178         parse_function [1637]
------------------------------------------------
-                0.00    0.00      12/60          kill_troop [532]
-                0.00    0.00      48/60          terraform_region [932]
-[1121]   0.0    0.00    0.00      60         equip_items [1121]
-                0.00    0.00      23/146997      dice_rand [409]
-                0.00    0.00      23/822780      i_new [1375]
-                0.00    0.00      23/87004       i_add [1442]
------------------------------------------------
-                0.00    0.00      23/48          join_allies [693]
-                0.00    0.00      25/48          allysf [1160]
-[1122]   0.0    0.00    0.00      48         allysfm [1122]
-                0.00    0.00      27/10375491     alliedgroup [34]
-                0.00    0.00      14/1205451     alliedfaction [162]
------------------------------------------------
-                0.00    0.00     182/182         age_unit [336]
-[1123]   0.0    0.00    0.00     182         age_firedragon [1123]
-                0.00    0.00     182/7641081     genrand_int31 [171]
-                0.00    0.00       8/1381157     unit_max_hp [136]
-                0.00    0.00       4/71815034     get_race [12]
-                0.00    0.00       4/3178        scale_number [969]
-                0.00    0.00       4/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00       1/1           json_config <cycle 2> [464]
-[1124]   0.0    0.00    0.00       1         json_keywords [1124]
-                0.00    0.00       2/2           json_keyword [1127]
-                0.00    0.00       2/6           get_or_create_locale [1275]
------------------------------------------------
-                0.00    0.00     206/206         aftermath [701]
-[1125]   0.0    0.00    0.00     206         battle_effects [1125]
-                0.00    0.00     246/2605004     rpeasants [435]
-                0.00    0.00      34/264251      rsetpeasants [545]
-                0.00    0.00      34/37974       deathcounts [843]
-                0.00    0.00      34/18059       add_chaoscount [1198]
-                0.00    0.00     406/406         PopulationDamage [1605]
------------------------------------------------
-                0.00    0.00      34/34          race_namegen [905]
-[1126]   0.0    0.00    0.00      34         dracoid_name [1126]
-                0.00    0.00     208/7641081     genrand_int31 [171]
-                0.00    0.00      34/34611296     strlcpy [45]
-                0.00    0.00     109/987128      strlcat [1374]
-                0.00    0.00      34/3862        unit_setname [1540]
------------------------------------------------
-                0.00    0.00       2/2           json_keywords [1124]
-[1127]   0.0    0.00    0.00       2         json_keyword [1127]
-                0.00    0.00      61/3496        locale_setstring [918]
-                0.00    0.00     107/107         init_keyword [1179]
-                0.00    0.00      61/4133717     mkname [261]
-                0.00    0.00      61/65          findkeyword [1665]
------------------------------------------------
-                0.00    0.00     167/167         teach_cmd [272]
-[1128]   0.0    0.00    0.00     167         academy_teaching_bonus [1128]
-                0.00    0.00     167/892307      learn_skill [471]
------------------------------------------------
-                0.00    0.00       2/2           init_locale [948]
-[1129]   0.0    0.00    0.00       2         init_terrains_translation [1129]
-                0.00    0.00      36/24887945     locale_string [27]
-                0.00    0.00      36/8993        addtoken [811]
-                0.00    0.00       2/4558423     get_translations [437]
-                0.00    0.00       2/4           terrains [1760]
------------------------------------------------
-                0.00    0.00       2/2           a_age [418]
-[1130]   0.0    0.00    0.00       2         wormhole_age [1130]
-                0.00    0.00       2/2           remove_building [1153]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       4/392959      add_message [434]
-                0.00    0.00       1/109785      move_unit [421]
-                0.00    0.00       3/1009028     msg_release [1373]
-                0.00    0.00       1/1           has_limited_skills [1808]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1131]   0.0    0.00    0.00       1         parse_buildings [1131]
-                0.00    0.00      27/39          bt_get_or_create [1114]
-                0.00    0.00      27/191         xml_readconstruction [1183]
-                0.00    0.00      17/2032164     rt_find [597]
-                0.00    0.00       1/1           init_smithy [1312]
-                0.00    0.00     250/6576        xml_bvalue [1532]
-                0.00    0.00     179/5453        xml_ivalue [1533]
-                0.00    0.00      27/501         xml_fvalue [1599]
-                0.00    0.00       3/178         parse_function [1637]
------------------------------------------------
-                0.00    0.00      38/38          loot_items [810]
-[1132]   0.0    0.00    0.00      38         select_ally [1132]
-                0.00    0.00      33/1662377     get_unitrow [154]
-                0.00    0.00      38/38          count_allies [1220]
-                0.00    0.00      29/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00     348/348         begin_potion [1096]
-[1133]   0.0    0.00    0.00     348         ugetpotionuse [1133]
-                0.00    0.00     348/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00       5/234         give_men [857]
-                0.00    0.00       5/234         transfermen [899]
-                0.00    0.00     224/234         leave_ship [540]
-[1134]   0.0    0.00    0.00     234         set_leftship [1134]
-                0.00    0.00     234/779419      a_add [555]
-                0.00    0.00     234/234         make_leftship [1615]
------------------------------------------------
-                0.00    0.00     324/1572        report_computer [9]
-                0.00    0.00     324/1572        report_plaintext [4]
-                0.00    0.00     924/1572        score [23]
-[1135]   0.0    0.00    0.00    1572         write_score [1135]
-                0.00    0.00    1572/5461936     slprintf [548]
------------------------------------------------
-                0.00    0.00     224/457         update_spells [381]
-                0.00    0.00     233/457         readfaction [767]
-[1136]   0.0    0.00    0.00     457         FactionSpells [1136]
-                0.00    0.00     457/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00       9/83          do_combatmagic [825]
-                0.00    0.00      74/83          cast_combatspell [623]
-[1137]   0.0    0.00    0.00      83         create_castorder_combat [1137]
-                0.00    0.00      83/303         create_castorder [1066]
------------------------------------------------
-                0.00    0.00  102761/102761      give_cmd [102]
-[1138]   0.0    0.00    0.00  102761         check_give [1138]
-                0.00    0.00      22/41248       msg_feedback [647]
-                0.00    0.00  102761/217696      can_give [1335]
------------------------------------------------
-                0.00    0.00       6/383         init_resources [1228]
-                0.00    0.00      56/383         json_terrain [1189]
-                0.00    0.00     159/383         parse_resources [1086]
-                0.00    0.00     162/383         xml_readrequirements [1186]
-[1139]   0.0    0.00    0.00     383         rt_get_or_create [1139]
-                0.00    0.00     545/2032164     rt_find [597]
-                0.00    0.00     162/162         rt_register [1640]
------------------------------------------------
-                0.00    0.00      44/44          ct_checknames [1142]
-[1140]   0.0    0.00    0.00      44         curse_name [1140]
-                0.00    0.00      44/24887945     locale_string [27]
-                0.00    0.00      44/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00       1/1           init_reports [399]
-[1141]   0.0    0.00    0.00       1         check_messages_exist [1141]
-                0.00    0.00       1/1           ct_checknames [1142]
------------------------------------------------
-                0.00    0.00       1/1           check_messages_exist [1141]
-[1142]   0.0    0.00    0.00       1         ct_checknames [1142]
-                0.00    0.00      44/44          curse_name [1140]
------------------------------------------------
-                0.00    0.00       2/2           init_locale [948]
-[1143]   0.0    0.00    0.00       2         init_directions [1143]
-                0.00    0.00      26/24887945     locale_string [27]
-                0.00    0.00      26/8993        addtoken [811]
-                0.00    0.00       2/2           register_special_direction [1259]
-                0.00    0.00       2/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00     176/176         kill_troop [532]
-[1144]   0.0    0.00    0.00     176         default_spoil [1144]
-                0.00    0.00     176/7641081     genrand_int31 [171]
-                0.00    0.00       9/1177511     it_find [385]
-                0.00    0.00       9/822780      i_new [1375]
-                0.00    0.00       9/87004       i_add [1442]
------------------------------------------------
-                0.00    0.00     107/371         init_keyword [1179]
-                0.00    0.00     264/371         init_translations [1033]
-[1145]   0.0    0.00    0.00     371         add_translation [1145]
-                0.00    0.00     371/4457785     transliterate [358]
------------------------------------------------
-                0.00    0.00      10/10          combatspell_cmd [898]
-[1146]   0.0    0.00    0.00      10         set_combatspell [1146]
-                0.00    0.00      10/492         u_hasspell [951]
-                0.00    0.00      10/482         knowsspell [956]
-                0.00    0.00      10/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00     115/115         contact_cmd [965]
-[1147]   0.0    0.00    0.00     115         usetcontact [1147]
-                0.00    0.00     114/779419      a_add [555]
-                0.00    0.00     115/51974272     a_find [65]
-                0.00    0.00     114/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       2/2           breed_cmd [741]
-[1148]   0.0    0.00    0.00       2         breedtrees [1148]
-                0.00    0.00       1/860263      use_pooled [39]
-                0.00    0.00       1/1           planttrees [1206]
-                0.00    0.00       1/541982      get_pooled [104]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       2/12320804     effskill <cycle 1> [100]
-                0.00    0.00       1/472418      produceexp [322]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/7641081     genrand_int31 [171]
-                0.00    0.00       1/10053919     rtrees [302]
-                0.00    0.00       2/56052475     get_resourcetype [194]
-                0.00    0.00       2/40692       get_gamedate [1466]
-                0.00    0.00       1/229715      rsettrees [1410]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00    1245/1245        leveled_allocation [888]
-[1149]   0.0    0.00    0.00    1245         use_default [1149]
-                0.00    0.00     170/7641081     genrand_int31 [171]
-                0.00    0.00      85/143         update_resource [1237]
------------------------------------------------
-                0.00    0.00       1/1           make_wormholes [1151]
-[1150]   0.0    0.00    0.00       1         make_wormhole [1150]
-                0.00    0.00       2/11          new_building [1059]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00       2/779419      a_add [555]
-                0.00    0.00       2/779868      a_new [1376]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/1           wormholes_update [906]
-[1151]   0.0    0.00    0.00       1         make_wormholes [1151]
-                0.00    0.00       1/1           make_wormhole [1150]
------------------------------------------------
-                0.00    0.00       1/22          destroy_road [1230]
-                0.00    0.00      21/22          build_road [950]
-[1152]   0.0    0.00    0.00      22         rsetroad [1152]
-                0.00    0.00      22/2225796     get_borders [120]
-                0.00    0.00       6/22644       new_border [705]
------------------------------------------------
-                0.00    0.00       2/2           wormhole_age [1130]
-[1153]   0.0    0.00    0.00       2         remove_building [1153]
-                0.00    0.00       2/10232       update_lighthouse [605]
-                0.00    0.00       6/560926      bt_find [237]
-                0.00    0.00       2/48457       bfindhash [1461]
-                0.00    0.00       2/1342832     handle_event [1363]
-                0.00    0.00       2/12          bunhash [1720]
------------------------------------------------
-                0.00    0.00       3/3           sp_charmingsong [993]
-[1154]   0.0    0.00    0.00       3         target_resists_magic [1154]
-                0.00    0.00      20/12320804     eff_skill <cycle 1> [334]
-                0.00    0.00       3/7957        magic_resistance [727]
-                0.00    0.00       3/12320804     effskill <cycle 1> [100]
-                0.00    0.00       3/752645      chance [495]
------------------------------------------------
-                0.00    0.00       1/3           tolua_get_nmrs [1208]
-                0.00    0.00       2/3           report_summary [614]
-[1155]   0.0    0.00    0.00       3         update_nmrs [1155]
-                0.00    0.00      52/5100840     itoa36 [116]
-                0.00    0.00       3/27          NMRTimeout [1264]
-                0.00    0.00      52/49235       log_debug [1245]
------------------------------------------------
-                0.00    0.00       1/1           process [7]
-[1156]   0.0    0.00    0.00       1         renumber_factions [1156]
-                0.00    0.00     232/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00       2/2           init_locale [948]
-[1157]   0.0    0.00    0.00       2         init_options_translation [1157]
-                0.00    0.00      22/24887945     locale_string [27]
-                0.00    0.00      22/8993        addtoken [811]
-                0.00    0.00       2/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00      14/14          sp_healing [989]
-[1158]   0.0    0.00    0.00      14         heal_fighters [1158]
-                0.00    0.00     802/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      55/55          renumber_cmd [780]
-[1159]   0.0    0.00    0.00      55         renumber_unit [1159]
-                0.00    0.00      55/779419      a_add [555]
-                0.00    0.00      55/285923      ualias [692]
-                0.00    0.00      55/598069      uhash [667]
-                0.00    0.00      55/1848        uunhash [1049]
-                0.00    0.00      55/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       8/25          fighters [1012]
-                0.00    0.00      17/25          helping [1177]
-[1160]   0.0    0.00    0.00      25         allysf [1160]
-                0.00    0.00      25/48          allysfm [1122]
------------------------------------------------
-                                                 <spontaneous>
-[1161]   0.0    0.00    0.00                 config_get_locales [1161]
-                0.00    0.00       2/11719       locale_name [568]
-                0.00    0.00       4/4           nextlocale [1758]
------------------------------------------------
-                0.00    0.00      58/58          terraform_resources [986]
-[1162]   0.0    0.00    0.00      58         add_resource [1162]
-                0.00    0.00      58/58          terraform_default [1165]
-                0.00    0.00      58/143         update_resource [1237]
-                0.00    0.00      58/58          rmt_get [1672]
------------------------------------------------
-                                                 <spontaneous>
-[1163]   0.0    0.00    0.00                 tolua_unit_setskill [1163]
-                0.00    0.00       6/2457        set_level [774]
-                0.00    0.00       6/1041        findskill [1586]
------------------------------------------------
-                0.00    0.00       1/1           read_game [62]
-[1164]   0.0    0.00    0.00       1         read_planes [1164]
-                0.00    0.00      13/760673      addlist [217]
-                0.00    0.00      13/840577      read_attribs [388]
-                0.00    0.00      13/13          getplanebyid [1717]
-                0.00    0.00      13/51239       read_faction_reference [1455]
------------------------------------------------
-                0.00    0.00      58/58          add_resource [1162]
-[1165]   0.0    0.00    0.00      58         terraform_default [1165]
-                0.00    0.00     116/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00      10/10          read_triggers <cycle 4> [798]
-[1166]   0.0    0.00    0.00      10         changefaction_read [1166]
-                0.00    0.00      10/9763        read_reference [726]
-                0.00    0.00      10/51239       read_faction_reference [1455]
-                0.00    0.00      10/34565       ur_add [1472]
------------------------------------------------
-                0.00    0.00      43/43          combatspell_cmd [898]
-[1167]   0.0    0.00    0.00      43         unset_combatspell [1167]
-                0.00    0.00      43/2426021     get_mage [198]
------------------------------------------------
-                0.00    0.00       2/462         report_summary [614]
-                0.00    0.00     230/462         report_computer [9]
-                0.00    0.00     230/462         report_plaintext [4]
-[1168]   0.0    0.00    0.00     462         game_name [1168]
-                0.00    0.00     462/20777534     config_get [224]
------------------------------------------------
-                0.00    0.00      61/61          parse_equipment [1170]
-[1169]   0.0    0.00    0.00      61         add_items [1169]
-                0.00    0.00      66/1177511     it_find [385]
-                0.00    0.00      65/65          equipment_setitem [1664]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1170]   0.0    0.00    0.00       1         parse_equipment [1170]
-                0.00    0.00      61/61          add_items [1169]
-                0.00    0.00      61/73          create_equipment [1658]
-                0.00    0.00      61/61          add_callbacks [1666]
-                0.00    0.00      61/61          add_spells [1668]
-                0.00    0.00      61/61          add_skills [1667]
-                0.00    0.00      61/61          add_subsets [1669]
------------------------------------------------
-                0.00    0.00     231/231         remove_idle_players [391]
-[1171]   0.0    0.00    0.00     231         RemoveNMRNewbie [1171]
-                0.00    0.00     231/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00       1/1583        can_charm [1338]
-                0.00    0.00       4/1583        study_cmd [105]
-                0.00    0.00    1578/1583        build [691]
-[1172]   0.0    0.00    0.00    1583         skill_limit [1172]
-                0.00    0.00     226/4984610     config_get_int [348]
-                0.00    0.00    1583/1583        allied_skilllimit [1330]
------------------------------------------------
-                0.00    0.00      26/26          cast_cmd [760]
-[1173]   0.0    0.00    0.00      26         add_spellparameter [1173]
-                0.00    0.00      22/22          addparam_ship [1212]
-                0.00    0.00      16/16          addparam_unit [1214]
-                0.00    0.00       6/6           addparam_building [1261]
------------------------------------------------
-                0.00    0.00     125/125         chaos [848]
-[1174]   0.0    0.00    0.00     125         random_unit [1174]
-                0.00    0.00      31/71815034     get_race [12]
-                0.00    0.00      15/7641081     genrand_int31 [171]
-                0.00    0.00      31/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       1/207         init_processor [1310]
-                0.00    0.00     206/207         do_battle [64]
-[1175]   0.0    0.00    0.00     207         rule_force_leave [1175]
-                0.00    0.00     207/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      62/62          do_potion [941]
-[1176]   0.0    0.00    0.00      62         potion_luck [1176]
-                0.00    0.00      58/779419      a_add [555]
-                0.00    0.00      62/51974272     a_find [65]
-                0.00    0.00      58/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     432/432         get_tactics [1178]
-[1177]   0.0    0.00    0.00     432         helping [1177]
-                0.00    0.00      17/25          allysf [1160]
------------------------------------------------
-                0.00    0.00     378/378         battle_attacks [79]
-[1178]   0.0    0.00    0.00     378         get_tactics [1178]
-                0.00    0.00     432/432         helping [1177]
------------------------------------------------
-                0.00    0.00     107/107         json_keyword [1127]
-[1179]   0.0    0.00    0.00     107         init_keyword [1179]
-                0.00    0.00     107/371         add_translation [1145]
-                0.00    0.00     107/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00     191/191         enter_ship [733]
-[1180]   0.0    0.00    0.00     191         CheckOverload [1180]
-                0.00    0.00     191/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00     174/174         breed_cmd [741]
-[1181]   0.0    0.00    0.00     174         findresourcetype [1181]
-                0.00    0.00     174/4457785     transliterate [358]
-                0.00    0.00     174/2124526     locale_index [1354]
------------------------------------------------
-                0.00    0.00      54/54          parse_symbol <cycle 5> [42]
-[1182]   0.0    0.00    0.00      54         eval_add [1182]
-                0.00    0.00     108/13102790     opstack_pop [176]
-                0.00    0.00      54/13102790     opstack_push [202]
------------------------------------------------
-                0.00    0.00       7/191         parse_ships [1305]
-                0.00    0.00      27/191         parse_buildings [1131]
-                0.00    0.00     157/191         xml_readitem [1107]
-[1183]   0.0    0.00    0.00     191         xml_readconstruction [1183]
-                0.00    0.00      84/84          xml_readrequirements [1186]
-                0.00    0.00       1/779419      a_add [555]
-                0.00    0.00     504/5453        xml_ivalue [1533]
-                0.00    0.00      84/1041        findskill [1586]
-                0.00    0.00       1/465         get_function [1600]
-                0.00    0.00       1/2           make_skillmod [1777]
------------------------------------------------
-                0.00    0.00       1/1           breed_cmd [741]
-[1184]   0.0    0.00    0.00       1         plant [1184]
-                0.00    0.00       2/541982      get_pooled [104]
-                0.00    0.00       1/41248       msg_feedback [647]
-                0.00    0.00       1/12320804     effskill <cycle 1> [100]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/56052475     get_resourcetype [194]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     508/508         regeneration [942]
-[1185]   0.0    0.00    0.00     508         MagicRegeneration [1185]
-                0.00    0.00     508/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00      84/84          xml_readconstruction [1183]
-[1186]   0.0    0.00    0.00      84         xml_readrequirements [1186]
-                0.00    0.00     162/383         rt_get_or_create [1139]
-                0.00    0.00     162/5453        xml_ivalue [1533]
------------------------------------------------
-                0.00    0.00       1/3           do_combatmagic [825]
-                0.00    0.00       2/3           do_combatspell [702]
-[1187]   0.0    0.00    0.00       3         report_failed_spell [1187]
-                0.00    0.00       3/1486        message_all [834]
-                0.00    0.00       3/967784      msg_message [132]
-                0.00    0.00       3/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       6/6           sp_summonundead [896]
-[1188]   0.0    0.00    0.00       6         make_undead_unit [1188]
-                0.00    0.00       6/2931        name_unit [803]
-                0.00    0.00       6/1644867     free_orders [306]
------------------------------------------------
-                0.00    0.00      18/18          json_terrains [1190]
-[1189]   0.0    0.00    0.00      18         json_terrain [1189]
-                0.00    0.00      27/185         it_get_or_create [1115]
-                0.00    0.00      56/383         rt_get_or_create [1139]
-                0.00    0.00      29/29          json_terrain_production [1694]
-                0.00    0.00      18/18          json_flags [1707]
------------------------------------------------
-                0.00    0.00       1/1           json_config <cycle 2> [464]
-[1190]   0.0    0.00    0.00       1         json_terrains [1190]
-                0.00    0.00      18/18          json_terrain [1189]
-                0.00    0.00      18/52          get_or_create_terrain [1680]
------------------------------------------------
-                0.00    0.00      53/53          get_resource [99]
-[1191]   0.0    0.00    0.00      53         lua_getresource [1191]
-                0.00    0.00      53/34611296     strlcpy [45]
-                0.00    0.00      53/987128      strlcat [1374]
------------------------------------------------
-                0.00    0.00      52/52          msg_curse [664]
-[1192]   0.0    0.00    0.00      52         cinfo_skillmod [1192]
-                0.00    0.00       6/967784      msg_message [132]
------------------------------------------------
-                0.00    0.00       4/955         make_route [289]
-                0.00    0.00     951/955         sail [181]
-[1193]   0.0    0.00    0.00     955         movement_error [1193]
-                0.00    0.00       4/967784      msg_message [132]
-                0.00    0.00       4/293362      get_direction [496]
-                0.00    0.00       1/41248       msg_feedback [647]
------------------------------------------------
-                                                 <spontaneous>
-[1194]   0.0    0.00    0.00                 tolua_unit_get_name [1194]
-                0.00    0.00      86/3351853     unit_getname [332]
------------------------------------------------
-                0.00    0.00     196/499         magic [157]
-                0.00    0.00     303/499         create_castorder [1066]
-[1195]   0.0    0.00    0.00     499         MagicPower [1195]
-                0.00    0.00     279/20777534     config_get [224]
------------------------------------------------
-                0.00    0.00     266/266         age_unit [336]
-[1196]   0.0    0.00    0.00     266         age_undead [1196]
-                0.00    0.00      82/3902878     get_monsters [293]
------------------------------------------------
-                                                 <spontaneous>
-[1197]   0.0    0.00    0.00                 tolua_faction_get_locale [1197]
-                0.00    0.00       1/11719       locale_name [568]
------------------------------------------------
-                0.00    0.00      34/18059       battle_effects [1125]
-                0.00    0.00   18025/18059       chaos_update [514]
-[1198]   0.0    0.00    0.00   18059         add_chaoscount [1198]
-                0.00    0.00      89/51974272     a_find [65]
-                0.00    0.00       6/779419      a_add [555]
-                0.00    0.00       6/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     569/569         setstealth_cmd [182]
-[1199]   0.0    0.00    0.00     569         u_seteffstealth [1199]
-                0.00    0.00     569/21345834     skill_enabled [365]
-                0.00    0.00       2/51974272     a_find [65]
------------------------------------------------
-                0.00    0.00      15/15          change_resource [240]
-[1200]   0.0    0.00    0.00      15         res_changepeasants [1200]
-                0.00    0.00      15/264251      rsetpeasants [545]
-                0.00    0.00      30/2605004     rpeasants [435]
------------------------------------------------
-                0.00    0.00      30/30          monster_move [129]
-[1201]   0.0    0.00    0.00      30         treeman_neighbour [1201]
-                0.00    0.00      30/1087065     get_neighbours [480]
-                0.00    0.00      25/7641081     genrand_int31 [171]
-                0.00    0.00     533/560         oldterrain [1596]
------------------------------------------------
-                0.00    0.00       6/6           process [7]
-[1202]   0.0    0.00    0.00       6         send_cmd [1202]
-                0.00    0.00       6/6           findoption [1241]
-                0.00    0.00       6/69432       getparam [681]
-                0.00    0.00       6/2281756     gettoken [195]
-                0.00    0.00       6/1027665     init_order [613]
------------------------------------------------
-                0.00    0.00     505/505         matmod [975]
-[1203]   0.0    0.00    0.00     505         mm_smithy [1203]
-                0.00    0.00     505/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00       4/118         give_men [857]
-                0.00    0.00     114/118         give_unit [952]
-[1204]   0.0    0.00    0.00     118         rule_transfermen [1204]
-                0.00    0.00     118/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      58/58          init_translations [1033]
-[1205]   0.0    0.00    0.00      58         skill_key [1205]
-                0.00    0.00      58/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00       1/1           breedtrees [1148]
-[1206]   0.0    0.00    0.00       1         planttrees [1206]
-                0.00    0.00       1/541982      get_pooled [104]
-                0.00    0.00       1/41248       msg_feedback [647]
-                0.00    0.00       1/12320804     effskill <cycle 1> [100]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/56052475     get_resourcetype [194]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       1/1           write_game [83]
-[1207]   0.0    0.00    0.00       1         write_planes [1207]
-                0.00    0.00      13/841675      a_write [299]
-                0.00    0.00       1/1248014     listlen [190]
------------------------------------------------
-                                                 <spontaneous>
-[1208]   0.0    0.00    0.00                 tolua_get_nmrs [1208]
-                0.00    0.00       1/3           update_nmrs [1155]
-                0.00    0.00       1/27          NMRTimeout [1264]
------------------------------------------------
-                0.00    0.00       2/2           magic [157]
-[1209]   0.0    0.00    0.00       2         sp_bloodsacrifice [1209]
-                0.00    0.00       2/967784      msg_message [132]
-                0.00    0.00       2/12320804     effskill <cycle 1> [100]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00       2/1201        change_spellpoints [971]
-                0.00    0.00       2/201744      lovar [644]
-                0.00    0.00       2/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       6/6           tolua_msg_send_region [1211]
-[1210]   0.0    0.00    0.00       6         msg_send_region [1210]
-                0.00    0.00       6/1009159     msg_create [228]
-                0.00    0.00       6/392959      add_message [434]
------------------------------------------------
-                                                 <spontaneous>
-[1211]   0.0    0.00    0.00                 tolua_msg_send_region [1211]
-                0.00    0.00       6/6           msg_send_region [1210]
------------------------------------------------
-                0.00    0.00      22/22          add_spellparameter [1173]
-[1212]   0.0    0.00    0.00      22         addparam_ship [1212]
-                0.00    0.00      22/688711      atoi36 [440]
------------------------------------------------
-                0.00    0.00      48/48          chaos [848]
-[1213]   0.0    0.00    0.00      48         chaosterrain [1213]
-                0.00    0.00      48/7641081     genrand_int31 [171]
-                0.00    0.00       2/4           terrains [1760]
------------------------------------------------
-                0.00    0.00      16/16          add_spellparameter [1173]
-[1214]   0.0    0.00    0.00      16         addparam_unit [1214]
-                0.00    0.00      16/688711      atoi36 [440]
-                0.00    0.00      16/534930      isparam [668]
------------------------------------------------
-                0.00    0.00       3/3           read_triggers <cycle 4> [798]
-[1215]   0.0    0.00    0.00       3         changerace_read [1215]
-                0.00    0.00       3/9763        read_reference [726]
-                0.00    0.00       6/6           read_race_reference [1278]
------------------------------------------------
-                0.00    0.00    6787/6787        find_groupbyname [1217]
-[1216]   0.0    0.00    0.00    6787         unicode_utf8_strcasecmp [1216]
-                0.00    0.00     248/46391457     unicode_utf8_to_ucs4 [177]
------------------------------------------------
-                0.00    0.00     453/453         join_group [1083]
-[1217]   0.0    0.00    0.00     453         find_groupbyname [1217]
-                0.00    0.00    6787/6787        unicode_utf8_strcasecmp [1216]
------------------------------------------------
-                                                 <spontaneous>
-[1218]   0.0    0.00    0.00                 tolua_dict_get [1218]
-                0.00    0.00      58/51974272     a_find [65]
-                0.00    0.00      58/58          dict_name [1671]
-                0.00    0.00      58/58          dict_get [1670]
------------------------------------------------
-                0.00    0.00       1/1           sp_summon_familiar [1025]
-[1219]   0.0    0.00    0.00       1         make_familiar [1219]
-                0.00    0.00       1/1           oldfamiliars [1240]
-                0.00    0.00       1/1381157     unit_max_hp [136]
-                0.00    0.00       1/1           create_newfamiliar [1288]
-                0.00    0.00       2/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00      38/38          select_ally [1132]
-[1220]   0.0    0.00    0.00      38         count_allies [1220]
-                0.00    0.00      38/317239      count_side [666]
------------------------------------------------
-                0.00    0.00       6/6           volcano_update [981]
-[1221]   0.0    0.00    0.00       6         rrandneighbour [1221]
-                0.00    0.00       8/369586      r_connect [474]
-                0.00    0.00       6/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00       1/3           writeturn [1253]
-                0.00    0.00       2/3           report_summary [614]
-[1222]   0.0    0.00    0.00       3         gamedate2 [1222]
-                0.00    0.00       9/24887945     locale_string [27]
-                0.00    0.00       3/40692       get_gamedate [1466]
------------------------------------------------
-                0.00    0.00      88/88          hunger [808]
-[1223]   0.0    0.00    0.00      88         hunger_damage [1223]
-                0.00    0.00      73/20777534     config_get [224]
-                0.00    0.00      88/26776263     get_param [235]
------------------------------------------------
-                0.00    0.00       4/4           use_healingpotion [1119]
-[1224]   0.0    0.00    0.00       4         heal [1224]
-                0.00    0.00       4/1381157     unit_max_hp [136]
------------------------------------------------
-                0.00    0.00       4/4           name_cmd [835]
-[1225]   0.0    0.00    0.00       4         try_rename [1225]
-                0.00    0.00       3/593636      building_owner [232]
-                0.00    0.00       1/15102       cmistake [718]
------------------------------------------------
-                0.00    0.00      80/80          tolua_msg_set_resource [1227]
-[1226]   0.0    0.00    0.00      80         msg_set_resource [1226]
-                0.00    0.00      80/2032164     rt_find [597]
-                0.00    0.00      80/451         mtype_get_param [1602]
------------------------------------------------
-                                                 <spontaneous>
-[1227]   0.0    0.00    0.00                 tolua_msg_set_resource [1227]
-                0.00    0.00      80/80          msg_set_resource [1226]
------------------------------------------------
-                0.00    0.00       1/1           parse_resources [1086]
-[1228]   0.0    0.00    0.00       1         init_resources [1228]
-                0.00    0.00       1/1           init_oldpotions [1235]
-                0.00    0.00       6/383         rt_get_or_create [1139]
-                0.00    0.00       1/185         it_get_or_create [1115]
------------------------------------------------
-                0.00    0.00       2/2           create_ship [1014]
-[1229]   0.0    0.00    0.00       2         new_ship [1229]
-                0.00    0.00       2/760673      addlist [217]
-                0.00    0.00       2/24887945     locale_string [27]
-                0.00    0.00       2/5100840     itoa36 [116]
-                0.00    0.00       2/13          newcontainerid [1263]
-                0.00    0.00       2/5461936     slprintf [548]
-                0.00    0.00       2/19085       shash [1502]
------------------------------------------------
-                0.00    0.00       1/1           destroy_cmd [1113]
-[1230]   0.0    0.00    0.00       1         destroy_road [1230]
-                0.00    0.00       1/22          rsetroad [1152]
-                0.00    0.00       1/143730      rroad [508]
-                0.00    0.00       1/12320804     effskill <cycle 1> [100]
-                0.00    0.00       1/293362      get_direction [496]
-                0.00    0.00       1/2281756     gettoken [195]
-                0.00    0.00       3/6610983     is_guard [211]
------------------------------------------------
-                0.00    0.00      24/24          cast_cmd [760]
-[1231]   0.0    0.00    0.00      24         is_moving_ship [1231]
-                0.00    0.00      24/55492327     getkeyword [54]
-                0.00    0.00      24/3358315     ship_owner [438]
------------------------------------------------
-                0.00    0.00      10/10          spawn_dragons [411]
-[1232]   0.0    0.00    0.00      10         nrand [1232]
-                0.00    0.00      27/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00       1/1           use_item [765]
-[1233]   0.0    0.00    0.00       1         use_skillpotion [1233]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       7/892307      learn_skill [471]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00     111/111         steal_cmd [766]
-[1234]   0.0    0.00    0.00     111         check_steal [1234]
-                0.00    0.00     111/129167539     u_race [89]
-                0.00    0.00     111/18647447     getplane [596]
------------------------------------------------
-                0.00    0.00       1/1           init_resources [1228]
-[1235]   0.0    0.00    0.00       1         init_oldpotions [1235]
-                0.00    0.00      15/1177511     it_find [385]
------------------------------------------------
-                0.00    0.00     143/143         update_resource [1237]
-[1236]   0.0    0.00    0.00     143         ResourceFactor [1236]
-                0.00    0.00     143/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00      58/143         add_resource [1162]
-                0.00    0.00      85/143         use_default [1149]
-[1237]   0.0    0.00    0.00     143         update_resource [1237]
-                0.00    0.00     143/143         ResourceFactor [1236]
------------------------------------------------
-                0.00    0.00       2/2           a_read_i [390]
-[1238]   0.0    0.00    0.00       2         wormhole_read [1238]
-                0.00    0.00       2/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00       8/8           skillmod <cycle 1> [214]
-[1239]   0.0    0.00    0.00       8         mod_elves_only [1239]
-                0.00    0.00       8/71815034     get_race [12]
-                0.00    0.00       8/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       1/1           make_familiar [1219]
-[1240]   0.0    0.00    0.00       1         oldfamiliars [1240]
-                0.00    0.00       1/2375        equip_unit [775]
-                0.00    0.00       1/1           create_mage [1315]
-                0.00    0.00       1/129167539     u_race [89]
-                0.00    0.00       1/2742        get_equipment [1551]
------------------------------------------------
-                0.00    0.00       6/6           send_cmd [1202]
-[1241]   0.0    0.00    0.00       6         findoption [1241]
-                0.00    0.00       6/302482      findtoken [501]
-                0.00    0.00       6/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00       2/2           process [7]
-[1242]   0.0    0.00    0.00       2         claim_cmd [1242]
-                0.00    0.00       3/2281756     gettoken [195]
-                0.00    0.00       4/11241829     i_change [115]
-                0.00    0.00       2/6010308     i_find [127]
-                0.00    0.00       2/1027665     init_order [613]
-                0.00    0.00       2/191379      finditemtype [735]
------------------------------------------------
-                0.00    0.00       5/49317       log_warning [1342]
-                0.00    0.00      13/49317       log_error [1340]
-                0.00    0.00      64/49317       log_info [1339]
-                0.00    0.00   49235/49317       log_debug [1245]
-[1243]   0.0    0.00    0.00   49317         log_write [1243]
-                0.00    0.00      18/18          check_dupe [1244]
-                0.00    0.00   49331/49331       log_stdio [1459]
------------------------------------------------
-                0.00    0.00      18/18          log_write [1243]
-[1244]   0.0    0.00    0.00      18         check_dupe [1244]
-                0.00    0.00      15/34611296     strlcpy [45]
------------------------------------------------
-                0.00    0.00       1/49235       parse_config [1292]
-                0.00    0.00       1/49235       eressea_run [1346]
-                0.00    0.00       1/49235       give_men [857]
-                0.00    0.00       1/49235       disable_feature [771]
-                0.00    0.00       2/49235       readgame [60]
-                0.00    0.00       4/49235       tolua_log_eressea_log_debug00 [1343]
-                0.00    0.00       5/49235       factionorders [983]
-                0.00    0.00      10/49235       spawn_dragons [411]
-                0.00    0.00      50/49235       rsetherbtype [537]
-                0.00    0.00      52/49235       update_nmrs [1155]
-                0.00    0.00      68/49235       process [7]
-                0.00    0.00      92/49235       spawn_undead [629]
-                0.00    0.00     176/49235       write_game [83]
-                0.00    0.00     182/49235       read_game [62]
-                0.00    0.00     206/49235       do_battle [64]
-                0.00    0.00     232/49235       write_reports [3]
-                0.00    0.00     233/49235       readfaction [767]
-                0.00    0.00    6664/49235       findtoken [501]
-                0.00    0.00   41255/49235       log_orders [251]
-[1245]   0.0    0.00    0.00   49235         log_debug [1245]
-                0.00    0.00   49235/49317       log_write [1243]
------------------------------------------------
-                                                 <spontaneous>
-[1246]   0.0    0.00    0.00                 tolua_faction_get [1246]
-                0.00    0.00      12/13          tolua_toid [1274]
-                0.00    0.00      12/4625636     findfaction [259]
------------------------------------------------
-                0.00    0.00      36/36          move_iceberg [1094]
-[1247]   0.0    0.00    0.00      36         runhash [1247]
-                0.00    0.00      36/2903884     jenkins_hash [439]
------------------------------------------------
-                0.00    0.00     230/230         report_computer [9]
-[1248]   0.0    0.00    0.00     230         show_alliances_cr [1248]
-                0.00    0.00     230/20836359     f_get_alliance [455]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1249]   0.0    0.00    0.00       1         game_init [1249]
-                0.00    0.00       1/1           register_spells [1251]
-                0.00    0.00       1/1           register_triggers [1855]
-                0.00    0.00       1/1           kernel_init [1814]
-                0.00    0.00       1/1           register_races [1849]
-                0.00    0.00       1/1           register_cr [1838]
-                0.00    0.00       1/1           register_nr [1847]
-                0.00    0.00       1/1           register_xmas [1859]
-                0.00    0.00       1/1           register_resources [1852]
-                0.00    0.00       1/1           register_names [1846]
-                0.00    0.00       1/1           register_museum [1845]
-                0.00    0.00       1/1           register_itemfunctions [1842]
-                0.00    0.00       1/1           register_buildings [1837]
-                0.00    0.00       1/1           register_itemtypes [1843]
-                0.00    0.00       1/1           wormholes_register [1895]
-                0.00    0.00       1/1           register_arena [1832]
-                0.00    0.00       1/1           register_gmcmd [1841]
-                0.00    0.00       1/1           register_attributes [1834]
-                0.00    0.00       1/1           register_xmlreader [1860]
-                0.00    0.00       1/1           chaos_register [1797]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1250]   0.0    0.00    0.00       1         register_spelldata [1250]
-                0.00    0.00      12/34611296     strlcpy [45]
-                0.00    0.00     151/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1251]   0.0    0.00    0.00       1         register_spells [1251]
-                0.00    0.00       1/1           register_spelldata [1250]
-                0.00    0.00       5/240         register_function [1614]
-                0.00    0.00       2/55          at_register [1678]
-                0.00    0.00       2/44          ct_register [1686]
-                0.00    0.00       1/1           register_borders [1835]
-                0.00    0.00       1/1           register_shipcurse [1853]
-                0.00    0.00       1/1           register_regioncurse [1850]
-                0.00    0.00       1/1           register_unitcurse [1856]
-                0.00    0.00       1/1           register_flyingship [1840]
-                0.00    0.00       1/1           register_magicresistance [1844]
-                0.00    0.00       1/1           register_buildingcurse [1836]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1252]   0.0    0.00    0.00       1         parse_calendar [1252]
-                0.00    0.00      18/4133717     mkname [261]
-                0.00    0.00      11/5453        xml_ivalue [1533]
------------------------------------------------
-                0.00    0.00       1/1           report_summary [614]
-[1253]   0.0    0.00    0.00       1         writeturn [1253]
-                0.00    0.00       1/3           gamedate2 [1222]
-                0.00    0.00       2/573         join_path [1016]
-                0.00    0.00       2/9           basepath [1730]
------------------------------------------------
-                                                 <spontaneous>
-[1254]   0.0    0.00    0.00                 tolua_get_unit [1254]
-                0.00    0.00       1/888603      findunit [123]
-                0.00    0.00       1/13          tolua_toid [1274]
------------------------------------------------
-                0.00    0.00       4/4           verify_targets [1027]
-[1255]   0.0    0.00    0.00       4         verify_building [1255]
-                0.00    0.00       1/967784      msg_message [132]
-                0.00    0.00       1/392959      add_message [434]
-                0.00    0.00       4/48455       findbuilding [1462]
-                0.00    0.00       1/1009028     msg_release [1373]
------------------------------------------------
-                                                 <spontaneous>
-[1256]   0.0    0.00    0.00                 tolua_unit_addnotice [1256]
-                0.00    0.00       1/48          addmessage [1069]
------------------------------------------------
-                                                 <spontaneous>
-[1257]   0.0    0.00    0.00                 tolua_faction_tostring [1257]
-                0.00    0.00       5/1295787     factionname [247]
------------------------------------------------
-                0.00    0.00      12/12          write_triggers <cycle 3> [954]
-[1258]   0.0    0.00    0.00      12         changefaction_write [1258]
-                0.00    0.00      12/604861      write_unit_reference [557]
-                0.00    0.00      12/647569      write_faction_reference [1382]
------------------------------------------------
-                0.00    0.00       2/2           init_directions [1143]
-[1259]   0.0    0.00    0.00       2         register_special_direction [1259]
-                0.00    0.00       2/24887945     locale_string [27]
-                0.00    0.00       2/8993        addtoken [811]
-                0.00    0.00       2/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00       1/11          use_bloodpotion [935]
-                0.00    0.00       2/11          do_fumble [1062]
-                0.00    0.00       2/11          create_newfamiliar [1288]
-                0.00    0.00       6/11          sp_charmingsong [993]
-[1260]   0.0    0.00    0.00      11         add_trigger [1260]
-                0.00    0.00      11/51974272     a_find [65]
-                0.00    0.00       7/779419      a_add [555]
-                0.00    0.00       7/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       6/6           add_spellparameter [1173]
-[1261]   0.0    0.00    0.00       6         addparam_building [1261]
-                0.00    0.00       6/688711      atoi36 [440]
------------------------------------------------
-                0.00    0.00       1/1           read_triggers <cycle 4> [798]
-[1262]   0.0    0.00    0.00       1         giveitem_read [1262]
-                0.00    0.00       1/9763        read_reference [726]
-                0.00    0.00       1/1177511     it_find [385]
------------------------------------------------
-                0.00    0.00       2/13          new_ship [1229]
-                0.00    0.00      11/13          new_building [1059]
-[1263]   0.0    0.00    0.00      13         newcontainerid [1263]
-                0.00    0.00      13/7641081     genrand_int31 [171]
-                0.00    0.00      16/28818       findship [1483]
-                0.00    0.00      16/48455       findbuilding [1462]
------------------------------------------------
-                0.00    0.00       1/27          tolua_get_nmrs [1208]
-                0.00    0.00       1/27          remove_idle_players [391]
-                0.00    0.00       2/27          report_summary [614]
-                0.00    0.00       3/27          update_nmrs [1155]
-                0.00    0.00      20/27          nmr_warnings [878]
-[1264]   0.0    0.00    0.00      27         NMRTimeout [1264]
-                0.00    0.00      27/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00      13/13          create_curse [800]
-[1265]   0.0    0.00    0.00      13         set_curseingmagician [1265]
-                0.00    0.00      13/10190660     get_curse [143]
------------------------------------------------
-                0.00    0.00      23/23          xml_readitem [1107]
-[1266]   0.0    0.00    0.00      23         xml_readweapon [1266]
-                0.00    0.00       3/68430117     rc_find [15]
-                0.00    0.00       2/150         rc_get_or_create [1105]
-                0.00    0.00     303/6576        xml_bvalue [1532]
-                0.00    0.00     108/5453        xml_ivalue [1533]
-                0.00    0.00      23/501         xml_fvalue [1599]
-                0.00    0.00      23/1041        findskill [1586]
-                0.00    0.00      23/23          new_weapontype [1703]
-                0.00    0.00       3/3           racelist_insert [1766]
-                0.00    0.00       3/178         parse_function [1637]
------------------------------------------------
-                0.00    0.00       1/1           remove_unit [499]
-[1267]   0.0    0.00    0.00       1         make_zombie [1267]
-                0.00    0.00       1/1381157     unit_max_hp [136]
-                0.00    0.00       1/71815034     get_race [12]
-                0.00    0.00       1/3178        scale_number [969]
-                0.00    0.00       1/3902878     get_monsters [293]
-                0.00    0.00       1/598129      u_setfaction [1111]
-                0.00    0.00       1/600145      u_setrace [1389]
------------------------------------------------
-                0.00    0.00     286/286         factionorders [983]
-[1268]   0.0    0.00    0.00     286         checkpasswd [1268]
-                0.00    0.00       4/1295787     factionname [247]
-                0.00    0.00       4/5           log_warning [1342]
-                0.00    0.00     286/286         password_verify [1610]
------------------------------------------------
-                0.00    0.00       7/7           sp_healing [989]
-[1269]   0.0    0.00    0.00       7         has_ao_healing [1269]
-                0.00    0.00       7/1177511     it_find [385]
-                0.00    0.00       7/7           i_findc [1737]
------------------------------------------------
-                0.00    0.00       1/1           read_triggers <cycle 4> [798]
-[1270]   0.0    0.00    0.00       1         caldera_read [1270]
-                0.00    0.00       1/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00       1/1           read_triggers <cycle 4> [798]
-[1271]   0.0    0.00    0.00       1         clonedied_read [1271]
-                0.00    0.00       1/9763        read_reference [726]
------------------------------------------------
-                0.00    0.00       1/1           do_battles [63]
-[1272]   0.0    0.00    0.00       1         init_rules [1272]
-                0.00    0.00      16/4984610     config_get_int [348]
-                0.00    0.00       3/12246335     ct_find [114]
------------------------------------------------
-                0.00    0.00      60/60          damage_unit [1044]
-[1273]   0.0    0.00    0.00      60         nb_armor [1273]
-                0.00    0.00      60/129167539     u_race [89]
------------------------------------------------
-                0.00    0.00       1/13          tolua_get_unit [1254]
-                0.00    0.00      12/13          tolua_faction_get [1246]
-[1274]   0.0    0.00    0.00      13         tolua_toid [1274]
-                0.00    0.00       5/688711      atoi36 [440]
------------------------------------------------
-                0.00    0.00       2/6           json_keywords [1124]
-                0.00    0.00       2/6           make_locales [1303]
-                0.00    0.00       2/6           init_locales [947]
-[1275]   0.0    0.00    0.00       6         get_or_create_locale [1275]
-                0.00    0.00       6/32337529     hashstring [37]
------------------------------------------------
-                                                 <spontaneous>
-[1276]   0.0    0.00    0.00                 tolua_unit_add_order [1276]
-                0.00    0.00       1/1481407     parse_order [117]
-                0.00    0.00       1/48          unit_addorder [1684]
------------------------------------------------
-                0.00    0.00      58/58          peasant_luck_effect [984]
-[1277]   0.0    0.00    0.00      58         peasant_luck_factor [1277]
-                0.00    0.00      58/717218      config_get_flt [714]
------------------------------------------------
-                0.00    0.00       6/6           changerace_read [1215]
-[1278]   0.0    0.00    0.00       6         read_race_reference [1278]
-                0.00    0.00       4/68430271     rc_find_i [16]
------------------------------------------------
-                0.00    0.00       2/2           border_name [641]
-[1279]   0.0    0.00    0.00       2         b_namequestportal [1279]
-                0.00    0.00       2/24887945     locale_string [27]
-                0.00    0.00       2/4133717     mkname [261]
------------------------------------------------
-                0.00    0.00      38/3002        renumber_cmd [780]
-                0.00    0.00     146/3002        createunitid [317]
-                0.00    0.00    2818/3002        newunitid [319]
-[1280]   0.0    0.00    0.00    3002         forbiddenid [1280]
-                0.00    0.00       4/688711      atoi36 [440]
------------------------------------------------
-                                                 <spontaneous>
-[1281]   0.0    0.00    0.00                 tolua_getkey [1281]
-                0.00    0.00       3/688711      atoi36 [440]
-                0.00    0.00       3/178257      key_get [719]
------------------------------------------------
-                0.00    0.00     206/206         start_battle [297]
-[1282]   0.0    0.00    0.00     206         make_battle [1282]
-                0.00    0.00     206/18647447     getplane [596]
------------------------------------------------
-                                   1             json_config <cycle 2> [464]
-[1283]   0.0    0.00    0.00       1         json_include <cycle 2> [1283]
-                0.00    0.00       3/573         join_path [1016]
-                                   3             json_config <cycle 2> [464]
------------------------------------------------
-                0.00    0.00       1/1           do_fumble [1062]
-[1284]   0.0    0.00    0.00       1         fumble_default [1284]
-                0.00    0.00       1/15102       cmistake [718]
------------------------------------------------
-                0.00    0.00       1/1           sp_charmingsong [993]
-[1285]   0.0    0.00    0.00       1         report_failure [1285]
-                0.00    0.00       1/15102       cmistake [718]
------------------------------------------------
-                0.00    0.00      12/12          drifting_ships [490]
-[1286]   0.0    0.00    0.00      12         msg_to_ship_inmates [1286]
-                0.00    0.00       2/392959      add_message [434]
-                0.00    0.00      12/1009028     msg_release [1373]
------------------------------------------------
-                0.00    0.00       6/6           write_triggers <cycle 3> [954]
-[1287]   0.0    0.00    0.00       6         changerace_write [1287]
-                0.00    0.00       6/604861      write_unit_reference [557]
-                0.00    0.00      12/12          write_race_reference [1723]
------------------------------------------------
-                0.00    0.00       1/1           make_familiar [1219]
-[1288]   0.0    0.00    0.00       1         create_newfamiliar [1288]
-                0.00    0.00       3/779419      a_add [555]
-                0.00    0.00       2/11          add_trigger [1260]
-                0.00    0.00       3/51974272     a_find [65]
-                0.00    0.00       3/779868      a_new [1376]
-                0.00    0.00       1/5           trigger_killunit [1752]
-                0.00    0.00       1/1           trigger_shock [1892]
------------------------------------------------
-                0.00    0.00       1/5           load_inifile [1293]
-                0.00    0.00       1/5           readgame [60]
-                0.00    0.00       1/5           writegame [82]
-                0.00    0.00       2/5           create_directories [1294]
-[1289]   0.0    0.00    0.00       5         datapath [1289]
-                0.00    0.00       5/569         relpath [1061]
------------------------------------------------
-                0.00    0.00       1/1           ally_cmd [877]
-[1290]   0.0    0.00    0.00       1         removelist [1290]
-                0.00    0.00       1/113845      choplist [565]
------------------------------------------------
-                                                 <spontaneous>
-[1291]   0.0    0.00    0.00                 tolua_region_tostring [1291]
-                0.00    0.00       1/361         regionname [987]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1292]   0.0    0.00    0.00       1         parse_config [1292]
-                0.00    0.00       1/1           load_inifile [1293]
-                0.00    0.00       1/49235       log_debug [1245]
------------------------------------------------
-                0.00    0.00       1/1           parse_config [1292]
-[1293]   0.0    0.00    0.00       1         load_inifile [1293]
-                0.00    0.00       1/1           make_locales [1303]
-                0.00    0.00       1/5           datapath [1289]
-                0.00    0.00       1/564         reportpath [1063]
-                0.00    0.00       1/9           basepath [1730]
------------------------------------------------
-                0.00    0.00       1/2           init_reports [399]
-                0.00    0.00       1/2           writegame [82]
-[1294]   0.0    0.00    0.00       2         create_directories [1294]
-                0.00    0.00       2/5           datapath [1289]
-                0.00    0.00       2/564         reportpath [1063]
------------------------------------------------
-                0.00    0.00      30/30          drifting_ships [490]
-[1295]   0.0    0.00    0.00      30         overload_start [1295]
-                0.00    0.00      30/717218      config_get_flt [714]
------------------------------------------------
-                                                 <spontaneous>
-[1296]   0.0    0.00    0.00                 tolua_get_region [1296]
-                0.00    0.00       1/459083      findregion [420]
-                0.00    0.00       1/1206547     findplane [457]
-                0.00    0.00       1/3587241     pnormalize [1350]
------------------------------------------------
-                0.00    0.00       1/3           use_bloodpotion [935]
-                0.00    0.00       2/3           do_fumble [1062]
-[1297]   0.0    0.00    0.00       3         trigger_changerace [1297]
-                0.00    0.00       3/2868601     u_irace [257]
-                0.00    0.00       3/129167539     u_race [89]
-                0.00    0.00       3/3113        t_new [1546]
------------------------------------------------
-                0.00    0.00     206/206         do_battle [64]
-[1298]   0.0    0.00    0.00     206         make_heroes [1298]
-                0.00    0.00      24/129167539     u_race [89]
------------------------------------------------
-                                                 <spontaneous>
-[1299]   0.0    0.00    0.00                 tolua_atoi36 [1299]
-                0.00    0.00       2/688711      atoi36 [440]
------------------------------------------------
-                                                 <spontaneous>
-[1300]   0.0    0.00    0.00                 tolua_unit_tostring [1300]
-                0.00    0.00       1/2383101     unitname [142]
------------------------------------------------
-                0.00    0.00       1/1           sp_holyground [1068]
-[1301]   0.0    0.00    0.00       1         report_spell [1301]
-                0.00    0.00       1/12265       r_addmessage [779]
------------------------------------------------
-                                                 <spontaneous>
-[1302]   0.0    0.00    0.00                 tolua_region_get_next [1302]
-                0.00    0.00       1/369586      r_connect [474]
------------------------------------------------
-                0.00    0.00       1/1           load_inifile [1293]
-[1303]   0.0    0.00    0.00       1         make_locales [1303]
-                0.00    0.00       2/6           get_or_create_locale [1275]
------------------------------------------------
-                0.00    0.00       1/1           movewhere [350]
-[1304]   0.0    0.00    0.00       1         get_translation [1304]
-                0.00    0.00       1/302482      findtoken [501]
-                0.00    0.00       1/4558423     get_translations [437]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1305]   0.0    0.00    0.00       1         parse_ships [1305]
-                0.00    0.00       7/191         xml_readconstruction [1183]
-                0.00    0.00      63/5453        xml_ivalue [1533]
-                0.00    0.00      34/52          get_or_create_terrain [1680]
-                0.00    0.00      21/6576        xml_bvalue [1532]
-                0.00    0.00      14/501         xml_fvalue [1599]
-                0.00    0.00       7/7           st_get_or_create [1743]
------------------------------------------------
-                                                 <spontaneous>
-[1306]   0.0    0.00    0.00                 tolua_building_tostring [1306]
-                0.00    0.00       1/180818      buildingname [621]
------------------------------------------------
-                0.00    0.00       1/1           parse_resources [1086]
-[1307]   0.0    0.00    0.00       1         init_itemtypes [1307]
-                0.00    0.00       1/1           init_seed [1320]
-                0.00    0.00       1/1           init_mallornseed [1319]
------------------------------------------------
-                0.00    0.00       1/1           age_unit [336]
-[1308]   0.0    0.00    0.00       1         age_illusion [1308]
-                0.00    0.00       1/71815034     get_race [12]
------------------------------------------------
-                0.00    0.00       2/2           write_triggers <cycle 3> [954]
-[1309]   0.0    0.00    0.00       2         giveitem_write [1309]
-                0.00    0.00       2/604861      write_unit_reference [557]
------------------------------------------------
-                0.00    0.00       1/1           processorders [6]
-[1310]   0.0    0.00    0.00       1         init_processor [1310]
-                0.00    0.00       4/4984610     config_get_int [348]
-                0.00    0.00       1/207         rule_force_leave [1175]
-                0.00    0.00      29/29          add_proc_order [1692]
-                0.00    0.00      13/13          add_proc_global [1716]
-                0.00    0.00       8/8           add_proc_region [1733]
-                0.00    0.00       6/11194781     keyword_disabled [1348]
-                0.00    0.00       3/3           add_proc_unit [1762]
-                0.00    0.00       3/3           add_proc_postregion [1761]
------------------------------------------------
-                0.00    0.00       1/1           game_done [542]
-[1311]   0.0    0.00    0.00       1         free_locales [1311]
-                0.00    0.00       6/4558423     get_translations [437]
-                0.00    0.00      12/267         freetokens [1611]
------------------------------------------------
-                0.00    0.00       1/1           parse_buildings [1131]
-[1312]   0.0    0.00    0.00       1         init_smithy [1312]
-                0.00    0.00       2/779419      a_add [555]
-                0.00    0.00       1/2           make_skillmod [1777]
-                0.00    0.00       1/1           make_matmod [1821]
------------------------------------------------
-                                                 <spontaneous>
-[1313]   0.0    0.00    0.00                 tolua_unit_clear_orders [1313]
-                0.00    0.00       1/1644867     free_orders [306]
------------------------------------------------
-                0.00    0.00       1/1           read_attribs [388]
-[1314]   0.0    0.00    0.00       1         a_upgradekeys [1314]
-                0.00    0.00       1/779419      a_add [555]
-                0.00    0.00       1/51974272     a_find [65]
-                0.00    0.00       1/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       1/1           oldfamiliars [1240]
-[1315]   0.0    0.00    0.00       1         create_mage [1315]
-                0.00    0.00       1/779419      a_add [555]
-                0.00    0.00       1/51974272     a_find [65]
-                0.00    0.00       1/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1316]   0.0    0.00    0.00       1         lua_init [1316]
-                0.00    0.00       1/1           tolua_bindings_open [1318]
-                0.00    0.00       2/2           tolua_unit_open [1782]
-                0.00    0.00       1/1           openlibs [1824]
-                0.00    0.00       1/1           register_tolua_helpers [1854]
-                0.00    0.00       1/2           tolua_eressea_open [1780]
-                0.00    0.00       1/1           tolua_sqlite_open [1887]
-                0.00    0.00       1/1           tolua_building_open [1867]
-                0.00    0.00       1/1           tolua_ship_open [1886]
-                0.00    0.00       1/1           tolua_region_open [1884]
-                0.00    0.00       1/1           tolua_faction_open [1870]
-                0.00    0.00       1/1           tolua_message_open [1875]
-                0.00    0.00       1/1           tolua_order_open [1876]
-                0.00    0.00       1/1           tolua_gmtool_open [1872]
-                0.00    0.00       1/1           tolua_dict_open [1869]
-                0.00    0.00       1/1           tolua_storage_open [1888]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bindings_open [1318]
-[1317]   0.0    0.00    0.00       1         parse_inifile [1317]
-                0.00    0.00       1/564         reportpath [1063]
-                0.00    0.00       1/20777534     config_get [224]
-                0.00    0.00       1/9           basepath [1730]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1318]   0.0    0.00    0.00       1         tolua_bindings_open [1318]
-                0.00    0.00       1/1           parse_inifile [1317]
-                0.00    0.00       1/1           tolua_bind_open [1866]
------------------------------------------------
-                0.00    0.00       1/1           init_itemtypes [1307]
-[1319]   0.0    0.00    0.00       1         init_mallornseed [1319]
-                0.00    0.00       1/779419      a_add [555]
-                0.00    0.00       1/2032164     rt_find [597]
-                0.00    0.00       1/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       1/1           init_itemtypes [1307]
-[1320]   0.0    0.00    0.00       1         init_seed [1320]
-                0.00    0.00       1/779419      a_add [555]
-                0.00    0.00       1/2032164     rt_find [597]
-                0.00    0.00       1/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       1/1           write_triggers <cycle 3> [954]
-[1321]   0.0    0.00    0.00       1         clonedied_write [1321]
-                0.00    0.00       1/604861      write_unit_reference [557]
------------------------------------------------
-                0.00    0.00       1/1           sp_summon_familiar [1025]
-[1322]   0.0    0.00    0.00       1         select_familiar [1322]
-                0.00    0.00       1/7641081     genrand_int31 [171]
------------------------------------------------
-                0.00    0.00       5/1613387     get_cmp_region_owner [1347]
-                0.00    0.00     233/1613387     readfaction [767]
-                0.00    0.00   36937/1613387     cr_output_region [10]
-                0.00    0.00  127676/1613387     describe [35]
-                0.00    0.00  178254/1613387     ageing [185]
-                0.00    0.00  356508/1613387     score [23]
-                0.00    0.00  913774/1613387     is_guardian_r [186]
-[1323]   0.0    0.00    0.00 1613387         rule_region_owners [1323]
-                0.00    0.00       2/4984610     config_get_int [348]
-                0.00    0.00 1613387/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00       1/2           read_game [62]
-                0.00    0.00       1/2           write_game [83]
-[1324]   0.0    0.00    0.00       2         game_id [1324]
-                0.00    0.00       2/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00       2/154110      sp_charmingsong [993]
-                0.00    0.00     230/154110      setstealth_cmd [182]
-                0.00    0.00  153878/154110      read_unit [74]
-[1325]   0.0    0.00    0.00  154110         rule_stealth_anon [1325]
-                0.00    0.00       2/4984610     config_get_int [348]
-                0.00    0.00  154110/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00       5/5           chaos [848]
-[1326]   0.0    0.00    0.00       5         set_money [1326]
-                0.00    0.00       5/56052475     get_resourcetype [194]
-                0.00    0.00       5/822780      i_new [1375]
-                0.00    0.00       5/87004       i_add [1442]
------------------------------------------------
-                0.00    0.00   82525/508632      expandwork [277]
-                0.00    0.00  426107/508632      default_wage [173]
-[1327]   0.0    0.00    0.00  508632         rule_blessed_harvest [1327]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00  508632/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00    1803/103079      gift_items [891]
-                0.00    0.00  101276/103079      can_give [1335]
-[1328]   0.0    0.00    0.00  103079         rule_give [1328]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00  103079/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00       4/3003        steal_cmd [766]
-                0.00    0.00      61/3003        build [691]
-                0.00    0.00    2938/3003        allocate_resource [752]
-[1329]   0.0    0.00    0.00    3003         roqf_factor [1329]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00    3003/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00    1583/1583        skill_limit [1172]
-[1330]   0.0    0.00    0.00    1583         allied_skilllimit [1330]
-                0.00    0.00       1/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00     230/1214        report_computer [9]
-                0.00    0.00     230/1214        report_plaintext [4]
-                0.00    0.00     754/1214        checkunitnumber [402]
-[1331]   0.0    0.00    0.00    1214         rule_faction_limit [1331]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00    1214/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00     754/754         checkunitnumber [402]
-[1332]   0.0    0.00    0.00     754         rule_alliance_limit [1332]
-                0.00    0.00       1/4984610     config_get_int [348]
-                0.00    0.00     754/2386892     config_changed [1352]
------------------------------------------------
-                0.00    0.00       1/1           remove_idle_players [391]
-[1333]   0.0    0.00    0.00       1         nmr_death [1333]
-                0.00    0.00       1/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00       1/1           economics [78]
-[1334]   0.0    0.00    0.00       1         recruit_init [1334]
-                0.00    0.00       1/4984610     config_get_int [348]
------------------------------------------------
-                0.00    0.00  102761/217696      check_give [1138]
-                0.00    0.00  114935/217696      give_cmd [102]
-[1335]   0.0    0.00    0.00  217696         can_give [1335]
-                0.00    0.00  101276/103079      rule_give [1328]
------------------------------------------------
-                0.00    0.00       1/1           magic [157]
-[1336]   0.0    0.00    0.00       1         sp_seduce [1336]
-                0.00    0.00       1/129167539     u_race [89]
-                0.00    0.00       1/56052475     get_resourcetype [194]
------------------------------------------------
-                0.00    0.00       1/3           sp_enterastral [1045]
-                0.00    0.00       2/3           sp_viewreality [784]
-[1337]   0.0    0.00    0.00       3         getplaneid [1337]
-                0.00    0.00       3/18647447     getplane [596]
------------------------------------------------
-                0.00    0.00       3/3           sp_charmingsong [993]
-[1338]   0.0    0.00    0.00       3         can_charm [1338]
-                0.00    0.00       1/1583        skill_limit [1172]
------------------------------------------------
-                0.00    0.00       1/64          reports [2]
-                0.00    0.00       1/64          immigration [294]
-                0.00    0.00       1/64          processorders [6]
-                0.00    0.00       1/64          writepasswd [1074]
-                0.00    0.00       1/64          disable_feature [771]
-                0.00    0.00       2/64          remove_idle_players [391]
-                0.00    0.00       2/64          sp_igjarjuk [923]
-                0.00    0.00       2/64          readorders [43]
-                0.00    0.00       3/64          report_summary [614]
-                0.00    0.00      10/64          tolua_log_eressea_log_info00 [1341]
-                0.00    0.00      40/64          write_unit [97]
-[1339]   0.0    0.00    0.00      64         log_info [1339]
-                0.00    0.00      64/49317       log_write [1243]
------------------------------------------------
-                0.00    0.00       1/13          tolua_log_eressea_log_error00 [1344]
-                0.00    0.00      12/13          read_game [62]
-[1340]   0.0    0.00    0.00      13         log_error [1340]
-                0.00    0.00      13/49317       log_write [1243]
------------------------------------------------
-                                                 <spontaneous>
-[1341]   0.0    0.00    0.00                 tolua_log_eressea_log_info00 [1341]
-                0.00    0.00      10/64          log_info [1339]
------------------------------------------------
-                0.00    0.00       1/5           tolua_log_eressea_log_warning00 [1345]
-                0.00    0.00       4/5           checkpasswd [1268]
-[1342]   0.0    0.00    0.00       5         log_warning [1342]
-                0.00    0.00       5/49317       log_write [1243]
------------------------------------------------
-                                                 <spontaneous>
-[1343]   0.0    0.00    0.00                 tolua_log_eressea_log_debug00 [1343]
-                0.00    0.00       4/49235       log_debug [1245]
------------------------------------------------
-                                                 <spontaneous>
-[1344]   0.0    0.00    0.00                 tolua_log_eressea_log_error00 [1344]
-                0.00    0.00       1/13          log_error [1340]
------------------------------------------------
-                                                 <spontaneous>
-[1345]   0.0    0.00    0.00                 tolua_log_eressea_log_warning00 [1345]
-                0.00    0.00       1/5           log_warning [1342]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1346]   0.0    0.00    0.00       1         eressea_run [1346]
-                0.00    0.00       1/49235       log_debug [1245]
------------------------------------------------
-                0.00    0.00       5/5           name_cmd [835]
-[1347]   0.0    0.00    0.00       5         get_cmp_region_owner [1347]
-                0.00    0.00       5/1613387     rule_region_owners [1323]
------------------------------------------------
-                0.00    0.00       1/11194781     defaultorders [249]
-                0.00    0.00       6/11194781     init_processor [1310]
-                0.00    0.00      29/11194781     add_proc_order [1692]
-                0.00    0.00 1207012/11194781     create_order_i [175]
-                0.00    0.00 1481322/11194781     get_keyword [274]
-                0.00    0.00 8506411/11194781     besieged [547]
-[1348]   0.0    0.00    0.00 11194781         keyword_disabled [1348]
------------------------------------------------
-                0.00    0.00 6656973/6656973     parse_string <cycle 5> [86]
-[1349]   0.0    0.00    0.00 6656973         bfree [1349]
------------------------------------------------
-                0.00    0.00       1/3587241     tolua_get_region [1296]
-                0.00    0.00       5/3587241     cast_cmd [760]
-                0.00    0.00     493/3587241     report_computer [9]
-                0.00    0.00    7499/3587241     cr_regions [840]
-                0.00    0.00    8892/3587241     r_astral_to_standard [783]
-                0.00    0.00   10477/3587241     report_template [87]
-                0.00    0.00  108425/3587241     update_lighthouse [605]
-                0.00    0.00  132705/3587241     cr_region [662]
-                0.00    0.00  163381/3587241     astralregions [329]
-                0.00    0.00  178254/3587241     new_region [275]
-                0.00    0.00  211668/3587241     cr_output_region [10]
-                0.00    0.00  369586/3587241     r_connect [474]
-                0.00    0.00  513251/3587241     write_regionname [280]
-                0.00    0.00  932009/3587241     koor_reldirection [562]
-                0.00    0.00  950595/3587241     f_regionid [161]
-[1350]   0.0    0.00    0.00 3587241         pnormalize [1350]
------------------------------------------------
-                0.00    0.00     692/3166898     research_cmd [886]
-                0.00    0.00   20639/3166898     herbsearch [493]
-                0.00    0.00   32670/3166898     writeregion [519]
-                0.00    0.00 3112897/3166898     growing_herbs [300]
-[1351]   0.0    0.00    0.00 3166898         rherbs [1351]
------------------------------------------------
-                0.00    0.00      51/2386892     potion_water_of_life [945]
-                0.00    0.00     232/2386892     prepare_report [8]
-                0.00    0.00     754/2386892     rule_alliance_limit [1332]
-                0.00    0.00    1214/2386892     rule_faction_limit [1331]
-                0.00    0.00    2430/2386892     heal_factor [619]
-                0.00    0.00    3003/2386892     roqf_factor [1329]
-                0.00    0.00  103079/2386892     rule_give [1328]
-                0.00    0.00  154110/2386892     rule_stealth_anon [1325]
-                0.00    0.00  508632/2386892     rule_blessed_harvest [1327]
-                0.00    0.00 1613387/2386892     rule_region_owners [1323]
-[1352]   0.0    0.00    0.00 2386892         config_changed [1352]
------------------------------------------------
-                0.00    0.00      23/2379316     new_weapontype [1703]
-                0.00    0.00    3531/2379316     make_fighter [424]
-                0.00    0.00 2375762/2379316     armedmen [151]
-[1353]   0.0    0.00    0.00 2379316         resource2weapon [1353]
------------------------------------------------
-                0.00    0.00     174/2124526     findresourcetype [1181]
-                0.00    0.00     324/2124526     add_resourcename_cb [977]
-                0.00    0.00     324/2124526     add_itemname_cb [980]
-                0.00    0.00    3110/2124526     default_order [902]
-                0.00    0.00  191379/2124526     finditemtype [735]
-                0.00    0.00 1929215/2124526     create_order_i [175]
-[1354]   0.0    0.00    0.00 2124526         locale_index [1354]
------------------------------------------------
-                0.00    0.00      47/2009097     give_peasants [1060]
-                0.00    0.00     118/2009097     keyword_key [1647]
-                0.00    0.00     136/2009097     make_movement_order [522]
-                0.00    0.00     191/2009097     follow_ship [749]
-                0.00    0.00    2081/2009097     nr_spell_syntax [732]
-                0.00    0.00 2006524/2009097     get_command [108]
-[1355]   0.0    0.00    0.00 2009097         keyword [1355]
------------------------------------------------
-                0.00    0.00       2/1936876     create_ship [1014]
-                0.00    0.00       8/1936876     do_combatmagic [825]
-                0.00    0.00      21/1936876     do_combatspell [702]
-                0.00    0.00      99/1936876     piracy_cmd [660]
-                0.00    0.00     133/1936876     travel [81]
-                0.00    0.00     220/1936876     free_castorder [1609]
-                0.00    0.00     262/1936876     defaultorders [249]
-                0.00    0.00     310/1936876     remove_exclusive [571]
-                0.00    0.00     490/1936876     build_building [696]
-                0.00    0.00     514/1936876     do_enter [128]
-                0.00    0.00    1670/1936876     free_recruitments [1568]
-                0.00    0.00    5384/1936876     teach_cmd [272]
-                0.00    0.00    8450/1936876     cycle_route [375]
-                0.00    0.00   14326/1936876     replace_order [526]
-                0.00    0.00   19315/1936876     expandorders [197]
-                0.00    0.00  395426/1936876     unitorders [46]
-                0.00    0.00  679696/1936876     set_order [1365]
-                0.00    0.00  810550/1936876     free_orders [306]
-[1356]   0.0    0.00    0.00 1936876         free_order [1356]
-                0.00    0.00 1342381/1342381     release_data [1364]
------------------------------------------------
-                0.00    0.00 1785077/1785077     adjust_coordinates [234]
-[1357]   0.0    0.00    0.00 1785077         faction_getorigin [1357]
------------------------------------------------
-                0.00    0.00   44924/1726748     attack [84]
-                0.00    0.00   80630/1726748     terminate [242]
-                0.00    0.00 1601194/1726748     weapon_effskill [168]
-[1358]   0.0    0.00    0.00 1726748         is_riding [1358]
------------------------------------------------
-                0.00    0.00       1/1511812     eaten_by_monster [468]
-                0.00    0.00       9/1511812     melt_iceberg [1082]
-                0.00    0.00      29/1511812     terraform_region [932]
-                0.00    0.00      48/1511812     chaos [848]
-                0.00    0.00     105/1511812     bewegung_blockiert_von [631]
-                0.00    0.00     114/1511812     build_road [950]
-                0.00    0.00     847/1511812     buy [707]
-                0.00    0.00    4628/1511812     expandselling [93]
-                0.00    0.00    4629/1511812     produce [29]
-                0.00    0.00   16651/1511812     sell [498]
-                0.00    0.00   64838/1511812     calculate_emigration [603]
-                0.00    0.00  139323/1511812     spawn_dragons [411]
-                0.00    0.00  178254/1511812     move_icebergs [534]
-                0.00    0.00  178261/1511812     create_icebergs [538]
-                0.00    0.00  201709/1511812     make_summary [21]
-                0.00    0.00  722366/1511812     skill_mod [264]
-[1359]   0.0    0.00    0.00 1511812         newterrain [1359]
------------------------------------------------
-                0.00    0.00 1380398/1380398     translate [28]
-[1360]   0.0    0.00    0.00 1380398         brelease [1360]
------------------------------------------------
-                0.00    0.00 1380398/1380398     translate [28]
-[1361]   0.0    0.00    0.00 1380398         free_variables [1361]
------------------------------------------------
-                0.00    0.00     156/1380007     make_fighter [424]
-                0.00    0.00     431/1380007     create_unit [296]
-                0.00    0.00   39954/1380007     destroyfaction [392]
-                0.00    0.00  151469/1380007     visible_faction [68]
-                0.00    0.00  373997/1380007     nr_unit [11]
-                0.00    0.00  401604/1380007     bufunit [17]
-                0.00    0.00  412396/1380007     cr_output_unit [19]
-[1362]   0.0    0.00    0.00 1380007         get_otherfaction [1362]
------------------------------------------------
-                0.00    0.00       1/1342832     destroyfaction [392]
-                0.00    0.00       2/1342832     remove_building [1153]
-                0.00    0.00       6/1342832     remove_ship [1748]
-                0.00    0.00    1794/1342832     remove_unit [499]
-                0.00    0.00   46184/1342832     age_building [712]
-                0.00    0.00  178254/1342832     age_region [659]
-                0.00    0.00  186260/1342832     give_item [126]
-                0.00    0.00  315567/1342832     plan_monsters [52]
-                0.00    0.00  614764/1342832     ageing [185]
-[1363]   0.0    0.00    0.00 1342832         handle_event [1363]
-                0.00    0.00      18/18          handle_triggers [1706]
------------------------------------------------
-                0.00    0.00 1342381/1342381     free_order [1356]
-[1364]   0.0    0.00    0.00 1342381         release_data [1364]
------------------------------------------------
-                0.00    0.00       2/1291427     sp_charmingsong [993]
-                0.00    0.00       3/1291427     cast_cmd [760]
-                0.00    0.00     114/1291427     u_setfaction [1111]
-                0.00    0.00     163/1291427     movement [47]
-                0.00    0.00     703/1291427     follow_unit [331]
-                0.00    0.00    2889/1291427     create_unit [296]
-                0.00    0.00    6947/1291427     sail [181]
-                0.00    0.00  103784/1291427     move_cmd [66]
-                0.00    0.00  581697/1291427     update_long_order [270]
-                0.00    0.00  595125/1291427     read_unit [74]
-[1365]   0.0    0.00    0.00 1291427         set_order [1365]
-                0.00    0.00  679696/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00 1252028/1252028     create_data [252]
-[1366]   0.0    0.00    0.00 1252028         mkdata [1366]
------------------------------------------------
-                0.00    0.00  148748/1218663     terminate [242]
-                0.00    0.00  363071/1218663     hits [131]
-                0.00    0.00  706844/1218663     skilldiff [166]
-[1367]   0.0    0.00    0.00 1218663         select_weapon [1367]
-                0.00    0.00  516342/754589      preferred_weapon [1377]
------------------------------------------------
-                0.00    0.00   10565/1214628     list_address [635]
-                0.00    0.00  453546/1214628     get_addresses [20]
-                0.00    0.00  750517/1214628     nr_unit [11]
-[1368]   0.0    0.00    0.00 1214628         is_allied [1368]
------------------------------------------------
-                0.00    0.00       5/1160345     give_horses [1108]
-                0.00    0.00       5/1160345     gift_items [891]
-                0.00    0.00       9/1160345     destroyfaction [392]
-                0.00    0.00    3269/1160345     region_getresource [1058]
-                0.00    0.00   28760/1160345     migrate [1478]
-                0.00    0.00   32670/1160345     writeregion [519]
-                0.00    0.00   45630/1160345     cr_output_region [10]
-                0.00    0.00   91145/1160345     report_resources [210]
-                0.00    0.00  225630/1160345     describe [35]
-                0.00    0.00  356508/1160345     make_summary [21]
-                0.00    0.00  376714/1160345     horses [330]
-[1369]   0.0    0.00    0.00 1160345         rhorses [1369]
------------------------------------------------
-                0.00    0.00 1132609/1132609     update_long_order [270]
-[1370]   0.0    0.00    0.00 1132609         is_long [1370]
------------------------------------------------
-                0.00    0.00 1067195/1067195     msg_free [1384]
-[1371]   0.0    0.00    0.00 1067195         free_arg [1371]
-                0.00    0.00   37202/37202       var_free_string [1470]
-                0.00    0.00     209/209         var_free_resources [1628]
------------------------------------------------
-                0.00    0.00 1014205/1014205     add_seen_nb [386]
-[1372]   0.0    0.00    0.00 1014205         add_seen [1372]
------------------------------------------------
-                0.00    0.00       1/1009028     sp_holyground [1068]
-                0.00    0.00       1/1009028     sp_summonshadowlords [1034]
-                0.00    0.00       1/1009028     sp_generous [1040]
-                0.00    0.00       1/1009028     plant [1184]
-                0.00    0.00       1/1009028     planttrees [1206]
-                0.00    0.00       1/1009028     breedtrees [1148]
-                0.00    0.00       1/1009028     promotion_cmd [917]
-                0.00    0.00       1/1009028     age_stonecircle [1021]
-                0.00    0.00       1/1009028     verify_building [1255]
-                0.00    0.00       1/1009028     cast_cmd [760]
-                0.00    0.00       1/1009028     sp_flying_ship [1064]
-                0.00    0.00       1/1009028     use_skillpotion [1233]
-                0.00    0.00       2/1009028     travel [81]
-                0.00    0.00       2/1009028     sp_summon_familiar [1025]
-                0.00    0.00       2/1009028     sp_bloodsacrifice [1209]
-                0.00    0.00       2/1009028     sp_charmingsong [993]
-                0.00    0.00       2/1009028     sp_viewreality [784]
-                0.00    0.00       2/1009028     magic [157]
-                0.00    0.00       2/1009028     create_icebergs [538]
-                0.00    0.00       2/1009028     make_wormhole [1150]
-                0.00    0.00       2/1009028     summon_allies [925]
-                0.00    0.00       3/1009028     sp_eternizewall [988]
-                0.00    0.00       3/1009028     report_failed_spell [1187]
-                0.00    0.00       3/1009028     begin_potion [1096]
-                0.00    0.00       3/1009028     give_control_cmd [287]
-                0.00    0.00       3/1009028     drown [394]
-                0.00    0.00       3/1009028     melt_iceberg [1082]
-                0.00    0.00       3/1009028     wormhole_age [1130]
-                0.00    0.00       3/1009028     use_healingpotion [1119]
-                0.00    0.00       4/1009028     caught_target [1003]
-                0.00    0.00       4/1009028     init_transportation [384]
-                0.00    0.00       4/1009028     make_route [289]
-                0.00    0.00       4/1009028     ship_ready [354]
-                0.00    0.00       4/1009028     sp_goodwinds [974]
-                0.00    0.00       4/1009028     sp_enterastral [1045]
-                0.00    0.00       4/1009028     terminate [242]
-                0.00    0.00       4/1009028     quit [276]
-                0.00    0.00       4/1009028     move_iceberg [1094]
-                0.00    0.00       4/1009028     factionorders [983]
-                0.00    0.00       5/1009028     sp_song_of_peace [939]
-                0.00    0.00       5/1009028     buy [707]
-                0.00    0.00       7/1009028     sp_healing [989]
-                0.00    0.00       9/1009028     sp_stormwinds [871]
-                0.00    0.00      10/1009028     make_cmd [383]
-                0.00    0.00      10/1009028     tax_cmd [697]
-                0.00    0.00      10/1009028     spy_cmd [990]
-                0.00    0.00      10/1009028     spawn_dragons [411]
-                0.00    0.00      12/1009028     msg_to_ship_inmates [1286]
-                0.00    0.00      12/1009028     sp_mallornhain [968]
-                0.00    0.00      12/1009028     sp_summonundead [896]
-                0.00    0.00      12/1009028     forget_cmd [1093]
-                0.00    0.00      13/1009028     volcano_destruction [1022]
-                0.00    0.00      15/1009028     do_fumble [1062]
-                0.00    0.00      18/1009028     sp_hain [931]
-                0.00    0.00      18/1009028     do_attack [80]
-                0.00    0.00      18/1009028     attack_firesword [785]
-                0.00    0.00      19/1009028     enter_building [695]
-                0.00    0.00      21/1009028     sp_kampfzauber [957]
-                0.00    0.00      22/1009028     spy_message [1038]
-                0.00    0.00      24/1009028     nmr_warnings [878]
-                0.00    0.00      24/1009028     cancast [833]
-                0.00    0.00      26/1009028     sp_blessedharvest [847]
-                0.00    0.00      33/1009028     travel_i [92]
-                0.00    0.00      37/1009028     volcano_update [981]
-                0.00    0.00      37/1009028     build_road [950]
-                0.00    0.00      38/1009028     expandstealing [807]
-                0.00    0.00      39/1009028     deliverMail [966]
-                0.00    0.00      39/1009028     display_item [1054]
-                0.00    0.00      39/1009028     random_growl [1065]
-                0.00    0.00      41/1009028     dissolve_units [241]
-                0.00    0.00      48/1009028     caddmessage [1070]
-                0.00    0.00      51/1009028     potion_water_of_life [945]
-                0.00    0.00      51/1009028     chaos [848]
-                0.00    0.00      53/1009028     sp_dragonodem [627]
-                0.00    0.00      55/1009028     start_battle [297]
-                0.00    0.00      56/1009028     use_bloodpotion [935]
-                0.00    0.00      58/1009028     add_recruits [371]
-                0.00    0.00      76/1009028     steal_cmd [766]
-                0.00    0.00      84/1009028     do_work [612]
-                0.00    0.00      88/1009028     hunger [808]
-                0.00    0.00      92/1009028     spawn_undead [629]
-                0.00    0.00     100/1009028     age_reduceproduction [1017]
-                0.00    0.00     110/1009028     peasants [658]
-                0.00    0.00     115/1009028     build_ship [839]
-                0.00    0.00     119/1009028     syntax_error [1036]
-                0.00    0.00     120/1009028     plagues [781]
-                0.00    0.00     149/1009028     create_potion [821]
-                0.00    0.00     170/1009028     breedhorses [742]
-                0.00    0.00     170/1009028     guard_on_cmd [656]
-                0.00    0.00     328/1009028     mail_cmd [844]
-                0.00    0.00     345/1009028     end_potion [814]
-                0.00    0.00     349/1009028     research_cmd [886]
-                0.00    0.00     377/1009028     manufacture [759]
-                0.00    0.00     395/1009028     reportcasualties [881]
-                0.00    0.00     508/1009028     regenerate_aura [346]
-                0.00    0.00     567/1009028     eaten_by_monster [468]
-                0.00    0.00     581/1009028     build_building [696]
-                0.00    0.00     614/1009028     print_fighters [616]
-                0.00    0.00     676/1009028     rp_battles [618]
-                0.00    0.00     679/1009028     print_header [838]
-                0.00    0.00     681/1009028     absorbed_by_monster [804]
-                0.00    0.00    1080/1009028     report_plaintext [4]
-                0.00    0.00    1225/1009028     give_item [126]
-                0.00    0.00    1323/1009028     teach_cmd [272]
-                0.00    0.00    1992/1009028     aftermath [701]
-                0.00    0.00    2317/1009028     print_stats [525]
-                0.00    0.00    2594/1009028     battle_report [503]
-                0.00    0.00    2699/1009028     scared_by_monster [380]
-                0.00    0.00    2938/1009028     split_allocations [743]
-                0.00    0.00    5049/1009028     piracy_cmd [660]
-                0.00    0.00    5810/1009028     report_transfer [724]
-                0.00    0.00    5966/1009028     herbsearch [493]
-                0.00    0.00    7043/1009028     sail [181]
-                0.00    0.00    8710/1009028     maintain_buildings [339]
-                0.00    0.00    8797/1009028     cmistake [718]
-                0.00    0.00   11358/1009028     expandbuying [49]
-                0.00    0.00   12398/1009028     fbattlerecord [688]
-                0.00    0.00   12448/1009028     expandselling [93]
-                0.00    0.00   12729/1009028     cr_output_curses [69]
-                0.00    0.00   14939/1009028     maintain [478]
-                0.00    0.00   15186/1009028     nr_curses_i [401]
-                0.00    0.00   20258/1009028     study_cmd [105]
-                0.00    0.00   29028/1009028     give_cmd [102]
-                0.00    0.00   34409/1009028     add_income [625]
-                0.00    0.00   80478/1009028     add_give [379]
-                0.00    0.00   96460/1009028     travel_route [147]
-                0.00    0.00  163573/1009028     describe [35]
-                0.00    0.00  192618/1009028     statistics [70]
-                0.00    0.00  247009/1009028     prices [85]
-[1373]   0.0    0.00    0.00 1009028         msg_release [1373]
-                0.00    0.00  633429/633429      msg_free [1384]
------------------------------------------------
-                0.00    0.00      52/987128      dragon_name [1095]
-                0.00    0.00      53/987128      lua_getresource [1191]
-                0.00    0.00     109/987128      dracoid_name [1126]
-                0.00    0.00     116/987128      report_status [318]
-                0.00    0.00     542/987128      make_name [970]
-                0.00    0.00     886/987128      write_script [853]
-                0.00    0.00    1584/987128      produce_resource [994]
-                0.00    0.00    3123/987128      limit_resource [943]
-                0.00    0.00    3334/987128      add_recruits [371]
-                0.00    0.00    4016/987128      default_name [851]
-                0.00    0.00  188092/987128      cycle_route [375]
-                0.00    0.00  785221/987128      trailinto [207]
-[1374]   0.0    0.00    0.00  987128         strlcat [1374]
------------------------------------------------
-                0.00    0.00       5/822780      set_money [1326]
-                0.00    0.00       9/822780      default_spoil [1144]
-                0.00    0.00      23/822780      equip_items [1121]
-                0.00    0.00      60/822780      equip_unit_mask [776]
-                0.00    0.00   86907/822780      change_money [337]
-                0.00    0.00  735776/822780      i_change [115]
-[1375]   0.0    0.00    0.00  822780         i_new [1375]
------------------------------------------------
-                0.00    0.00       1/779868      create_mage [1315]
-                0.00    0.00       1/779868      init_seed [1320]
-                0.00    0.00       1/779868      init_mallornseed [1319]
-                0.00    0.00       1/779868      a_upgradekeys [1314]
-                0.00    0.00       1/779868      make_matmod [1821]
-                0.00    0.00       2/779868      make_wormhole [1150]
-                0.00    0.00       2/779868      summon_allies [925]
-                0.00    0.00       2/779868      make_skillmod [1777]
-                0.00    0.00       3/779868      create_newfamiliar [1288]
-                0.00    0.00       3/779868      usetprivate [1041]
-                0.00    0.00       6/779868      add_chaoscount [1198]
-                0.00    0.00       7/779868      parse_resources [1086]
-                0.00    0.00       7/779868      add_trigger [1260]
-                0.00    0.00      12/779868      make_reduceproduction [1722]
-                0.00    0.00      13/779868      make_iceberg [1718]
-                0.00    0.00      20/779868      init_transportation [384]
-                0.00    0.00      25/779868      make_targetregion [1701]
-                0.00    0.00      32/779868      growing_trees [624]
-                0.00    0.00      32/779868      make_curse [802]
-                0.00    0.00      35/779868      deathcounts [843]
-                0.00    0.00      55/779868      renumber_unit [1159]
-                0.00    0.00      58/779868      potion_luck [1176]
-                0.00    0.00      97/779868      mk_piracy [1652]
-                0.00    0.00     114/779868      usetcontact [1147]
-                0.00    0.00     159/779868      change_effect [982]
-                0.00    0.00     234/779868      make_leftship [1615]
-                0.00    0.00     328/779868      display_potion [1090]
-                0.00    0.00     389/779868      usetpotionuse [1078]
-                0.00    0.00     433/779868      make_otherfaction [1603]
-                0.00    0.00     631/779868      set_group [1048]
-                0.00    0.00     754/779868      new_units [282]
-                0.00    0.00     760/779868      set_familiar [992]
-                0.00    0.00     894/779868      make_follow [1589]
-                0.00    0.00    2063/779868      create_unit [296]
-                0.00    0.00    2503/779868      sell [498]
-                0.00    0.00    3233/779868      leave_trail [704]
-                0.00    0.00    3642/779868      buy [707]
-                0.00    0.00    4162/779868      show_new_spells [889]
-                0.00    0.00    4738/779868      expandselling [93]
-                0.00    0.00    5679/779868      expandbuying [49]
-                0.00    0.00   11749/779868      teach_unit [426]
-                0.00    0.00   27216/779868      travelthru_add [609]
-                0.00    0.00   52117/779868      update_lighthouse [605]
-                0.00    0.00  251814/779868      a_read_i [390]
-                0.00    0.00  405840/779868      study_cmd [105]
-[1376]   0.0    0.00    0.00  779868         a_new [1376]
-                0.00    0.00  417580/417580      init_learning [1396]
-                0.00    0.00   37453/37453       shiptrail_init [1469]
-                0.00    0.00    4052/4052        curse_init [1539]
-                0.00    0.00    2650/2650        a_initeffect [1552]
-                0.00    0.00    2092/2092        init_mage [1558]
-                0.00    0.00    2081/2081        a_init_reportspell [1561]
-                0.00    0.00    1564/1564        init_handler [1570]
-                0.00    0.00     763/763         init_skillmod [1592]
-                0.00    0.00      97/97          piracy_init [1654]
-                0.00    0.00      56/56          dict_init [1675]
-                0.00    0.00       9/9           init_resourcelimit [1731]
------------------------------------------------
-                0.00    0.00    4005/754589      do_attack [80]
-                0.00    0.00  234242/754589      attack [84]
-                0.00    0.00  516342/754589      select_weapon [1367]
-[1377]   0.0    0.00    0.00  754589         preferred_weapon [1377]
------------------------------------------------
-                0.00    0.00    1727/744202      travel_route [147]
-                0.00    0.00  742475/744202      can_survive [640]
-[1378]   0.0    0.00    0.00  744202         has_horses [1378]
------------------------------------------------
-                0.00    0.00  221718/734392      adjust_coordinates [234]
-                0.00    0.00  512674/734392      koor_distance [476]
-[1379]   0.0    0.00    0.00  734392         plane_height [1379]
------------------------------------------------
-                0.00    0.00  221718/734392      adjust_coordinates [234]
-                0.00    0.00  512674/734392      koor_distance [476]
-[1380]   0.0    0.00    0.00  734392         plane_width [1380]
------------------------------------------------
-                0.00    0.00       1/651711      sp_generous [1040]
-                0.00    0.00       1/651711      shipcurse_flyingship [1072]
-                0.00    0.00       2/651711      sp_enterastral [1045]
-                0.00    0.00       6/651711      forget_cmd [1093]
-                0.00    0.00       9/651711      is_freezing [1088]
-                0.00    0.00      10/651711      sp_stormwinds [871]
-                0.00    0.00      17/651711      produce [29]
-                0.00    0.00      17/651711      process [7]
-                0.00    0.00      17/651711      magic [157]
-                0.00    0.00      22/651711      drifting_ships [490]
-                0.00    0.00      34/651711      sp_viewreality [784]
-                0.00    0.00     149/651711      sail [181]
-                0.00    0.00     349/651711      can_give_men [940]
-                0.00    0.00     452/651711      fumble [973]
-                0.00    0.00     488/651711      give_men [857]
-                0.00    0.00     508/651711      regenerate_aura [346]
-                0.00    0.00    1689/651711      recruit [650]
-                0.00    0.00    2815/651711      count_faction [219]
-                0.00    0.00    5358/651711      max_spellpoints [755]
-                0.00    0.00    8515/651711      describe [35]
-                0.00    0.00   16560/651711      entertain_cmd [665]
-                0.00    0.00   29173/651711      horses [330]
-                0.00    0.00   32649/651711      growing_trees [624]
-                0.00    0.00   37300/651711      cr_output_region [10]
-                0.00    0.00   91155/651711      godcurse [405]
-                0.00    0.00   94865/651711      ageing [185]
-                0.00    0.00  159633/651711      entertainmoney [643]
-                0.00    0.00  169917/651711      study_cmd [105]
-[1381]   0.0    0.00    0.00  651711         oldcursename [1381]
------------------------------------------------
-                0.00    0.00      12/647569      changefaction_write [1258]
-                0.00    0.00     232/647569      writefaction [762]
-                0.00    0.00   51104/647569      write_groups [920]
-                0.00    0.00  596221/647569      write_unit [97]
-[1382]   0.0    0.00    0.00  647569         write_faction_reference [1382]
------------------------------------------------
-                0.00    0.00       1/642406      caldera_write [1795]
-                0.00    0.00   46184/642406      write_game [83]
-                0.00    0.00  596221/642406      write_unit [97]
-[1383]   0.0    0.00    0.00  642406         write_building_reference [1383]
------------------------------------------------
-                0.00    0.00  633429/633429      msg_release [1373]
-[1384]   0.0    0.00    0.00  633429         msg_free [1384]
-                0.00    0.00 1067195/1067195     free_arg [1371]
------------------------------------------------
-                0.00    0.00  256354/619425      attack [84]
-                0.00    0.00  363071/619425      hits [131]
-[1385]   0.0    0.00    0.00  619425         getreload [1385]
------------------------------------------------
-                0.00    0.00   19078/615299      write_game [83]
-                0.00    0.00  596221/615299      write_unit [97]
-[1386]   0.0    0.00    0.00  615299         write_ship_reference [1386]
------------------------------------------------
-                0.00    0.00       3/603524      remove_unit [499]
-                0.00    0.00       9/603524      destroyfaction [392]
-                0.00    0.00     228/603524      u_setfaction [1111]
-                0.00    0.00     369/603524      add_recruits [371]
-                0.00    0.00    1865/603524      transfermen [899]
-                0.00    0.00    2889/603524      create_unit [296]
-                0.00    0.00    3036/603524      scale_number [969]
-                0.00    0.00  595125/603524      read_unit [74]
-[1387]   0.0    0.00    0.00  603524         set_number [1387]
------------------------------------------------
-                0.00    0.00  603246/603246      cr_output_unit [19]
-[1388]   0.0    0.00    0.00  603246         level_days [1388]
------------------------------------------------
-                0.00    0.00       1/600145      make_zombie [1267]
-                0.00    0.00       1/600145      use_bloodpotion [935]
-                0.00    0.00       2/600145      do_fumble [1062]
-                0.00    0.00       4/600145      age_firedragon [1123]
-                0.00    0.00       5/600145      age_dragon [1098]
-                0.00    0.00       7/600145      age_ghoul [1024]
-                0.00    0.00      17/600145      age_zombie [1019]
-                0.00    0.00      19/600145      age_skeleton [1008]
-                0.00    0.00     359/600145      give_men [857]
-                0.00    0.00    1716/600145      recruit [650]
-                0.00    0.00    2889/600145      create_unit [296]
-                0.00    0.00  595125/600145      read_unit [74]
-[1389]   0.0    0.00    0.00  600145         u_setrace [1389]
------------------------------------------------
-                0.00    0.00       1/599650      sp_summon_familiar [1025]
-                0.00    0.00       2/599650      summon_allies [925]
-                0.00    0.00      23/599650      recruit_dracoids [837]
-                0.00    0.00     754/599650      new_units [282]
-                0.00    0.00    1683/599650      status_cmd [904]
-                0.00    0.00    2062/599650      create_unit [296]
-                0.00    0.00  595125/599650      read_unit [74]
-[1390]   0.0    0.00    0.00  599650         setstatus [1390]
------------------------------------------------
-                0.00    0.00    5425/595705      drain_exp [850]
-                0.00    0.00   34486/595705      effskill_study [504]
-                0.00    0.00  108170/595705      transfermen [899]
-                0.00    0.00  447624/595705      learn_skill [471]
-[1391]   0.0    0.00    0.00  595705         unit_skill [1391]
------------------------------------------------
-                0.00    0.00   36929/515192      cr_output_region [10]
-                0.00    0.00   52156/515192      describe [35]
-                0.00    0.00  426107/515192      default_wage [173]
-[1392]   0.0    0.00    0.00  515192         is_mourning [1392]
-                0.00    0.00  515192/515192      owner_change [1393]
------------------------------------------------
-                0.00    0.00  515192/515192      is_mourning [1392]
-[1393]   0.0    0.00    0.00  515192         owner_change [1393]
------------------------------------------------
-                0.00    0.00  512663/512663      koor_distance [476]
-[1394]   0.0    0.00    0.00  512663         koor_distance_orig [1394]
------------------------------------------------
-                0.00    0.00      58/432940      att_modification [90]
-                0.00    0.00      89/432940      entertainmoney [643]
-                0.00    0.00     508/432940      regenerate_aura [346]
-                0.00    0.00     820/432940      curse_geteffect_int [1590]
-                0.00    0.00    5358/432940      max_spellpoints [755]
-                0.00    0.00  426107/432940      default_wage [173]
-[1395]   0.0    0.00    0.00  432940         curse_geteffect [1395]
------------------------------------------------
-                0.00    0.00  417580/417580      a_new [1376]
-[1396]   0.0    0.00    0.00  417580         init_learning [1396]
------------------------------------------------
-                0.00    0.00  417577/417577      a_free [558]
-[1397]   0.0    0.00    0.00  417577         done_learning [1397]
------------------------------------------------
-                0.00    0.00  417577/417577      study_cmd [105]
-[1398]   0.0    0.00    0.00  417577         study_speedup [1398]
------------------------------------------------
-                0.00    0.00  392959/392959      add_message [434]
-[1399]   0.0    0.00    0.00  392959         msg_addref [1399]
------------------------------------------------
-                0.00    0.00      86/374425      i_merge [1651]
-                0.00    0.00     216/374425      gift_items [891]
-                0.00    0.00     340/374425      free_fighter [1580]
-                0.00    0.00   18220/374425      i_freeall [1515]
-                0.00    0.00   87928/374425      change_money [337]
-                0.00    0.00   98482/374425      i_change [115]
-                0.00    0.00  169153/374425      statistics [70]
-[1400]   0.0    0.00    0.00  374425         i_free [1400]
------------------------------------------------
-                0.00    0.00       1/353788      add_seen_faction [1788]
-                0.00    0.00    3767/353788      cb_add_address [598]
-                0.00    0.00  350020/353788      get_addresses [20]
-[1401]   0.0    0.00    0.00  353788         add_seen_faction_i [1401]
------------------------------------------------
-                0.00    0.00  348444/348444      report_resources [210]
-[1402]   0.0    0.00    0.00  348444         report_resource [1402]
------------------------------------------------
-                0.00    0.00  330438/330438      cr_render [196]
-[1403]   0.0    0.00    0.00  330438         cr_unit [1403]
------------------------------------------------
-                0.00    0.00    5762/308950      buy [707]
-                0.00    0.00   15730/308950      sell [498]
-                0.00    0.00  287458/308950      expandselling [93]
-[1404]   0.0    0.00    0.00  308950         r_demand [1404]
------------------------------------------------
-                0.00    0.00  297222/297222      render_messages [58]
-[1405]   0.0    0.00    0.00  297222         messagehash [1405]
------------------------------------------------
-                0.00    0.00  279072/279072      cr_render [196]
-[1406]   0.0    0.00    0.00  279072         cr_int [1406]
------------------------------------------------
-                0.00    0.00      86/257723      i_merge [1651]
-                0.00    0.00     216/257723      gift_items [891]
-                0.00    0.00     340/257723      free_fighter [1580]
-                0.00    0.00   87928/257723      change_money [337]
-                0.00    0.00  169153/257723      statistics [70]
-[1407]   0.0    0.00    0.00  257723         i_remove [1407]
------------------------------------------------
-                0.00    0.00       5/257693      give_horses [1108]
-                0.00    0.00       5/257693      gift_items [891]
-                0.00    0.00       9/257693      destroyfaction [392]
-                0.00    0.00      64/257693      terraform_region [932]
-                0.00    0.00    1098/257693      region_setresource [1097]
-                0.00    0.00   28760/257693      migrate [1478]
-                0.00    0.00   32679/257693      readregion [209]
-                0.00    0.00  195073/257693      horses [330]
-[1408]   0.0    0.00    0.00  257693         rsethorses [1408]
------------------------------------------------
-                0.00    0.00  251867/251867      do_attack [80]
-[1409]   0.0    0.00    0.00  251867         attacks_per_round [1409]
------------------------------------------------
-                0.00    0.00       1/229715      breedtrees [1148]
-                0.00    0.00       6/229715      sp_mallornhain [968]
-                0.00    0.00       9/229715      sp_hain [931]
-                0.00    0.00      20/229715      dissolve_units [241]
-                0.00    0.00      36/229715      volcano_destruction [1022]
-                0.00    0.00      51/229715      potion_water_of_life [945]
-                0.00    0.00     252/229715      terraform_region [932]
-                0.00    0.00     623/229715      tolua_region_set_resource [1057]
-                0.00    0.00   98037/229715      readregion [209]
-                0.00    0.00  130680/229715      growing_trees [624]
-[1410]   0.0    0.00    0.00  229715         rsettrees [1410]
------------------------------------------------
-                0.00    0.00       5/221723      rel_to_abs [1728]
-                0.00    0.00  221718/221723      adjust_coordinates [234]
-[1411]   0.0    0.00    0.00  221723         plane_center_x [1411]
------------------------------------------------
-                0.00    0.00       5/221723      rel_to_abs [1728]
-                0.00    0.00  221718/221723      adjust_coordinates [234]
-[1412]   0.0    0.00    0.00  221723         plane_center_y [1412]
------------------------------------------------
-                0.00    0.00      13/217405      expandselling [93]
-                0.00    0.00  217392/217405      readregion [209]
-[1413]   0.0    0.00    0.00  217405         r_setdemand [1413]
------------------------------------------------
-                0.00    0.00  209572/209572      cr_output_region [10]
-[1414]   0.0    0.00    0.00  209572         cr_region_header [1414]
------------------------------------------------
-                0.00    0.00     174/204314      breedhorses [742]
-                0.00    0.00    4629/204314      expandselling [93]
-                0.00    0.00    5460/204314      buy [707]
-                0.00    0.00   15797/204314      sell [498]
-                0.00    0.00  178254/204314      produce [29]
-[1415]   0.0    0.00    0.00  204314         bt_changed [1415]
------------------------------------------------
-                0.00    0.00   71388/203117      reserve_i [213]
-                0.00    0.00  131729/203117      give_cmd [102]
-[1416]   0.0    0.00    0.00  203117         atoip [1416]
------------------------------------------------
-                0.00    0.00   93450/196476      see_border [1440]
-                0.00    0.00  103026/196476      cr_borders [135]
-[1417]   0.0    0.00    0.00  196476         b_finvisible [1417]
------------------------------------------------
-                0.00    0.00   93450/196476      see_border [1440]
-                0.00    0.00  103026/196476      cr_borders [135]
-[1418]   0.0    0.00    0.00  196476         b_rvisibleroad [1418]
------------------------------------------------
-                0.00    0.00      15/192815      drifting_ships [490]
-                0.00    0.00   39714/192815      sail [181]
-                0.00    0.00   39832/192815      astralregions [329]
-                0.00    0.00  113254/192815      make_route [289]
-[1419]   0.0    0.00    0.00  192815         add_regionlist [1419]
------------------------------------------------
-                0.00    0.00   93450/190467      describe [35]
-                0.00    0.00   97017/190467      cr_borders [135]
-[1420]   0.0    0.00    0.00  190467         b_transparent [1420]
------------------------------------------------
-                0.00    0.00      52/178322      get_or_create_terrain [1680]
-                0.00    0.00  178270/178322      get_terrain [1423]
-[1421]   0.0    0.00    0.00  178322         terrain_find_i [1421]
------------------------------------------------
-                0.00    0.00      57/178311      terraform_region [932]
-                0.00    0.00  178254/178311      readregion [209]
-[1422]   0.0    0.00    0.00  178311         region_setinfo [1422]
------------------------------------------------
-                0.00    0.00       2/178270      volcano_update [981]
-                0.00    0.00      14/178270      init_terrains [1810]
-                0.00    0.00  178254/178270      readregion [209]
-[1423]   0.0    0.00    0.00  178270         get_terrain [1423]
-                0.00    0.00  178270/178322      terrain_find_i [1421]
------------------------------------------------
-                0.00    0.00  178254/178254      writeregion [519]
-[1424]   0.0    0.00    0.00  178254         region_getinfo [1424]
------------------------------------------------
-                0.00    0.00      48/157830      internal_path_find [345]
-                0.00    0.00  157782/157830      allowed_dragon [564]
-[1425]   0.0    0.00    0.00  157830         allowed_fly [1425]
------------------------------------------------
-                0.00    0.00  152803/152803      free_nodes [1604]
-[1426]   0.0    0.00    0.00  152803         free_node [1426]
------------------------------------------------
-                0.00    0.00   27734/152803      regions_in_range [675]
-                0.00    0.00  125069/152803      internal_path_find [345]
-[1427]   0.0    0.00    0.00  152803         new_node [1427]
------------------------------------------------
-                0.00    0.00    2295/147171      buildingtype_exists [1443]
-                0.00    0.00    2920/147171      owner_buildingtyp [676]
-                0.00    0.00   12068/147171      building_is_active [1488]
-                0.00    0.00   16296/147171      inside_building [1486]
-                0.00    0.00  113592/147171      nr_building [141]
-[1428]   0.0    0.00    0.00  147171         building_finished [1428]
------------------------------------------------
-                0.00    0.00  141675/141675      addtoken [811]
-[1429]   0.0    0.00    0.00  141675         mknode [1429]
------------------------------------------------
-                0.00    0.00  140305/140305      reserve_i [213]
-[1430]   0.0    0.00    0.00  140305         set_resvalue [1430]
------------------------------------------------
-                0.00    0.00   12787/130867      canwalk [633]
-                0.00    0.00   21443/130867      ridingcapacity [694]
-                0.00    0.00   96637/130867      walkingcapacity [403]
-[1431]   0.0    0.00    0.00  130867         get_transporters [1431]
------------------------------------------------
-                0.00    0.00  128596/128596      report_plaintext [4]
-[1432]   0.0    0.00    0.00  128596         check_errno [1432]
------------------------------------------------
-                0.00    0.00     229/128135      list_address [635]
-                0.00    0.00  127906/128135      report_plaintext [4]
-[1433]   0.0    0.00    0.00  128135         rpline [1433]
------------------------------------------------
-                0.00    0.00  123744/123744      msg_feedback [647]
-[1434]   0.0    0.00    0.00  123744         arg_set [1434]
------------------------------------------------
-                0.00    0.00  110533/110533      make_fighter [424]
-[1435]   0.0    0.00    0.00  110533         weapon_weight [1435]
------------------------------------------------
-                0.00    0.00       2/109377      sp_viewreality [784]
-                0.00    0.00      15/109377      drifting_ships [490]
-                0.00    0.00     311/109377      cr_output_region [10]
-                0.00    0.00    5680/109377      describe [35]
-                0.00    0.00  103369/109377      move_cmd [66]
-[1436]   0.0    0.00    0.00  109377         free_regionlist [1436]
------------------------------------------------
-                0.00    0.00  105958/105958      travel_route [147]
-[1437]   0.0    0.00    0.00  105958         entrance_allowed [1437]
------------------------------------------------
-                0.00    0.00      48/101322      terraform_region [932]
-                0.00    0.00    5966/101322      herbsearch [493]
-                0.00    0.00   32679/101322      readregion [209]
-                0.00    0.00   62629/101322      growing_herbs [300]
-[1438]   0.0    0.00    0.00  101322         rsetherbs [1438]
------------------------------------------------
-                0.00    0.00   96208/96208       travel_route [147]
-[1439]   0.0    0.00    0.00   96208         var_copy_regions [1439]
------------------------------------------------
-                0.00    0.00   93452/93452       describe [35]
-[1440]   0.0    0.00    0.00   93452         see_border [1440]
-                0.00    0.00   93450/196476      b_finvisible [1417]
-                0.00    0.00   93450/196476      b_rvisibleroad [1418]
-                0.00    0.00   14192/26515       b_uinvisible [1487]
-                0.00    0.00       2/2           b_fvisible [1771]
------------------------------------------------
-                0.00    0.00       1/93120       use_pooled [39]
-                0.00    0.00   93119/93120       give_item [126]
-[1441]   0.0    0.00    0.00   93120         change_reservation [1441]
------------------------------------------------
-                0.00    0.00       5/87004       set_money [1326]
-                0.00    0.00       9/87004       default_spoil [1144]
-                0.00    0.00      23/87004       equip_items [1121]
-                0.00    0.00      60/87004       equip_unit_mask [776]
-                0.00    0.00   86907/87004       change_money [337]
-[1442]   0.0    0.00    0.00   87004         i_add [1442]
------------------------------------------------
-                0.00    0.00       2/75797       build_building [696]
-                0.00    0.00       5/75797       build_road [950]
-                0.00    0.00     208/75797       demographics [50]
-                0.00    0.00     322/75797       can_takeoff [854]
-                0.00    0.00     344/75797       expandselling [93]
-                0.00    0.00     344/75797       produce [29]
-                0.00    0.00    1112/75797       sell [498]
-                0.00    0.00    2495/75797       study_cmd [105]
-                0.00    0.00   31155/75797       statistics [70]
-                0.00    0.00   39810/75797       check_ship_allowed [657]
-[1443]   0.0    0.00    0.00   75797         buildingtype_exists [1443]
-                0.00    0.00    2295/147171      building_finished [1428]
------------------------------------------------
-                0.00    0.00       5/65345       expandloot [816]
-                0.00    0.00   32670/65345       morale_update [1479]
-                0.00    0.00   32670/65345       writeregion [519]
-[1444]   0.0    0.00    0.00   65345         region_get_morale [1444]
------------------------------------------------
-                0.00    0.00   62267/62267       horses [330]
-[1445]   0.0    0.00    0.00   62267         get_migrants [1445]
------------------------------------------------
-                0.00    0.00      89/59694       recruit [650]
-                0.00    0.00    1567/59694       travel_route [147]
-                0.00    0.00    4139/59694       produce [29]
-                0.00    0.00    5588/59694       process [7]
-                0.00    0.00    8501/59694       magic [157]
-                0.00    0.00   39810/59694       check_ship_allowed [657]
-[1446]   0.0    0.00    0.00   59694         r_insectstalled [1446]
------------------------------------------------
-                0.00    0.00   58524/58524       a_write [299]
-[1447]   0.0    0.00    0.00   58524         a_writeint [1447]
------------------------------------------------
-                0.00    0.00     106/58518       a_readkey [1648]
-                0.00    0.00   58412/58518       a_read_i [390]
-[1448]   0.0    0.00    0.00   58518         a_readint [1448]
------------------------------------------------
-                0.00    0.00   56646/56646       a_write [299]
-[1449]   0.0    0.00    0.00   56646         write_group [1449]
------------------------------------------------
-                0.00    0.00   56503/56503       read_group [1451]
-[1450]   0.0    0.00    0.00   56503         find_group [1450]
------------------------------------------------
-                0.00    0.00   56503/56503       a_read_i [390]
-[1451]   0.0    0.00    0.00   56503         read_group [1451]
-                0.00    0.00   56503/56503       find_group [1450]
------------------------------------------------
-                0.00    0.00       2/55547       ally_cmd [877]
-                0.00    0.00      98/55547       init_group [1764]
-                0.00    0.00    5925/55547       addally [913]
-                0.00    0.00   49522/55547       read_groups [782]
-[1452]   0.0    0.00    0.00   55547         ally_add [1452]
------------------------------------------------
-                0.00    0.00   54735/54735       write_travelthru [327]
-[1453]   0.0    0.00    0.00   54735         init_cb [1453]
------------------------------------------------
-                0.00    0.00   54163/54163       copy_arg [521]
-[1454]   0.0    0.00    0.00   54163         var_copy_string [1454]
------------------------------------------------
-                0.00    0.00      10/51239       changefaction_read [1166]
-                0.00    0.00      13/51239       read_planes [1164]
-                0.00    0.00   51216/51239       read_groups [782]
-[1455]   0.0    0.00    0.00   51239         read_faction_reference [1455]
------------------------------------------------
-                0.00    0.00      12/51060       set_level [774]
-                0.00    0.00      95/51060       transfermen [899]
-                0.00    0.00   50953/51060       scale_number [969]
-[1456]   0.0    0.00    0.00   51060         remove_skill [1456]
------------------------------------------------
-                0.00    0.00   50673/50673       demographics [50]
-[1457]   0.0    0.00    0.00   50673         update_resources [1457]
------------------------------------------------
-                0.00    0.00   49331/49331       log_stdio [1459]
-[1458]   0.0    0.00    0.00   49331         log_prefix [1458]
------------------------------------------------
-                0.00    0.00   49331/49331       log_write [1243]
-[1459]   0.0    0.00    0.00   49331         log_stdio [1459]
-                0.00    0.00   49331/49331       log_prefix [1458]
-                0.00    0.00   49331/49331       _log_write [3280]
------------------------------------------------
-                0.00    0.00       9/48565       build_building [696]
-                0.00    0.00     323/48565       enter_building [695]
-                0.00    0.00     837/48565       create_unit [296]
-                0.00    0.00   47396/48565       read_unit [74]
-[1460]   0.0    0.00    0.00   48565         u_set_building [1460]
-                0.00    0.00   18971/18971       building_set_owner [1504]
------------------------------------------------
-                0.00    0.00       2/48457       remove_building [1153]
-                0.00    0.00   48455/48457       findbuilding [1462]
-[1461]   0.0    0.00    0.00   48457         bfindhash [1461]
------------------------------------------------
-                0.00    0.00       1/48455       resolve_building [1862]
-                0.00    0.00       4/48455       verify_building [1255]
-                0.00    0.00      16/48455       newcontainerid [1263]
-                0.00    0.00      27/48455       renumber_cmd [780]
-                0.00    0.00     401/48455       enter_building [695]
-                0.00    0.00     610/48455       build_building [696]
-                0.00    0.00   47396/48455       read_unit [74]
-[1462]   0.0    0.00    0.00   48455         findbuilding [1462]
-                0.00    0.00   48455/48457       bfindhash [1461]
------------------------------------------------
-                0.00    0.00    1466/46742       resolve_region_id [1575]
-                0.00    0.00   45276/46742       read_borders [706]
-[1463]   0.0    0.00    0.00   46742         findregionbyid [1463]
------------------------------------------------
-                0.00    0.00      10/46196       renumber_cmd [780]
-                0.00    0.00      11/46196       new_building [1059]
-                0.00    0.00   46175/46196       read_game [62]
-[1464]   0.0    0.00    0.00   46196         bhash [1464]
------------------------------------------------
-                0.00    0.00    4307/44216       set_coast [875]
-                0.00    0.00   39909/44216       sail [181]
-[1465]   0.0    0.00    0.00   44216         flying_ship [1465]
------------------------------------------------
-                0.00    0.00       2/40692       tolua_get_season [2888]
-                0.00    0.00       2/40692       breedtrees [1148]
-                0.00    0.00       2/40692       demographics [50]
-                0.00    0.00       3/40692       gamedate2 [1222]
-                0.00    0.00      89/40692       recruit [650]
-                0.00    0.00     230/40692       gamedate_season [944]
-                0.00    0.00     460/40692       report_plaintext [4]
-                0.00    0.00   39904/40692       sail [181]
-[1466]   0.0    0.00    0.00   40692         get_gamedate [1466]
------------------------------------------------
-                0.00    0.00   39955/39955       a_write [299]
-[1467]   0.0    0.00    0.00   39955         write_of [1467]
------------------------------------------------
-                0.00    0.00   37453/37453       a_age [418]
-[1468]   0.0    0.00    0.00   37453         shiptrail_age [1468]
------------------------------------------------
-                0.00    0.00   37453/37453       a_new [1376]
-[1469]   0.0    0.00    0.00   37453         shiptrail_init [1469]
------------------------------------------------
-                0.00    0.00   37202/37202       free_arg [1371]
-[1470]   0.0    0.00    0.00   37202         var_free_string [1470]
------------------------------------------------
-                0.00    0.00   37024/37024       move_blocked [283]
-[1471]   0.0    0.00    0.00   37024         b_blocknone [1471]
------------------------------------------------
-                0.00    0.00      10/34565       changefaction_read [1166]
-                0.00    0.00    2941/34565       addally [913]
-                0.00    0.00    3693/34565       read_reference [726]
-                0.00    0.00   27921/34565       read_groups [782]
-[1472]   0.0    0.00    0.00   34565         ur_add [1472]
------------------------------------------------
-                0.00    0.00   34420/34420       a_write [299]
-[1473]   0.0    0.00    0.00   34420         a_writeshorts [1473]
------------------------------------------------
-                0.00    0.00   34382/34382       a_read_i [390]
-[1474]   0.0    0.00    0.00   34382         a_readshorts [1474]
------------------------------------------------
-                0.00    0.00   34220/34220       a_read_i [390]
-[1475]   0.0    0.00    0.00   34220         shiptrail_read [1475]
------------------------------------------------
-                0.00    0.00      48/32727       terraform_region [932]
-                0.00    0.00   32679/32727       readregion [209]
-[1476]   0.0    0.00    0.00   32727         region_set_morale [1476]
------------------------------------------------
-                0.00    0.00   32679/32679       readregion [209]
-[1477]   0.0    0.00    0.00   32679         read_owner [1477]
------------------------------------------------
-                0.00    0.00   32670/32670       demographics [50]
-[1478]   0.0    0.00    0.00   32670         migrate [1478]
-                0.00    0.00   28760/1160345     rhorses [1369]
-                0.00    0.00   28760/257693      rsethorses [1408]
------------------------------------------------
-                0.00    0.00   32670/32670       age_region [659]
-[1479]   0.0    0.00    0.00   32670         morale_update [1479]
-                0.00    0.00   32670/65345       region_get_morale [1444]
------------------------------------------------
-                0.00    0.00   32670/32670       writeregion [519]
-[1480]   0.0    0.00    0.00   32670         write_owner [1480]
------------------------------------------------
-                0.00    0.00   31688/31688       cr_render [196]
-[1481]   0.0    0.00    0.00   31688         cr_building [1481]
------------------------------------------------
-                0.00    0.00   30150/30150       nr_ship [111]
-[1482]   0.0    0.00    0.00   30150         ship_damage_percent [1482]
------------------------------------------------
-                0.00    0.00      16/28818       newcontainerid [1263]
-                0.00    0.00      22/28818       verify_ship [1704]
-                0.00    0.00      31/28818       renumber_cmd [780]
-                0.00    0.00     222/28818       enter_ship [733]
-                0.00    0.00     283/28818       follow_ship [749]
-                0.00    0.00     307/28818       getship [1018]
-                0.00    0.00     525/28818       follow_unit [331]
-                0.00    0.00   27412/28818       read_unit [74]
-[1483]   0.0    0.00    0.00   28818         findship [1483]
-                0.00    0.00   28818/28818       sfindhash [1484]
------------------------------------------------
-                0.00    0.00   28818/28818       findship [1483]
-[1484]   0.0    0.00    0.00   28818         sfindhash [1484]
------------------------------------------------
-                0.00    0.00       2/27640       create_ship [1014]
-                0.00    0.00      35/27640       create_unit [296]
-                0.00    0.00     191/27640       enter_ship [733]
-                0.00    0.00   27412/27640       read_unit [74]
-[1485]   0.0    0.00    0.00   27640         u_set_ship [1485]
-                0.00    0.00   18960/18963       ship_set_owner [1505]
------------------------------------------------
-                0.00    0.00     140/26995       age_stonecircle [1021]
-                0.00    0.00     225/26995       spellpower [1000]
-                0.00    0.00     226/26995       fumble [973]
-                0.00    0.00     318/26995       in_safe_building [1585]
-                0.00    0.00     508/26995       regenerate_aura [346]
-                0.00    0.00    1733/26995       build [691]
-                0.00    0.00    3563/26995       prepare_report [8]
-                0.00    0.00    5920/26995       allocate_resource [752]
-                0.00    0.00    6405/26995       active_building [560]
-                0.00    0.00    7957/26995       magic_resistance [727]
-[1486]   0.0    0.00    0.00   26995         inside_building [1486]
-                0.00    0.00   16296/147171      building_finished [1428]
-                0.00    0.00   16284/19671       buildingcapacity [1500]
------------------------------------------------
-                0.00    0.00   12323/26515       cr_borders [135]
-                0.00    0.00   14192/26515       see_border [1440]
-[1487]   0.0    0.00    0.00   26515         b_uinvisible [1487]
------------------------------------------------
-                0.00    0.00     225/26164       spellpower [1000]
-                0.00    0.00     226/26164       fumble [973]
-                0.00    0.00     508/26164       regenerate_aura [346]
-                0.00    0.00    4530/26164       build [691]
-                0.00    0.00    5920/26164       allocate_resource [752]
-                0.00    0.00    6798/26164       active_building [560]
-                0.00    0.00    7957/26164       magic_resistance [727]
-[1488]   0.0    0.00    0.00   26164         building_is_active [1488]
-                0.00    0.00   12068/147171      building_finished [1428]
------------------------------------------------
-                0.00    0.00   12828/26045       cr_output_curses [69]
-                0.00    0.00   13217/26045       nr_curses_i [401]
-[1489]   0.0    0.00    0.00   26045         curse_cansee [1489]
------------------------------------------------
-                0.00    0.00   25441/25441       readregion [209]
-[1490]   0.0    0.00    0.00   25441         rmt_find [1490]
------------------------------------------------
-                0.00    0.00    1084/24449       print_header [838]
-                0.00    0.00    2168/24449       aftermath [701]
-                0.00    0.00    7336/24449       battle_report [503]
-                0.00    0.00   13861/24449       print_stats [525]
-[1491]   0.0    0.00    0.00   24449         seematrix [1491]
------------------------------------------------
-                0.00    0.00   23342/23342       a_free [558]
-[1492]   0.0    0.00    0.00   23342         shiptrail_finalize [1492]
------------------------------------------------
-                0.00    0.00   23233/23233       cr_render [196]
-[1493]   0.0    0.00    0.00   23233         cr_faction [1493]
------------------------------------------------
-                0.00    0.00   22643/22643       write_borders [1897]
-[1494]   0.0    0.00    0.00   22643         b_validroad [1494]
------------------------------------------------
-                0.00    0.00   22643/22643       write_borders [1897]
-[1495]   0.0    0.00    0.00   22643         b_writeroad [1495]
------------------------------------------------
-                0.00    0.00   22638/22638       read_borders [706]
-[1496]   0.0    0.00    0.00   22638         find_bordertype [1496]
------------------------------------------------
-                0.00    0.00   22637/22637       read_borders [706]
-[1497]   0.0    0.00    0.00   22637         b_readroad [1497]
------------------------------------------------
-                0.00    0.00    1104/22301       aftermath [701]
-                0.00    0.00    7336/22301       battle_report [503]
-                0.00    0.00   13861/22301       print_stats [525]
-[1498]   0.0    0.00    0.00   22301         army_index [1498]
------------------------------------------------
-                0.00    0.00       7/21500       new_luxurytype [1739]
-                0.00    0.00    5762/21500       buy [707]
-                0.00    0.00   15731/21500       sell [498]
-[1499]   0.0    0.00    0.00   21500         resource2luxury [1499]
------------------------------------------------
-                0.00    0.00    3387/19671       lighthouse_range [728]
-                0.00    0.00   16284/19671       inside_building [1486]
-[1500]   0.0    0.00    0.00   19671         buildingcapacity [1500]
------------------------------------------------
-                0.00    0.00       7/19089       st_get_or_create [1743]
-                0.00    0.00   19082/19089       st_find [1503]
-[1501]   0.0    0.00    0.00   19089         st_find_i [1501]
------------------------------------------------
-                0.00    0.00       1/19085       renumber_cmd [780]
-                0.00    0.00       2/19085       new_ship [1229]
-                0.00    0.00   19082/19085       read_game [62]
-[1502]   0.0    0.00    0.00   19085         shash [1502]
------------------------------------------------
-                0.00    0.00   19082/19082       read_game [62]
-[1503]   0.0    0.00    0.00   19082         st_find [1503]
-                0.00    0.00   19082/19089       st_find_i [1501]
------------------------------------------------
-                0.00    0.00   18971/18971       u_set_building [1460]
-[1504]   0.0    0.00    0.00   18971         building_set_owner [1504]
------------------------------------------------
-                0.00    0.00       3/18963       give_control [1763]
-                0.00    0.00   18960/18963       u_set_ship [1485]
-[1505]   0.0    0.00    0.00   18963         ship_set_owner [1505]
------------------------------------------------
-                0.00    0.00   17289/17289       teach_cmd [272]
-[1506]   0.0    0.00    0.00   17289         parser_popstate [1506]
------------------------------------------------
-                0.00    0.00   17289/17289       teach_cmd [272]
-[1507]   0.0    0.00    0.00   17289         parser_pushstate [1507]
------------------------------------------------
-                0.00    0.00   16737/16737       roadto [606]
-[1508]   0.0    0.00    0.00   16737         dir_invert [1508]
------------------------------------------------
-                0.00    0.00   16191/16191       help_feed [678]
-[1509]   0.0    0.00    0.00   16191         add_donation [1509]
------------------------------------------------
-                0.00    0.00   14994/14994       cr_render [196]
-[1510]   0.0    0.00    0.00   14994         cr_string [1510]
------------------------------------------------
-                0.00    0.00   14111/14111       a_write [299]
-[1511]   0.0    0.00    0.00   14111         shiptrail_write [1511]
------------------------------------------------
-                0.00    0.00    3115/13500       drifting_ships [490]
-                0.00    0.00    3135/13500       sinkships [475]
-                0.00    0.00    7250/13500       ship_ready [354]
-[1512]   0.0    0.00    0.00   13500         enoughsailors [1512]
------------------------------------------------
-                0.00    0.00       9/11052       xml_spell [1727]
-                0.00    0.00      16/11052       do_combatmagic [825]
-                0.00    0.00      24/11052       add_spells [1668]
-                0.00    0.00     326/11052       parse_spellbooks [1827]
-                0.00    0.00    1174/11052       read_spellbook [1555]
-                0.00    0.00    1312/11052       read_mage [1559]
-                0.00    0.00    8191/11052       read_seenspell [1522]
-[1513]   0.0    0.00    0.00   11052         find_spell [1513]
-                0.00    0.00   11052/11052       sp_alias [1514]
------------------------------------------------
-                0.00    0.00   11052/11052       find_spell [1513]
-[1514]   0.0    0.00    0.00   11052         sp_alias [1514]
------------------------------------------------
-                0.00    0.00       1/10475       item_done [1811]
-                0.00    0.00      57/10475       terraform_region [932]
-                0.00    0.00   10417/10475       free_luxuries [1516]
-[1515]   0.0    0.00    0.00   10475         i_freeall [1515]
-                0.00    0.00   18220/374425      i_free [1400]
------------------------------------------------
-                0.00    0.00   10417/10417       a_free [558]
-[1516]   0.0    0.00    0.00   10417         free_luxuries [1516]
-                0.00    0.00   10417/10475       i_freeall [1515]
------------------------------------------------
-                0.00    0.00    9147/9147        report_plaintext [4]
-[1517]   0.0    0.00    0.00    9147         merge_messages [1517]
------------------------------------------------
-                0.00    0.00    9147/9147        report_plaintext [4]
-[1518]   0.0    0.00    0.00    9147         split_messages [1518]
------------------------------------------------
-                0.00    0.00    8962/8962        battle_flee [352]
-[1519]   0.0    0.00    0.00    8962         hpflee [1519]
------------------------------------------------
-                0.00    0.00    1909/8788        parse_messages [832]
-                0.00    0.00    6879/8788        xml_readstrings [863]
-[1520]   0.0    0.00    0.00    8788         xml_cleanup_string [1520]
------------------------------------------------
-                0.00    0.00    8622/8622        read_reference [726]
-[1521]   0.0    0.00    0.00    8622         read_unit_reference [1521]
------------------------------------------------
-                0.00    0.00    8191/8191        a_read_i [390]
-[1522]   0.0    0.00    0.00    8191         read_seenspell [1522]
-                0.00    0.00    8191/11052       find_spell [1513]
------------------------------------------------
-                0.00    0.00    8187/8187        a_write [299]
-[1523]   0.0    0.00    0.00    8187         write_seenspell [1523]
------------------------------------------------
-                0.00    0.00    7964/7964        report_crtypes [428]
-[1524]   0.0    0.00    0.00    7964         nrt_section [1524]
------------------------------------------------
-                0.00    0.00    7915/7915        report_resources [210]
-[1525]   0.0    0.00    0.00    7915         visible_default [1525]
------------------------------------------------
-                0.00    0.00    1762/7889        tolua_region_set_resource [1057]
-                0.00    0.00    6127/7889        tolua_region_get_resource [976]
-[1526]   0.0    0.00    0.00    7889         special_resources [1526]
------------------------------------------------
-                0.00    0.00    2704/7493        leveled_allocation [888]
-                0.00    0.00    4789/7493        attrib_allocation [914]
-[1527]   0.0    0.00    0.00    7493         required [1527]
------------------------------------------------
-                0.00    0.00    7336/7336        battle_report [503]
-[1528]   0.0    0.00    0.00    7336         get_alive [1528]
------------------------------------------------
-                0.00    0.00    7220/7220        a_write [299]
-[1529]   0.0    0.00    0.00    7220         a_writestring [1529]
------------------------------------------------
-                0.00    0.00    7153/7153        cr_render [196]
-[1530]   0.0    0.00    0.00    7153         cr_ship [1530]
------------------------------------------------
-                0.00    0.00    7085/7085        a_read_i [390]
-[1531]   0.0    0.00    0.00    7085         a_readprivate [1531]
------------------------------------------------
-                0.00    0.00      16/6576        xml_readarmor [1736]
-                0.00    0.00      21/6576        parse_ships [1305]
-                0.00    0.00     250/6576        parse_buildings [1131]
-                0.00    0.00     268/6576        parse_ai [1662]
-                0.00    0.00     303/6576        xml_readweapon [1266]
-                0.00    0.00     318/6576        parse_resources [1086]
-                0.00    0.00     942/6576        xml_readitem [1107]
-                0.00    0.00    1660/6576        parse_spells [1120]
-                0.00    0.00    2798/6576        parse_races [1104]
-[1532]   0.0    0.00    0.00    6576         xml_bvalue [1532]
------------------------------------------------
-                0.00    0.00       4/5453        parse_resources [1086]
-                0.00    0.00       7/5453        xml_readluxury [1745]
-                0.00    0.00       8/5453        xml_readarmor [1736]
-                0.00    0.00      11/5453        parse_calendar [1252]
-                0.00    0.00      15/5453        xml_readpotion [1714]
-                0.00    0.00      24/5453        add_spells [1668]
-                0.00    0.00      63/5453        parse_ships [1305]
-                0.00    0.00     108/5453        xml_readweapon [1266]
-                0.00    0.00     134/5453        parse_ai [1662]
-                0.00    0.00     162/5453        xml_readrequirements [1186]
-                0.00    0.00     179/5453        parse_buildings [1131]
-                0.00    0.00     326/5453        parse_spellbooks [1827]
-                0.00    0.00     471/5453        xml_readitem [1107]
-                0.00    0.00     504/5453        xml_readconstruction [1183]
-                0.00    0.00     731/5453        parse_spells [1120]
-                0.00    0.00    2706/5453        parse_races [1104]
-[1533]   0.0    0.00    0.00    5453         xml_ivalue [1533]
------------------------------------------------
-                0.00    0.00     946/5330        centre [789]
-                0.00    0.00    4384/5330        battle_punit [620]
-[1534]   0.0    0.00    0.00    5330         freestrlist [1534]
------------------------------------------------
-                0.00    0.00    4066/4066        report_template [87]
-[1535]   0.0    0.00    0.00    4066         buildingmaintenance [1535]
------------------------------------------------
-                0.00    0.00    4052/4052        curse_age [1538]
-[1536]   0.0    0.00    0.00    4052         c_clearflag [1536]
------------------------------------------------
-                0.00    0.00      32/4052        make_curse [802]
-                0.00    0.00    4020/4052        curse_read [770]
-[1537]   0.0    0.00    0.00    4052         chash [1537]
------------------------------------------------
-                0.00    0.00    4052/4052        a_age [418]
-[1538]   0.0    0.00    0.00    4052         curse_age [1538]
-                0.00    0.00    4052/4052        c_clearflag [1536]
-                0.00    0.00       1/1           flyingship_age [1803]
------------------------------------------------
-                0.00    0.00    4052/4052        a_new [1376]
-[1539]   0.0    0.00    0.00    4052         curse_init [1539]
------------------------------------------------
-                0.00    0.00       2/3862        sp_igjarjuk [923]
-                0.00    0.00       6/3862        tolua_unit_set_name [3148]
-                0.00    0.00      27/3862        dragon_name [1095]
-                0.00    0.00      34/3862        dracoid_name [1126]
-                0.00    0.00     196/3862        make_name [970]
-                0.00    0.00     666/3862        generic_name [962]
-                0.00    0.00    2931/3862        name_unit [803]
-[1540]   0.0    0.00    0.00    3862         unit_setname [1540]
------------------------------------------------
-                0.00    0.00       9/3717        magic [157]
-                0.00    0.00    3708/3717        do_combatmagic [825]
-[1541]   0.0    0.00    0.00    3717         free_castorders [1541]
-                0.00    0.00     229/303         free_castorder [1609]
------------------------------------------------
-                0.00    0.00    3639/3639        attack [84]
-[1542]   0.0    0.00    0.00    3639         setreload [1542]
------------------------------------------------
-                0.00    0.00     231/3203        update_spells [381]
-                0.00    0.00    2972/3203        unit_get_spellbook [427]
-[1543]   0.0    0.00    0.00    3203         faction_get_spellbook [1543]
-                0.00    0.00    3165/3171        get_spellbook [1544]
------------------------------------------------
-                0.00    0.00       6/3171        parse_spellbooks [1827]
-                0.00    0.00    3165/3171        faction_get_spellbook [1543]
-[1544]   0.0    0.00    0.00    3171         get_spellbook [1544]
-                0.00    0.00       6/380         create_spellbook [1606]
------------------------------------------------
-                0.00    0.00    3114/3114        name_cmd [835]
-[1545]   0.0    0.00    0.00    3114         rename_cmd [1545]
------------------------------------------------
-                0.00    0.00       1/3113        trigger_giveitem [1891]
-                0.00    0.00       1/3113        trigger_shock [1892]
-                0.00    0.00       2/3113        trigger_changefaction [1783]
-                0.00    0.00       3/3113        trigger_changerace [1297]
-                0.00    0.00       5/3113        trigger_killunit [1752]
-                0.00    0.00       5/3113        trigger_timeout [1753]
-                0.00    0.00    3096/3113        read_triggers <cycle 4> [798]
-[1546]   0.0    0.00    0.00    3113         t_new [1546]
-                0.00    0.00      18/18          timeout_init [1710]
-                0.00    0.00      12/12          changefaction_init [1721]
-                0.00    0.00       6/6           changerace_init [1746]
-                0.00    0.00       2/2           giveitem_init [1774]
------------------------------------------------
-                0.00    0.00     122/3100        maxbuild [946]
-                0.00    0.00    2978/3100        build [691]
-[1547]   0.0    0.00    0.00    3100         required [1547]
------------------------------------------------
-                0.00    0.00    3096/3096        read_triggers <cycle 4> [798]
-[1548]   0.0    0.00    0.00    3096         tt_find [1548]
------------------------------------------------
-                0.00    0.00     319/2913        loot_items [810]
-                0.00    0.00    2594/2913        aftermath [701]
-[1549]   0.0    0.00    0.00    2913         dead_fighters [1549]
------------------------------------------------
-                0.00    0.00       2/2854        summon_allies [925]
-                0.00    0.00     149/2854        print_stats [525]
-                0.00    0.00    2703/2854        print_header [838]
-[1550]   0.0    0.00    0.00    2854         is_attacker [1550]
------------------------------------------------
-                0.00    0.00       1/2742        oldfamiliars [1240]
-                0.00    0.00      10/2742        spawn_dragons [411]
-                0.00    0.00      17/2742        recruit_dracoids [837]
-                0.00    0.00      20/2742        spawn_seaserpent [831]
-                0.00    0.00      21/2742        spawn_undead [629]
-                0.00    0.00      48/2742        terraform_region [932]
-                0.00    0.00     319/2742        kill_troop [532]
-                0.00    0.00     639/2742        spawn_braineaters [505]
-                0.00    0.00    1667/2742        add_recruits [371]
-[1551]   0.0    0.00    0.00    2742         get_equipment [1551]
------------------------------------------------
-                0.00    0.00    2650/2650        a_new [1376]
-[1552]   0.0    0.00    0.00    2650         a_initeffect [1552]
------------------------------------------------
-                0.00    0.00    2468/2468        mt_new [1588]
-[1553]   0.0    0.00    0.00    2468         find_argtype [1553]
------------------------------------------------
-                0.00    0.00    2468/2468        crt_register [1006]
-[1554]   0.0    0.00    0.00    2468         tsf_find [1554]
------------------------------------------------
-                0.00    0.00     233/2324        readfaction [767]
-                0.00    0.00    2091/2324        read_mage [1559]
-[1555]   0.0    0.00    0.00    2324         read_spellbook [1555]
-                0.00    0.00    1174/11052       find_spell [1513]
-                0.00    0.00    1174/1524        spellbook_add [1572]
-                0.00    0.00     367/380         create_spellbook [1606]
------------------------------------------------
-                0.00    0.00     232/2321        writefaction [762]
-                0.00    0.00    2089/2321        write_mage [1560]
-[1556]   0.0    0.00    0.00    2321         write_spellbook [1556]
------------------------------------------------
-                0.00    0.00      99/2112        eff_spelllevel [845]
-                0.00    0.00     489/2112        u_hasspell [951]
-                0.00    0.00    1524/2112        spellbook_add [1572]
-[1557]   0.0    0.00    0.00    2112         spellbook_get [1557]
------------------------------------------------
-                0.00    0.00    2092/2092        a_new [1376]
-[1558]   0.0    0.00    0.00    2092         init_mage [1558]
------------------------------------------------
-                0.00    0.00    2091/2091        a_read_i [390]
-[1559]   0.0    0.00    0.00    2091         read_mage [1559]
-                0.00    0.00    2091/2324        read_spellbook [1555]
-                0.00    0.00    1312/11052       find_spell [1513]
------------------------------------------------
-                0.00    0.00    2089/2089        a_write [299]
-[1560]   0.0    0.00    0.00    2089         write_mage [1560]
-                0.00    0.00    2089/2321        write_spellbook [1556]
------------------------------------------------
-                0.00    0.00    2081/2081        a_new [1376]
-[1561]   0.0    0.00    0.00    2081         a_init_reportspell [1561]
------------------------------------------------
-                0.00    0.00     644/2073        join_allies [693]
-                0.00    0.00    1429/2073        start_battle [297]
-[1562]   0.0    0.00    0.00    2073         set_enemy [1562]
------------------------------------------------
-                0.00    0.00    1909/1909        nrt_register [883]
-[1563]   0.0    0.00    0.00    1909         section_find [1563]
------------------------------------------------
-                0.00    0.00    1716/1716        recruit [650]
-[1564]   0.0    0.00    0.00    1716         recruit_cost [1564]
------------------------------------------------
-                0.00    0.00       3/1697        join_group [1083]
-                0.00    0.00    1694/1697        read_groups [782]
-[1565]   0.0    0.00    0.00    1697         new_group [1565]
------------------------------------------------
-                0.00    0.00    1670/1670        select_recruitment [1079]
-[1566]   0.0    0.00    0.00    1670         any_recruiters [1566]
------------------------------------------------
-                0.00    0.00    1670/1670        select_recruitment [1079]
-[1567]   0.0    0.00    0.00    1670         horse_recruiters [1567]
------------------------------------------------
-                0.00    0.00    1594/1594        expandrecruit [349]
-[1568]   0.0    0.00    0.00    1594         free_recruitments [1568]
-                0.00    0.00    1670/1936876     free_order [1356]
------------------------------------------------
-                0.00    0.00      15/1582        new_potiontype [1712]
-                0.00    0.00      19/1582        reshow_other [823]
-                0.00    0.00     337/1582        report_computer [9]
-                0.00    0.00     337/1582        report_plaintext [4]
-                0.00    0.00     348/1582        use_potion [801]
-                0.00    0.00     526/1582        create_item [617]
-[1569]   0.0    0.00    0.00    1582         resource2potion [1569]
------------------------------------------------
-                0.00    0.00    1564/1564        a_new [1376]
-[1570]   0.0    0.00    0.00    1564         init_handler [1570]
------------------------------------------------
-                0.00    0.00      18/1529        ship_update_owner [573]
-                0.00    0.00    1511/1529        ship_owner [438]
-[1571]   0.0    0.00    0.00    1529         ship_owner_ex [1571]
------------------------------------------------
-                0.00    0.00      24/1524        equipment_addspell [1702]
-                0.00    0.00     326/1524        parse_spellbooks [1827]
-                0.00    0.00    1174/1524        read_spellbook [1555]
-[1572]   0.0    0.00    0.00    1524         spellbook_add [1572]
-                0.00    0.00    1524/2112        spellbook_get [1557]
------------------------------------------------
-                0.00    0.00    1522/1522        a_age [418]
-[1573]   0.0    0.00    0.00    1522         age_unit [1573]
------------------------------------------------
-                0.00    0.00    1520/1520        join_allies [693]
-[1574]   0.0    0.00    0.00    1520         set_friendly [1574]
------------------------------------------------
-                0.00    0.00     326/1466        resolve [757]
-                0.00    0.00    1140/1466        read_reference [726]
-[1575]   0.0    0.00    0.00    1466         resolve_region_id [1575]
-                0.00    0.00    1466/46742       findregionbyid [1463]
------------------------------------------------
-                0.00    0.00     661/1429        join_battle [425]
-                0.00    0.00     768/1429        make_fighter [424]
-[1576]   0.0    0.00    0.00    1429         set_attacker [1576]
------------------------------------------------
-                0.00    0.00     114/1361        give_unit [952]
-                0.00    0.00     588/1361        give_men [857]
-                0.00    0.00     659/1361        can_give_men [940]
-[1577]   0.0    0.00    0.00    1361         unit_has_cursed_item [1577]
------------------------------------------------
-                0.00    0.00    1301/1301        leveled_allocation [888]
-[1578]   0.0    0.00    0.00    1301         rm_get [1578]
------------------------------------------------
-                0.00    0.00    1297/1297        make_fighter [424]
-[1579]   0.0    0.00    0.00    1297         add_tactics [1579]
------------------------------------------------
-                0.00    0.00    1297/1297        battle_free [1629]
-[1580]   0.0    0.00    0.00    1297         free_fighter [1580]
-                0.00    0.00     340/374425      i_free [1400]
-                0.00    0.00     340/257723      i_remove [1407]
------------------------------------------------
-                0.00    0.00    1295/1295        make_fighter [424]
-[1581]   0.0    0.00    0.00    1295         find_side [1581]
------------------------------------------------
-                0.00    0.00    1140/1140        read_reference [726]
-[1582]   0.0    0.00    0.00    1140         read_region_reference [1582]
------------------------------------------------
-                0.00    0.00       2/1119        wormhole_write [1785]
-                0.00    0.00    1117/1119        write_targetregion [1584]
-[1583]   0.0    0.00    0.00    1119         write_region_reference [1583]
------------------------------------------------
-                0.00    0.00    1117/1117        a_write [299]
-[1584]   0.0    0.00    0.00    1117         write_targetregion [1584]
-                0.00    0.00    1117/1119        write_region_reference [1583]
------------------------------------------------
-                0.00    0.00    1042/1042        monster_attacks [248]
-[1585]   0.0    0.00    0.00    1042         in_safe_building [1585]
-                0.00    0.00     318/26995       inside_building [1486]
------------------------------------------------
-                0.00    0.00       2/1041        disable_feature [771]
-                0.00    0.00       6/1041        tolua_unit_setskill [1163]
-                0.00    0.00      23/1041        xml_readweapon [1266]
-                0.00    0.00      84/1041        xml_readconstruction [1183]
-                0.00    0.00     106/1041        add_skills [1667]
-                0.00    0.00     820/1041        parse_races [1104]
-[1586]   0.0    0.00    0.00    1041         findskill [1586]
------------------------------------------------
-                0.00    0.00     957/957         mt_register [1007]
-[1587]   0.0    0.00    0.00     957         mt_id [1587]
------------------------------------------------
-                0.00    0.00     957/957         parse_messages [832]
-[1588]   0.0    0.00    0.00     957         mt_new [1588]
-                0.00    0.00    2468/2468        find_argtype [1553]
------------------------------------------------
-                0.00    0.00     894/894         follow_unit [331]
-[1589]   0.0    0.00    0.00     894         make_follow [1589]
-                0.00    0.00     894/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     820/820         shipspeed [669]
-[1590]   0.0    0.00    0.00     820         curse_geteffect_int [1590]
-                0.00    0.00     820/432940      curse_geteffect [1395]
------------------------------------------------
-                0.00    0.00     785/785         i_canuse [569]
-[1591]   0.0    0.00    0.00     785         lua_canuse_item [1591]
------------------------------------------------
-                0.00    0.00     763/763         a_new [1376]
-[1592]   0.0    0.00    0.00     763         init_skillmod [1592]
------------------------------------------------
-                0.00    0.00     132/677         can_contact [1634]
-                0.00    0.00     222/677         leave_cmd [721]
-                0.00    0.00     323/677         enter_building [695]
-[1593]   0.0    0.00    0.00     677         slipthru [1593]
------------------------------------------------
-                0.00    0.00       1/608         sp_holyground [1068]
-                0.00    0.00       1/608         sp_summonshadowlords [1034]
-                0.00    0.00       1/608         sp_generous [1040]
-                0.00    0.00       1/608         sp_enterastral [1045]
-                0.00    0.00       1/608         sp_flying_ship [1064]
-                0.00    0.00       2/608         sp_summon_familiar [1025]
-                0.00    0.00       2/608         sp_viewreality [784]
-                0.00    0.00       3/608         sp_song_of_peace [939]
-                0.00    0.00       3/608         sp_eternizewall [988]
-                0.00    0.00       4/608         sp_goodwinds [974]
-                0.00    0.00       6/608         sp_mallornhain [968]
-                0.00    0.00       6/608         sp_summonundead [896]
-                0.00    0.00       8/608         do_fumble [1062]
-                0.00    0.00       9/608         sp_stormwinds [871]
-                0.00    0.00      10/608         sp_hain [931]
-                0.00    0.00      13/608         sp_blessedharvest [847]
-                0.00    0.00     121/608         lua_callspell [1645]
-                0.00    0.00     196/608         verify_targets [1027]
-                0.00    0.00     220/608         magic [157]
-[1594]   0.0    0.00    0.00     608         co_get_region [1594]
------------------------------------------------
-                0.00    0.00     574/574         do_battle [64]
-[1595]   0.0    0.00    0.00     574         battle_update [1595]
------------------------------------------------
-                0.00    0.00      27/560         dragon_name [1095]
-                0.00    0.00     533/560         treeman_neighbour [1201]
-[1596]   0.0    0.00    0.00     560         oldterrain [1596]
------------------------------------------------
-                0.00    0.00     554/554         a_free [558]
-[1597]   0.0    0.00    0.00     554         a_finalizeeffect [1597]
------------------------------------------------
-                0.00    0.00     552/552         battle_free [1629]
-[1598]   0.0    0.00    0.00     552         free_side [1598]
------------------------------------------------
-                0.00    0.00       6/501         parse_resources [1086]
-                0.00    0.00      14/501         parse_ships [1305]
-                0.00    0.00      23/501         xml_readweapon [1266]
-                0.00    0.00      24/501         xml_readarmor [1736]
-                0.00    0.00      27/501         parse_buildings [1131]
-                0.00    0.00      67/501         parse_ai [1662]
-                0.00    0.00     340/501         parse_races [1104]
-[1599]   0.0    0.00    0.00     501         xml_fvalue [1599]
------------------------------------------------
-                0.00    0.00       1/465         xml_readconstruction [1183]
-                0.00    0.00       6/465         parse_resources [1086]
-                0.00    0.00       6/465         add_callbacks [1666]
-                0.00    0.00     178/465         parse_function [1637]
-                0.00    0.00     274/465         parse_spells [1120]
-[1600]   0.0    0.00    0.00     465         get_function [1600]
------------------------------------------------
-                0.00    0.00     464/464         prepare_report [8]
-[1601]   0.0    0.00    0.00     464         lastregion [1601]
------------------------------------------------
-                0.00    0.00      47/451         msg_set_region [1685]
-                0.00    0.00      80/451         msg_set_resource [1226]
-                0.00    0.00     121/451         msg_set_unit [1646]
-                0.00    0.00     203/451         msg_set_int [1633]
-[1602]   0.0    0.00    0.00     451         mtype_get_param [1602]
------------------------------------------------
-                0.00    0.00       2/433         set_factionstealth [183]
-                0.00    0.00     431/433         create_unit [296]
-[1603]   0.0    0.00    0.00     433         make_otherfaction [1603]
-                0.00    0.00     433/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      40/428         regions_in_range [675]
-                0.00    0.00     388/428         internal_path_find [345]
-[1604]   0.0    0.00    0.00     428         free_nodes [1604]
-                0.00    0.00  152803/152803      free_node [1426]
------------------------------------------------
-                0.00    0.00     406/406         battle_effects [1125]
-[1605]   0.0    0.00    0.00     406         PopulationDamage [1605]
------------------------------------------------
-                0.00    0.00       6/380         get_spellbook [1544]
-                0.00    0.00       7/380         equipment_addspell [1702]
-                0.00    0.00     367/380         read_spellbook [1555]
-[1606]   0.0    0.00    0.00     380         create_spellbook [1606]
------------------------------------------------
-                0.00    0.00     343/343         research_cmd [886]
-[1607]   0.0    0.00    0.00     343         rough_amount [1607]
------------------------------------------------
-                0.00    0.00     314/314         make_fighter [424]
-[1608]   0.0    0.00    0.00     314         CavalrySkill [1608]
------------------------------------------------
-                0.00    0.00      74/303         cast_combatspell [623]
-                0.00    0.00     229/303         free_castorders [1541]
-[1609]   0.0    0.00    0.00     303         free_castorder [1609]
-                0.00    0.00     220/1936876     free_order [1356]
-                0.00    0.00      26/26          free_spellparameter [1700]
------------------------------------------------
-                0.00    0.00     286/286         checkpasswd [1268]
-[1610]   0.0    0.00    0.00     286         password_verify [1610]
------------------------------------------------
-                              272147             freetokens [1611]
-                0.00    0.00      12/267         free_locales [1311]
-                0.00    0.00     255/267         unit_getspell [758]
-[1611]   0.0    0.00    0.00     267+272147  freetokens [1611]
-                              272147             freetokens [1611]
------------------------------------------------
-                0.00    0.00     250/250         tpregion [1085]
-[1612]   0.0    0.00    0.00     250         real2tp [1612]
------------------------------------------------
-                0.00    0.00     248/248         skillmod <cycle 1> [214]
-[1613]   0.0    0.00    0.00     248         sm_smithy [1613]
------------------------------------------------
-                0.00    0.00       1/240         kernel_init [1814]
-                0.00    0.00       1/240         register_race_description_function [1848]
-                0.00    0.00       2/240         register_weapons [1857]
-                0.00    0.00       2/240         register_arena [1832]
-                0.00    0.00       2/240         register_item_useonother [1778]
-                0.00    0.00       3/240         register_item_give [1767]
-                0.00    0.00       5/240         register_spells [1251]
-                0.00    0.00       5/240         register_buildings [1837]
-                0.00    0.00       7/240         register_race_name_function [1740]
-                0.00    0.00       9/240         register_resources [1852]
-                0.00    0.00      12/240         register_tolua_helpers [1854]
-                0.00    0.00      13/240         register_races [1849]
-                0.00    0.00      27/240         register_item_use [1699]
-                0.00    0.00     151/240         register_spelldata [1250]
-[1614]   0.0    0.00    0.00     240         register_function [1614]
------------------------------------------------
-                0.00    0.00     234/234         set_leftship [1134]
-[1615]   0.0    0.00    0.00     234         make_leftship [1615]
-                0.00    0.00     234/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00     233/233         read_password [1619]
-[1616]   0.0    0.00    0.00     233         faction_setpassword [1616]
------------------------------------------------
-                0.00    0.00     233/233         read_game [62]
-[1617]   0.0    0.00    0.00     233         fhash [1617]
------------------------------------------------
-                0.00    0.00     233/233         read_password [1619]
-[1618]   0.0    0.00    0.00     233         password_encode [1618]
------------------------------------------------
-                0.00    0.00     233/233         readfaction [767]
-[1619]   0.0    0.00    0.00     233         read_password [1619]
-                0.00    0.00     233/233         password_encode [1618]
-                0.00    0.00     233/233         faction_setpassword [1616]
------------------------------------------------
-                0.00    0.00     233/233         readfaction [767]
-[1620]   0.0    0.00    0.00     233         set_email [1620]
-                0.00    0.00     232/232         spc_email_isvalid [1621]
------------------------------------------------
-                0.00    0.00     232/232         set_email [1620]
-[1621]   0.0    0.00    0.00     232         spc_email_isvalid [1621]
------------------------------------------------
-                0.00    0.00     232/232         get_addresses [20]
-[1622]   0.0    0.00    0.00     232         transfer_seen [1622]
------------------------------------------------
-                0.00    0.00     232/232         writefaction [762]
-[1623]   0.0    0.00    0.00     232         write_password [1623]
------------------------------------------------
-                0.00    0.00       1/231         writegame [82]
-                0.00    0.00     230/231         report_computer [9]
-[1624]   0.0    0.00    0.00     231         eressea_version [1624]
------------------------------------------------
-                0.00    0.00     230/230         report_computer [9]
-[1625]   0.0    0.00    0.00     230         reset_translations [1625]
------------------------------------------------
-                0.00    0.00       9/229         do_combatmagic [825]
-                0.00    0.00     220/229         magic [157]
-[1626]   0.0    0.00    0.00     229         add_castorder [1626]
------------------------------------------------
-                0.00    0.00     214/214         copy_arg [521]
-[1627]   0.0    0.00    0.00     214         var_copy_items [1627]
------------------------------------------------
-                0.00    0.00     209/209         free_arg [1371]
-[1628]   0.0    0.00    0.00     209         var_free_resources [1628]
------------------------------------------------
-                0.00    0.00     206/206         free_battle [1630]
-[1629]   0.0    0.00    0.00     206         battle_free [1629]
-                0.00    0.00    1297/1297        free_fighter [1580]
-                0.00    0.00     552/552         free_side [1598]
------------------------------------------------
-                0.00    0.00     206/206         do_battle [64]
-[1630]   0.0    0.00    0.00     206         free_battle [1630]
-                0.00    0.00     206/206         battle_free [1629]
------------------------------------------------
-                0.00    0.00     206/206         aftermath [701]
-[1631]   0.0    0.00    0.00     206         reorder_fleeing [1631]
------------------------------------------------
-                0.00    0.00     206/206         copy_arg [521]
-[1632]   0.0    0.00    0.00     206         var_copy_resources [1632]
------------------------------------------------
-                0.00    0.00     203/203         tolua_msg_set_int [2937]
-[1633]   0.0    0.00    0.00     203         msg_set_int [1633]
-                0.00    0.00     203/451         mtype_get_param [1602]
------------------------------------------------
-                0.00    0.00      12/192         spy_cmd [990]
-                0.00    0.00      65/192         steal_cmd [766]
-                0.00    0.00     115/192         contact_cmd [965]
-[1634]   0.0    0.00    0.00     192         can_contact [1634]
-                0.00    0.00     132/677         slipthru [1593]
------------------------------------------------
-                0.00    0.00     186/186         a_age [418]
-[1635]   0.0    0.00    0.00     186         leftship_age [1635]
------------------------------------------------
-                0.00    0.00     185/185         it_get_or_create [1115]
-[1636]   0.0    0.00    0.00     185         it_register [1636]
------------------------------------------------
-                0.00    0.00       3/178         parse_buildings [1131]
-                0.00    0.00       3/178         xml_readweapon [1266]
-                0.00    0.00      19/178         parse_resources [1086]
-                0.00    0.00      29/178         parse_spells [1120]
-                0.00    0.00      55/178         xml_readitem [1107]
-                0.00    0.00      69/178         parse_races [1104]
-[1637]   0.0    0.00    0.00     178         parse_function [1637]
-                0.00    0.00     178/465         get_function [1600]
------------------------------------------------
-                0.00    0.00     166/166         create_spell [1639]
-[1638]   0.0    0.00    0.00     166         add_spell [1638]
------------------------------------------------
-                0.00    0.00     166/166         parse_spells [1120]
-[1639]   0.0    0.00    0.00     166         create_spell [1639]
-                0.00    0.00     166/166         add_spell [1638]
------------------------------------------------
-                0.00    0.00     162/162         rt_get_or_create [1139]
-[1640]   0.0    0.00    0.00     162         rt_register [1640]
------------------------------------------------
-                0.00    0.00       1/160         move_iceberg [1094]
-                0.00    0.00       7/160         attack [84]
-                0.00    0.00      12/160         aftermath [701]
-                0.00    0.00      15/160         drifting_ships [490]
-                0.00    0.00      29/160         sail [181]
-                0.00    0.00      96/160         sinkships [475]
-[1641]   0.0    0.00    0.00     160         damage_ship [1641]
------------------------------------------------
-                0.00    0.00     136/136         a_read_i [390]
-[1642]   0.0    0.00    0.00     136         a_readstring [1642]
------------------------------------------------
-                0.00    0.00     133/133         caught_target [1003]
-[1643]   0.0    0.00    0.00     133         present [1643]
------------------------------------------------
-                0.00    0.00     121/121         lua_callspell [1645]
-[1644]   0.0    0.00    0.00     121         co_get_caster [1644]
------------------------------------------------
-                0.00    0.00       2/121         do_fumble [1062]
-                0.00    0.00     119/121         magic [157]
-[1645]   0.0    0.00    0.00     121         lua_callspell [1645]
-                0.00    0.00     121/121         co_get_caster [1644]
-                0.00    0.00     121/608         co_get_region [1594]
------------------------------------------------
-                0.00    0.00     121/121         tolua_msg_set_unit [2941]
-[1646]   0.0    0.00    0.00     121         msg_set_unit [1646]
-                0.00    0.00     121/451         mtype_get_param [1602]
------------------------------------------------
-                0.00    0.00     118/118         init_translations [1033]
-[1647]   0.0    0.00    0.00     118         keyword_key [1647]
-                0.00    0.00     118/2009097     keyword [1355]
------------------------------------------------
-                0.00    0.00     106/106         a_read_i [390]
-[1648]   0.0    0.00    0.00     106         a_readkey [1648]
-                0.00    0.00     106/58518       a_readint [1448]
------------------------------------------------
-                0.00    0.00     106/106         add_skills [1667]
-[1649]   0.0    0.00    0.00     106         equipment_setskill [1649]
------------------------------------------------
-                0.00    0.00      99/99          magic [157]
-[1650]   0.0    0.00    0.00      99         spl_costtyp [1650]
------------------------------------------------
-                0.00    0.00       9/97          kill_troop [532]
-                0.00    0.00      88/97          gift_items [891]
-[1651]   0.0    0.00    0.00      97         i_merge [1651]
-                0.00    0.00      86/374425      i_free [1400]
-                0.00    0.00      86/257723      i_remove [1407]
------------------------------------------------
-                0.00    0.00      97/97          piracy_cmd [660]
-[1652]   0.0    0.00    0.00      97         mk_piracy [1652]
-                0.00    0.00      97/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      97/97          a_free [558]
-[1653]   0.0    0.00    0.00      97         piracy_done [1653]
------------------------------------------------
-                0.00    0.00      97/97          a_new [1376]
-[1654]   0.0    0.00    0.00      97         piracy_init [1654]
------------------------------------------------
-                0.00    0.00      88/88          init_translations [1033]
-[1655]   0.0    0.00    0.00      88         parameter_key [1655]
------------------------------------------------
-                0.00    0.00      21/74          sp_kampfzauber [957]
-                0.00    0.00      53/74          sp_dragonodem [627]
-[1656]   0.0    0.00    0.00      74         get_force [1656]
------------------------------------------------
-                0.00    0.00      21/74          sp_kampfzauber [957]
-                0.00    0.00      53/74          sp_dragonodem [627]
-[1657]   0.0    0.00    0.00      74         spell_damage [1657]
------------------------------------------------
-                0.00    0.00      12/73          add_subsets [1669]
-                0.00    0.00      61/73          parse_equipment [1170]
-[1658]   0.0    0.00    0.00      73         create_equipment [1658]
------------------------------------------------
-                0.00    0.00      72/72          xml_readitem [1107]
-[1659]   0.0    0.00    0.00      72         default_score [1659]
------------------------------------------------
-                0.00    0.00      68/68          a_read_i [390]
-[1660]   0.0    0.00    0.00      68         a_readchars [1660]
------------------------------------------------
-                0.00    0.00      68/68          rc_get_or_create [1105]
-[1661]   0.0    0.00    0.00      68         rc_create [1661]
------------------------------------------------
-                0.00    0.00      67/67          parse_races [1104]
-[1662]   0.0    0.00    0.00      67         parse_ai [1662]
-                0.00    0.00     268/6576        xml_bvalue [1532]
-                0.00    0.00     134/5453        xml_ivalue [1533]
-                0.00    0.00      67/501         xml_fvalue [1599]
------------------------------------------------
-                0.00    0.00      66/66          a_write [299]
-[1663]   0.0    0.00    0.00      66         a_writechars [1663]
------------------------------------------------
-                0.00    0.00      65/65          add_items [1169]
-[1664]   0.0    0.00    0.00      65         equipment_setitem [1664]
------------------------------------------------
-                0.00    0.00       2/65          default_order [902]
-                0.00    0.00       2/65          disable_feature [771]
-                0.00    0.00      61/65          json_keyword [1127]
-[1665]   0.0    0.00    0.00      65         findkeyword [1665]
------------------------------------------------
-                0.00    0.00      61/61          parse_equipment [1170]
-[1666]   0.0    0.00    0.00      61         add_callbacks [1666]
-                0.00    0.00       6/465         get_function [1600]
-                0.00    0.00       6/6           equipment_setcallback [1747]
------------------------------------------------
-                0.00    0.00      61/61          parse_equipment [1170]
-[1667]   0.0    0.00    0.00      61         add_skills [1667]
-                0.00    0.00     106/1041        findskill [1586]
-                0.00    0.00     106/106         equipment_setskill [1649]
------------------------------------------------
-                0.00    0.00      61/61          parse_equipment [1170]
-[1668]   0.0    0.00    0.00      61         add_spells [1668]
-                0.00    0.00      24/11052       find_spell [1513]
-                0.00    0.00      24/5453        xml_ivalue [1533]
-                0.00    0.00      24/24          equipment_addspell [1702]
------------------------------------------------
-                0.00    0.00      61/61          parse_equipment [1170]
-[1669]   0.0    0.00    0.00      61         add_subsets [1669]
-                0.00    0.00      12/73          create_equipment [1658]
------------------------------------------------
-                0.00    0.00      58/58          tolua_dict_get [1218]
-[1670]   0.0    0.00    0.00      58         dict_get [1670]
------------------------------------------------
-                0.00    0.00      58/58          tolua_dict_get [1218]
-[1671]   0.0    0.00    0.00      58         dict_name [1671]
------------------------------------------------
-                0.00    0.00      58/58          add_resource [1162]
-[1672]   0.0    0.00    0.00      58         rmt_get [1672]
------------------------------------------------
-                0.00    0.00      57/57          terraform_region [932]
-[1673]   0.0    0.00    0.00      57         free_land [1673]
------------------------------------------------
-                0.00    0.00       3/56          add_proc_postregion [1761]
-                0.00    0.00       3/56          add_proc_unit [1762]
-                0.00    0.00       8/56          add_proc_region [1733]
-                0.00    0.00      13/56          add_proc_global [1716]
-                0.00    0.00      29/56          add_proc_order [1692]
-[1674]   0.0    0.00    0.00      56         add_proc [1674]
------------------------------------------------
-                0.00    0.00      56/56          a_new [1376]
-[1675]   0.0    0.00    0.00      56         dict_init [1675]
------------------------------------------------
-                0.00    0.00      56/56          a_read_i [390]
-[1676]   0.0    0.00    0.00      56         dict_read [1676]
------------------------------------------------
-                0.00    0.00      56/56          a_write [299]
-[1677]   0.0    0.00    0.00      56         dict_write [1677]
------------------------------------------------
-                0.00    0.00       1/55          chaos_register [1797]
-                0.00    0.00       1/55          wormholes_register [1895]
-                0.00    0.00       1/55          register_borders [1835]
-                0.00    0.00       1/55          register_arena [1832]
-                0.00    0.00       1/55          register_artrewards [1833]
-                0.00    0.00       2/55          register_tolua_helpers [1854]
-                0.00    0.00       2/55          register_spells [1251]
-                0.00    0.00       4/55          register_museum [1845]
-                0.00    0.00      42/55          register_attributes [1834]
-[1678]   0.0    0.00    0.00      55         at_register [1678]
-                0.00    0.00      55/251874      __at_hashkey [3279]
------------------------------------------------
-                0.00    0.00      54/54          parse_resources [1086]
-[1679]   0.0    0.00    0.00      54         it_set_appearance [1679]
------------------------------------------------
-                0.00    0.00      18/52          json_terrains [1190]
-                0.00    0.00      34/52          parse_ships [1305]
-[1680]   0.0    0.00    0.00      52         get_or_create_terrain [1680]
-                0.00    0.00      52/178322      terrain_find_i [1421]
------------------------------------------------
-                0.00    0.00      51/51          report_summary [614]
-[1681]   0.0    0.00    0.00      51         rcomp [1681]
------------------------------------------------
-                0.00    0.00      48/48          terraform_region [932]
-[1682]   0.0    0.00    0.00      48         get_maxluxuries [1682]
------------------------------------------------
-                0.00    0.00      48/48          terraform_region [932]
-[1683]   0.0    0.00    0.00      48         region_setname [1683]
------------------------------------------------
-                0.00    0.00       1/48          tolua_unit_add_order [1276]
-                0.00    0.00      47/48          give_peasants [1060]
-[1684]   0.0    0.00    0.00      48         unit_addorder [1684]
------------------------------------------------
-                0.00    0.00      47/47          tolua_msg_set_region [2939]
-[1685]   0.0    0.00    0.00      47         msg_set_region [1685]
-                0.00    0.00      47/451         mtype_get_param [1602]
------------------------------------------------
-                0.00    0.00       1/44          register_magicresistance [1844]
-                0.00    0.00       1/44          register_flyingship [1840]
-                0.00    0.00       2/44          register_spells [1251]
-                0.00    0.00       3/44          register_shipcurse [1853]
-                0.00    0.00       4/44          register_buildingcurse [1836]
-                0.00    0.00      14/44          register_unitcurse [1856]
-                0.00    0.00      19/44          register_regioncurse [1850]
-[1686]   0.0    0.00    0.00      44         ct_register [1686]
------------------------------------------------
-                0.00    0.00      42/42          report_summary [614]
-[1687]   0.0    0.00    0.00      42         pcomp [1687]
------------------------------------------------
-                0.00    0.00      33/33          set_param [1689]
-[1688]   0.0    0.00    0.00      33         pack_keyval [1688]
------------------------------------------------
-                0.00    0.00       3/33          parse_param [1765]
-                0.00    0.00      30/33          config_set [444]
-[1689]   0.0    0.00    0.00      33         set_param [1689]
-                0.00    0.00      33/33          pack_keyval [1688]
------------------------------------------------
-                0.00    0.00       7/32          translation_init [1890]
-                0.00    0.00      25/32          register_reports [1851]
-[1690]   0.0    0.00    0.00      32         add_function [1690]
------------------------------------------------
-                0.00    0.00       7/30          attrib_allocation [914]
-                0.00    0.00      23/30          allocate_resource [752]
-[1691]   0.0    0.00    0.00      30         limit_seeds [1691]
------------------------------------------------
-                0.00    0.00      29/29          init_processor [1310]
-[1692]   0.0    0.00    0.00      29         add_proc_order [1692]
-                0.00    0.00      29/11194781     keyword_disabled [1348]
-                0.00    0.00      29/56          add_proc [1674]
------------------------------------------------
-                0.00    0.00      29/29          json_prefixes [1812]
-[1693]   0.0    0.00    0.00      29         add_raceprefix [1693]
------------------------------------------------
-                0.00    0.00      29/29          json_terrain [1189]
-[1694]   0.0    0.00    0.00      29         json_terrain_production [1694]
------------------------------------------------
-                0.00    0.00      28/28          destroy_curse [1697]
-[1695]   0.0    0.00    0.00      28         cunhash [1695]
------------------------------------------------
-                0.00    0.00      28/28          a_free [558]
-[1696]   0.0    0.00    0.00      28         curse_done [1696]
-                0.00    0.00      28/28          destroy_curse [1697]
------------------------------------------------
-                0.00    0.00      28/28          curse_done [1696]
-[1697]   0.0    0.00    0.00      28         destroy_curse [1697]
-                0.00    0.00      28/28          cunhash [1695]
------------------------------------------------
-                0.00    0.00      27/27          bt_get_or_create [1114]
-[1698]   0.0    0.00    0.00      27         bt_register [1698]
------------------------------------------------
-                0.00    0.00       1/27          register_tolua_helpers [1854]
-                0.00    0.00       1/27          register_demonseye [1839]
-                0.00    0.00       1/27          register_arena [1832]
-                0.00    0.00       2/27          register_xerewards [1858]
-                0.00    0.00       2/27          register_artrewards [1833]
-                0.00    0.00       3/27          register_museum [1845]
-                0.00    0.00       7/27          register_itemfunctions [1842]
-                0.00    0.00      10/27          register_resources [1852]
-[1699]   0.0    0.00    0.00      27         register_item_use [1699]
-                0.00    0.00      27/240         register_function [1614]
------------------------------------------------
-                0.00    0.00      26/26          free_castorder [1609]
-[1700]   0.0    0.00    0.00      26         free_spellparameter [1700]
------------------------------------------------
-                0.00    0.00      25/25          set_new_dragon_target [486]
-[1701]   0.0    0.00    0.00      25         make_targetregion [1701]
-                0.00    0.00      25/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      24/24          add_spells [1668]
-[1702]   0.0    0.00    0.00      24         equipment_addspell [1702]
-                0.00    0.00      24/1524        spellbook_add [1572]
-                0.00    0.00       7/380         create_spellbook [1606]
------------------------------------------------
-                0.00    0.00      23/23          xml_readweapon [1266]
-[1703]   0.0    0.00    0.00      23         new_weapontype [1703]
-                0.00    0.00      23/2379316     resource2weapon [1353]
------------------------------------------------
-                0.00    0.00      22/22          verify_targets [1027]
-[1704]   0.0    0.00    0.00      22         verify_ship [1704]
-                0.00    0.00      22/28818       findship [1483]
------------------------------------------------
-                0.00    0.00      19/19          register_cr [1838]
-[1705]   0.0    0.00    0.00      19         tsf_register [1705]
------------------------------------------------
-                0.00    0.00      18/18          handle_event [1363]
-[1706]   0.0    0.00    0.00      18         handle_triggers [1706]
-                0.00    0.00      18/18          timeout_handle [1709]
-                0.00    0.00       1/1           caldera_handle [1794]
------------------------------------------------
-                0.00    0.00      18/18          json_terrain [1189]
-[1707]   0.0    0.00    0.00      18         json_flags [1707]
------------------------------------------------
-                0.00    0.00      18/18          register_reports [1851]
-[1708]   0.0    0.00    0.00      18         register_argtype [1708]
------------------------------------------------
-                0.00    0.00      18/18          handle_triggers [1706]
-[1709]   0.0    0.00    0.00      18         timeout_handle [1709]
------------------------------------------------
-                0.00    0.00      18/18          t_new [1546]
-[1710]   0.0    0.00    0.00      18         timeout_init [1710]
------------------------------------------------
-                                  18             write_triggers <cycle 3> [954]
-[1711]   0.0    0.00    0.00      18         timeout_write <cycle 3> [1711]
-                                  18             write_triggers <cycle 3> [954]
------------------------------------------------
-                0.00    0.00      15/15          xml_readpotion [1714]
-[1712]   0.0    0.00    0.00      15         new_potiontype [1712]
-                0.00    0.00      15/1582        resource2potion [1569]
-                0.00    0.00      15/15          pt_register [1713]
------------------------------------------------
-                0.00    0.00      15/15          new_potiontype [1712]
-[1713]   0.0    0.00    0.00      15         pt_register [1713]
------------------------------------------------
-                0.00    0.00      15/15          xml_readitem [1107]
-[1714]   0.0    0.00    0.00      15         xml_readpotion [1714]
-                0.00    0.00      15/5453        xml_ivalue [1533]
-                0.00    0.00      15/15          new_potiontype [1712]
------------------------------------------------
-                0.00    0.00       1/14          register_arena [1832]
-                0.00    0.00       1/14          register_xmas [1859]
-                0.00    0.00      12/14          register_triggers [1855]
-[1715]   0.0    0.00    0.00      14         tt_register [1715]
------------------------------------------------
-                0.00    0.00      13/13          init_processor [1310]
-[1716]   0.0    0.00    0.00      13         add_proc_global [1716]
-                0.00    0.00      13/56          add_proc [1674]
------------------------------------------------
-                0.00    0.00      13/13          read_planes [1164]
-[1717]   0.0    0.00    0.00      13         getplanebyid [1717]
------------------------------------------------
-                0.00    0.00      13/13          move_iceberg [1094]
-[1718]   0.0    0.00    0.00      13         make_iceberg [1718]
-                0.00    0.00      13/779868      a_new [1376]
------------------------------------------------
-                                  13             read_triggers <cycle 4> [798]
-[1719]   0.0    0.00    0.00      13         timeout_read <cycle 4> [1719]
-                                  13             read_triggers <cycle 4> [798]
------------------------------------------------
-                0.00    0.00       2/12          remove_building [1153]
-                0.00    0.00      10/12          renumber_cmd [780]
-[1720]   0.0    0.00    0.00      12         bunhash [1720]
------------------------------------------------
-                0.00    0.00      12/12          t_new [1546]
-[1721]   0.0    0.00    0.00      12         changefaction_init [1721]
------------------------------------------------
-                0.00    0.00      12/12          volcano_destruction [1022]
-[1722]   0.0    0.00    0.00      12         make_reduceproduction [1722]
-                0.00    0.00      12/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00      12/12          changerace_write [1287]
-[1723]   0.0    0.00    0.00      12         write_race_reference [1723]
------------------------------------------------
-                0.00    0.00      11/11          koor_distance [476]
-[1724]   0.0    0.00    0.00      11         koor_distance_wrap_xy [1724]
------------------------------------------------
-                0.00    0.00      11/11          attrib_allocation [914]
-[1725]   0.0    0.00    0.00      11         produce_seeds [1725]
------------------------------------------------
-                0.00    0.00      11/11          register_xmlreader [1860]
-[1726]   0.0    0.00    0.00      11         xml_register_callback [1726]
------------------------------------------------
-                0.00    0.00      11/11          parse_races [1104]
-[1727]   0.0    0.00    0.00      11         xml_spell [1727]
-                0.00    0.00       9/11052       find_spell [1513]
------------------------------------------------
-                0.00    0.00      10/10          cast_cmd [760]
-[1728]   0.0    0.00    0.00      10         rel_to_abs [1728]
-                0.00    0.00       5/5           ursprung_x [1754]
-                0.00    0.00       5/221723      plane_center_x [1411]
-                0.00    0.00       5/5           ursprung_y [1755]
-                0.00    0.00       5/221723      plane_center_y [1412]
------------------------------------------------
-                0.00    0.00      10/10          nrt_register [883]
-[1729]   0.0    0.00    0.00      10         section_add [1729]
------------------------------------------------
-                0.00    0.00       1/9           load_inifile [1293]
-                0.00    0.00       1/9           parse_inifile [1317]
-                0.00    0.00       1/9           writepasswd [1074]
-                0.00    0.00       2/9           writeturn [1253]
-                0.00    0.00       2/9           report_summary [614]
-                0.00    0.00       2/9           score [23]
-[1730]   0.0    0.00    0.00       9         basepath [1730]
------------------------------------------------
-                0.00    0.00       9/9           a_new [1376]
-[1731]   0.0    0.00    0.00       9         init_resourcelimit [1731]
------------------------------------------------
-                0.00    0.00       1/9           register_museum [1845]
-                0.00    0.00       3/9           register_borders [1835]
-                0.00    0.00       5/9           register_attributes [1834]
-[1732]   0.0    0.00    0.00       9         register_bordertype [1732]
------------------------------------------------
-                0.00    0.00       8/8           init_processor [1310]
-[1733]   0.0    0.00    0.00       8         add_proc_region [1733]
-                0.00    0.00       8/56          add_proc [1674]
------------------------------------------------
-                0.00    0.00       8/8           xml_readarmor [1736]
-[1734]   0.0    0.00    0.00       8         new_armortype [1734]
------------------------------------------------
-                0.00    0.00       8/8           tolua_unit_get_hp [3117]
-[1735]   0.0    0.00    0.00       8         unit_gethp [1735]
------------------------------------------------
-                0.00    0.00       8/8           xml_readitem [1107]
-[1736]   0.0    0.00    0.00       8         xml_readarmor [1736]
-                0.00    0.00      24/501         xml_fvalue [1599]
-                0.00    0.00      16/6576        xml_bvalue [1532]
-                0.00    0.00       8/5453        xml_ivalue [1533]
-                0.00    0.00       8/8           new_armortype [1734]
------------------------------------------------
-                0.00    0.00       7/7           has_ao_healing [1269]
-[1737]   0.0    0.00    0.00       7         i_findc [1737]
------------------------------------------------
-                0.00    0.00       7/7           new_luxurytype [1739]
-[1738]   0.0    0.00    0.00       7         lt_register [1738]
------------------------------------------------
-                0.00    0.00       7/7           xml_readluxury [1745]
-[1739]   0.0    0.00    0.00       7         new_luxurytype [1739]
-                0.00    0.00       7/21500       resource2luxury [1499]
-                0.00    0.00       7/7           lt_register [1738]
------------------------------------------------
-                0.00    0.00       7/7           register_names [1846]
-[1740]   0.0    0.00    0.00       7         register_race_name_function [1740]
-                0.00    0.00       7/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       7/7           parse_resources [1086]
-[1741]   0.0    0.00    0.00       7         rmt_create [1741]
------------------------------------------------
-                0.00    0.00       7/7           equipment_done [1802]
-[1742]   0.0    0.00    0.00       7         spellbook_clear [1742]
------------------------------------------------
-                0.00    0.00       7/7           parse_ships [1305]
-[1743]   0.0    0.00    0.00       7         st_get_or_create [1743]
-                0.00    0.00       7/19089       st_find_i [1501]
------------------------------------------------
-                0.00    0.00       1/7           renumber_cmd [780]
-                0.00    0.00       6/7           remove_ship [1748]
-[1744]   0.0    0.00    0.00       7         sunhash [1744]
------------------------------------------------
-                0.00    0.00       7/7           xml_readitem [1107]
-[1745]   0.0    0.00    0.00       7         xml_readluxury [1745]
-                0.00    0.00       7/5453        xml_ivalue [1533]
-                0.00    0.00       7/7           new_luxurytype [1739]
------------------------------------------------
-                0.00    0.00       6/6           t_new [1546]
-[1746]   0.0    0.00    0.00       6         changerace_init [1746]
------------------------------------------------
-                0.00    0.00       6/6           add_callbacks [1666]
-[1747]   0.0    0.00    0.00       6         equipment_setcallback [1747]
------------------------------------------------
-                0.00    0.00       1/6           drifting_ships [490]
-                0.00    0.00       5/6           sinkships [475]
-[1748]   0.0    0.00    0.00       6         remove_ship [1748]
-                0.00    0.00       6/1342832     handle_event [1363]
-                0.00    0.00       6/7           sunhash [1744]
------------------------------------------------
-                0.00    0.00       2/5           register_gmcmd [1841]
-                0.00    0.00       3/5           register_attributes [1834]
-[1749]   0.0    0.00    0.00       5         at_deprecate [1749]
-                0.00    0.00       5/251874      __at_hashkey [3279]
------------------------------------------------
-                0.00    0.00       5/5           process [7]
-[1750]   0.0    0.00    0.00       5         free_group [1750]
------------------------------------------------
-                0.00    0.00       1/5           init_data [790]
-                0.00    0.00       4/5           json_config <cycle 2> [464]
-[1751]   0.0    0.00    0.00       5         reset_locales [1751]
------------------------------------------------
-                0.00    0.00       1/5           create_newfamiliar [1288]
-                0.00    0.00       4/5           sp_charmingsong [993]
-[1752]   0.0    0.00    0.00       5         trigger_killunit [1752]
-                0.00    0.00       5/3113        t_new [1546]
------------------------------------------------
-                0.00    0.00       1/5           use_bloodpotion [935]
-                0.00    0.00       2/5           sp_charmingsong [993]
-                0.00    0.00       2/5           do_fumble [1062]
-[1753]   0.0    0.00    0.00       5         trigger_timeout [1753]
-                0.00    0.00       5/3113        t_new [1546]
------------------------------------------------
-                0.00    0.00       5/5           rel_to_abs [1728]
-[1754]   0.0    0.00    0.00       5         ursprung_x [1754]
------------------------------------------------
-                0.00    0.00       5/5           rel_to_abs [1728]
-[1755]   0.0    0.00    0.00       5         ursprung_y [1755]
------------------------------------------------
-                0.00    0.00       4/4           parse_ids [852]
-[1756]   0.0    0.00    0.00       4         intlist_add [1756]
------------------------------------------------
-                0.00    0.00       4/4           parse_ids [852]
-[1757]   0.0    0.00    0.00       4         intlist_init [1757]
------------------------------------------------
-                0.00    0.00       4/4           config_get_locales [1161]
-[1758]   0.0    0.00    0.00       4         nextlocale [1758]
------------------------------------------------
-                0.00    0.00       4/4           curse_read [770]
-[1759]   0.0    0.00    0.00       4         read_skill [1759]
------------------------------------------------
-                0.00    0.00       2/4           chaosterrain [1213]
-                0.00    0.00       2/4           init_terrains_translation [1129]
-[1760]   0.0    0.00    0.00       4         terrains [1760]
------------------------------------------------
-                0.00    0.00       3/3           init_processor [1310]
-[1761]   0.0    0.00    0.00       3         add_proc_postregion [1761]
-                0.00    0.00       3/56          add_proc [1674]
------------------------------------------------
-                0.00    0.00       3/3           init_processor [1310]
-[1762]   0.0    0.00    0.00       3         add_proc_unit [1762]
-                0.00    0.00       3/56          add_proc [1674]
------------------------------------------------
-                0.00    0.00       3/3           give_control_cmd [287]
-[1763]   0.0    0.00    0.00       3         give_control [1763]
-                0.00    0.00       3/18963       ship_set_owner [1505]
------------------------------------------------
-                0.00    0.00       3/3           join_group [1083]
-[1764]   0.0    0.00    0.00       3         init_group [1764]
-                0.00    0.00      98/55547       ally_add [1452]
------------------------------------------------
-                0.00    0.00       3/3           parse_races [1104]
-[1765]   0.0    0.00    0.00       3         parse_param [1765]
-                0.00    0.00       3/33          set_param [1689]
------------------------------------------------
-                0.00    0.00       3/3           xml_readweapon [1266]
-[1766]   0.0    0.00    0.00       3         racelist_insert [1766]
------------------------------------------------
-                0.00    0.00       1/3           register_tolua_helpers [1854]
-                0.00    0.00       1/3           register_demonseye [1839]
-                0.00    0.00       1/3           register_resources [1852]
-[1767]   0.0    0.00    0.00       3         register_item_give [1767]
-                0.00    0.00       3/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/3           register_cr [1838]
-                0.00    0.00       2/3           register_nr [1847]
-[1768]   0.0    0.00    0.00       3         register_reporttype [1768]
------------------------------------------------
-                0.00    0.00       3/3           curse_write [930]
-[1769]   0.0    0.00    0.00       3         write_skill [1769]
------------------------------------------------
-                0.00    0.00       2/2           move_blocked [283]
-[1770]   0.0    0.00    0.00       2         b_blockquestportal [1770]
------------------------------------------------
-                0.00    0.00       2/2           see_border [1440]
-[1771]   0.0    0.00    0.00       2         b_fvisible [1771]
------------------------------------------------
-                0.00    0.00       2/2           describe [35]
-[1772]   0.0    0.00    0.00       2         b_opaque [1772]
------------------------------------------------
-                0.00    0.00       2/2           tolua_write_summary [38]
-[1773]   0.0    0.00    0.00       2         free_summary [1773]
------------------------------------------------
-                0.00    0.00       2/2           t_new [1546]
-[1774]   0.0    0.00    0.00       2         giveitem_init [1774]
------------------------------------------------
-                0.00    0.00       1/2           allocate_resource [752]
-                0.00    0.00       1/2           attrib_allocation [914]
-[1775]   0.0    0.00    0.00       2         limit_mallornseeds [1775]
------------------------------------------------
-                0.00    0.00       1/2           log_to_file [1819]
-                0.00    0.00       1/2           log_open [1817]
-[1776]   0.0    0.00    0.00       2         log_create [1776]
------------------------------------------------
-                0.00    0.00       1/2           init_smithy [1312]
-                0.00    0.00       1/2           xml_readconstruction [1183]
-[1777]   0.0    0.00    0.00       2         make_skillmod [1777]
-                0.00    0.00       2/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       1/2           register_resources [1852]
-                0.00    0.00       1/2           register_artrewards [1833]
-[1778]   0.0    0.00    0.00       2         register_item_useonother [1778]
-                0.00    0.00       2/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       2/2           change_resource [240]
-[1779]   0.0    0.00    0.00       2         res_changehp [1779]
------------------------------------------------
-                0.00    0.00       1/2           tolua_bind_open [1866]
-                0.00    0.00       1/2           lua_init [1316]
-[1780]   0.0    0.00    0.00       2         tolua_eressea_open [1780]
------------------------------------------------
-                0.00    0.00       2/2           luaopen_eressea [2406]
-[1781]   0.0    0.00    0.00       2         tolua_reg_types_eressea [1781]
------------------------------------------------
-                0.00    0.00       2/2           lua_init [1316]
-[1782]   0.0    0.00    0.00       2         tolua_unit_open [1782]
------------------------------------------------
-                0.00    0.00       2/2           sp_charmingsong [993]
-[1783]   0.0    0.00    0.00       2         trigger_changefaction [1783]
-                0.00    0.00       2/3113        t_new [1546]
------------------------------------------------
-                0.00    0.00       2/2           parse_args [1825]
-[1784]   0.0    0.00    0.00       2         verbosity_to_flags [1784]
------------------------------------------------
-                0.00    0.00       2/2           a_write [299]
-[1785]   0.0    0.00    0.00       2         wormhole_write [1785]
-                0.00    0.00       2/1119        write_region_reference [1583]
------------------------------------------------
-                0.00    0.00       1/1           a_free [558]
-[1786]   0.0    0.00    0.00       1         a_finalizestring [1786]
------------------------------------------------
-                0.00    0.00       1/1           a_write [299]
-[1787]   0.0    0.00    0.00       1         a_writekeys [1787]
------------------------------------------------
-                0.00    0.00       1/1           spy_message [1038]
-[1788]   0.0    0.00    0.00       1         add_seen_faction [1788]
-                0.00    0.00       1/353788      add_seen_faction_i [1401]
------------------------------------------------
-                0.00    0.00       1/1           ageing [185]
-[1789]   0.0    0.00    0.00       1         age_borders [1789]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1790]   0.0    0.00    0.00       1         attrib_done [1790]
------------------------------------------------
-                0.00    0.00       1/1           read_borders [706]
-[1791]   0.0    0.00    0.00       1         b_read [1791]
------------------------------------------------
-                0.00    0.00       1/1           write_borders [1897]
-[1792]   0.0    0.00    0.00       1         b_write [1792]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1793]   0.0    0.00    0.00       1         bind_monsters [1793]
------------------------------------------------
-                0.00    0.00       1/1           handle_triggers [1706]
-[1794]   0.0    0.00    0.00       1         caldera_handle [1794]
------------------------------------------------
-                0.00    0.00       1/1           write_triggers <cycle 3> [954]
-[1795]   0.0    0.00    0.00       1         caldera_write [1795]
-                0.00    0.00       1/642406      write_building_reference [1383]
------------------------------------------------
-                0.00    0.00       1/1           game_done [542]
-[1796]   0.0    0.00    0.00       1         calendar_cleanup [1796]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1797]   0.0    0.00    0.00       1         chaos_register [1797]
-                0.00    0.00       1/55          at_register [1678]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1798]   0.0    0.00    0.00       1         crmessage_done [1798]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1799]   0.0    0.00    0.00       1         curses_done [1799]
------------------------------------------------
-                0.00    0.00       1/1           attack [84]
-[1800]   0.0    0.00    0.00       1         dazzle [1800]
------------------------------------------------
-                0.00    0.00       1/1           disable_feature [771]
-[1801]   0.0    0.00    0.00       1         enable_keyword [1801]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1802]   0.0    0.00    0.00       1         equipment_done [1802]
-                0.00    0.00       7/7           spellbook_clear [1742]
------------------------------------------------
-                0.00    0.00       1/1           curse_age [1538]
-[1803]   0.0    0.00    0.00       1         flyingship_age [1803]
------------------------------------------------
-                0.00    0.00       1/1           game_done [542]
-[1804]   0.0    0.00    0.00       1         free_functions [1804]
------------------------------------------------
-                0.00    0.00       1/1           translation_done [1889]
-[1805]   0.0    0.00    0.00       1         free_functions [1805]
------------------------------------------------
-                0.00    0.00       1/1           destroyfaction [392]
-[1806]   0.0    0.00    0.00       1         funhash [1806]
------------------------------------------------
-                0.00    0.00       1/1           parse_args [1825]
-[1807]   0.0    0.00    0.00       1         get_arg [1807]
------------------------------------------------
-                0.00    0.00       1/1           wormhole_age [1130]
-[1808]   0.0    0.00    0.00       1         has_limited_skills [1808]
------------------------------------------------
-                0.00    0.00       1/1           read_game [62]
-[1809]   0.0    0.00    0.00       1         init_genrand [1809]
------------------------------------------------
-                0.00    0.00       1/1           json_config <cycle 2> [464]
-[1810]   0.0    0.00    0.00       1         init_terrains [1810]
-                0.00    0.00      14/178270      get_terrain [1423]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1811]   0.0    0.00    0.00       1         item_done [1811]
-                0.00    0.00       1/10475       i_freeall [1515]
------------------------------------------------
-                0.00    0.00       1/1           json_config <cycle 2> [464]
-[1812]   0.0    0.00    0.00       1         json_prefixes [1812]
-                0.00    0.00      29/29          add_raceprefix [1693]
------------------------------------------------
-                0.00    0.00       1/1           game_done [542]
-[1813]   0.0    0.00    0.00       1         kernel_done [1813]
-                0.00    0.00       1/1           xml_done [1898]
-                0.00    0.00       1/1           equipment_done [1802]
-                0.00    0.00       1/1           message_done [1822]
-                0.00    0.00       1/1           item_done [1811]
-                0.00    0.00       1/1           attrib_done [1790]
-                0.00    0.00       1/1           crmessage_done [1798]
-                0.00    0.00       1/1           curses_done [1799]
-                0.00    0.00       1/1           reports_done [1861]
-                0.00    0.00       1/1           translation_done [1889]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1814]   0.0    0.00    0.00       1         kernel_init [1814]
-                0.00    0.00       1/1           translation_init [1890]
-                0.00    0.00       1/1           mt_clear [1823]
-                0.00    0.00       1/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1815]   0.0    0.00    0.00       1         locale_init [1815]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1816]   0.0    0.00    0.00       1         log_close [1816]
------------------------------------------------
-                0.00    0.00       1/1           parse_args [1825]
-[1817]   0.0    0.00    0.00       1         log_open [1817]
-                0.00    0.00       1/1           log_rotate [1818]
-                0.00    0.00       1/2           log_create [1776]
------------------------------------------------
-                0.00    0.00       1/1           log_open [1817]
-[1818]   0.0    0.00    0.00       1         log_rotate [1818]
------------------------------------------------
-                0.00    0.00       1/1           parse_args [1825]
-[1819]   0.0    0.00    0.00       1         log_to_file [1819]
-                0.00    0.00       1/2           log_create [1776]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1820]   0.0    0.00    0.00       1         lua_done [1820]
------------------------------------------------
-                0.00    0.00       1/1           init_smithy [1312]
-[1821]   0.0    0.00    0.00       1         make_matmod [1821]
-                0.00    0.00       1/779868      a_new [1376]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1822]   0.0    0.00    0.00       1         message_done [1822]
------------------------------------------------
-                0.00    0.00       1/1           kernel_init [1814]
-[1823]   0.0    0.00    0.00       1         mt_clear [1823]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1824]   0.0    0.00    0.00       1         openlibs [1824]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1825]   0.0    0.00    0.00       1         parse_args [1825]
-                0.00    0.00       2/2           verbosity_to_flags [1784]
-                0.00    0.00       1/1           get_arg [1807]
-                0.00    0.00       1/1           log_open [1817]
-                0.00    0.00       1/1           log_to_file [1819]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1826]   0.0    0.00    0.00       1         parse_rules [1826]
------------------------------------------------
-                0.00    0.00       1/1           read_xml [791]
-[1827]   0.0    0.00    0.00       1         parse_spellbooks [1827]
-                0.00    0.00     326/5453        xml_ivalue [1533]
-                0.00    0.00     326/11052       find_spell [1513]
-                0.00    0.00     326/1524        spellbook_add [1572]
-                0.00    0.00       6/3171        get_spellbook [1544]
------------------------------------------------
-                0.00    0.00       1/1           plan_monsters [52]
-[1828]   0.0    0.00    0.00       1         pathfinder_cleanup [1828]
------------------------------------------------
-                0.00    0.00       1/1           attrib_allocation [914]
-[1829]   0.0    0.00    0.00       1         produce_mallornseeds [1829]
------------------------------------------------
-                0.00    0.00       1/1           read_game [62]
-[1830]   0.0    0.00    0.00       1         read_alliances [1830]
------------------------------------------------
-                0.00    0.00       1/1           read_reference [726]
-[1831]   0.0    0.00    0.00       1         read_building_reference [1831]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1832]   0.0    0.00    0.00       1         register_arena [1832]
-                0.00    0.00       2/240         register_function [1614]
-                0.00    0.00       1/55          at_register [1678]
-                0.00    0.00       1/27          register_item_use [1699]
-                0.00    0.00       1/14          tt_register [1715]
------------------------------------------------
-                0.00    0.00       1/1           register_itemtypes [1843]
-[1833]   0.0    0.00    0.00       1         register_artrewards [1833]
-                0.00    0.00       2/27          register_item_use [1699]
-                0.00    0.00       1/55          at_register [1678]
-                0.00    0.00       1/2           register_item_useonother [1778]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1834]   0.0    0.00    0.00       1         register_attributes [1834]
-                0.00    0.00      42/55          at_register [1678]
-                0.00    0.00       5/9           register_bordertype [1732]
-                0.00    0.00       3/5           at_deprecate [1749]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1835]   0.0    0.00    0.00       1         register_borders [1835]
-                0.00    0.00       3/9           register_bordertype [1732]
-                0.00    0.00       1/55          at_register [1678]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1836]   0.0    0.00    0.00       1         register_buildingcurse [1836]
-                0.00    0.00       4/44          ct_register [1686]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1837]   0.0    0.00    0.00       1         register_buildings [1837]
-                0.00    0.00       5/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1838]   0.0    0.00    0.00       1         register_cr [1838]
-                0.00    0.00      19/19          tsf_register [1705]
-                0.00    0.00       1/3           register_reporttype [1768]
------------------------------------------------
-                0.00    0.00       1/1           register_itemfunctions [1842]
-[1839]   0.0    0.00    0.00       1         register_demonseye [1839]
-                0.00    0.00       1/3           register_item_give [1767]
-                0.00    0.00       1/27          register_item_use [1699]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1840]   0.0    0.00    0.00       1         register_flyingship [1840]
-                0.00    0.00       1/44          ct_register [1686]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1841]   0.0    0.00    0.00       1         register_gmcmd [1841]
-                0.00    0.00       2/5           at_deprecate [1749]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1842]   0.0    0.00    0.00       1         register_itemfunctions [1842]
-                0.00    0.00       7/27          register_item_use [1699]
-                0.00    0.00       1/1           register_demonseye [1839]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1843]   0.0    0.00    0.00       1         register_itemtypes [1843]
-                0.00    0.00       1/1           register_artrewards [1833]
-                0.00    0.00       1/1           register_xerewards [1858]
-                0.00    0.00       1/1           register_weapons [1857]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1844]   0.0    0.00    0.00       1         register_magicresistance [1844]
-                0.00    0.00       1/44          ct_register [1686]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1845]   0.0    0.00    0.00       1         register_museum [1845]
-                0.00    0.00       4/55          at_register [1678]
-                0.00    0.00       3/27          register_item_use [1699]
-                0.00    0.00       1/9           register_bordertype [1732]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1846]   0.0    0.00    0.00       1         register_names [1846]
-                0.00    0.00       7/7           register_race_name_function [1740]
-                0.00    0.00       1/1           register_race_description_function [1848]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1847]   0.0    0.00    0.00       1         register_nr [1847]
-                0.00    0.00       2/3           register_reporttype [1768]
------------------------------------------------
-                0.00    0.00       1/1           register_names [1846]
-[1848]   0.0    0.00    0.00       1         register_race_description_function [1848]
-                0.00    0.00       1/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1849]   0.0    0.00    0.00       1         register_races [1849]
-                0.00    0.00      13/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1850]   0.0    0.00    0.00       1         register_regioncurse [1850]
-                0.00    0.00      19/44          ct_register [1686]
------------------------------------------------
-                0.00    0.00       1/1           lovar [644]
-[1851]   0.0    0.00    0.00       1         register_reports [1851]
-                0.00    0.00      25/32          add_function [1690]
-                0.00    0.00      18/18          register_argtype [1708]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1852]   0.0    0.00    0.00       1         register_resources [1852]
-                0.00    0.00      10/27          register_item_use [1699]
-                0.00    0.00       9/240         register_function [1614]
-                0.00    0.00       1/2           register_item_useonother [1778]
-                0.00    0.00       1/3           register_item_give [1767]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1853]   0.0    0.00    0.00       1         register_shipcurse [1853]
-                0.00    0.00       3/44          ct_register [1686]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1854]   0.0    0.00    0.00       1         register_tolua_helpers [1854]
-                0.00    0.00      12/240         register_function [1614]
-                0.00    0.00       2/55          at_register [1678]
-                0.00    0.00       1/27          register_item_use [1699]
-                0.00    0.00       1/3           register_item_give [1767]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1855]   0.0    0.00    0.00       1         register_triggers [1855]
-                0.00    0.00      12/14          tt_register [1715]
------------------------------------------------
-                0.00    0.00       1/1           register_spells [1251]
-[1856]   0.0    0.00    0.00       1         register_unitcurse [1856]
-                0.00    0.00      14/44          ct_register [1686]
------------------------------------------------
-                0.00    0.00       1/1           register_itemtypes [1843]
-[1857]   0.0    0.00    0.00       1         register_weapons [1857]
-                0.00    0.00       2/240         register_function [1614]
------------------------------------------------
-                0.00    0.00       1/1           register_itemtypes [1843]
-[1858]   0.0    0.00    0.00       1         register_xerewards [1858]
-                0.00    0.00       2/27          register_item_use [1699]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1859]   0.0    0.00    0.00       1         register_xmas [1859]
-                0.00    0.00       1/14          tt_register [1715]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1860]   0.0    0.00    0.00       1         register_xmlreader [1860]
-                0.00    0.00      11/11          xml_register_callback [1726]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1861]   0.0    0.00    0.00       1         reports_done [1861]
------------------------------------------------
-                0.00    0.00       1/1           read_reference [726]
-[1862]   0.0    0.00    0.00       1         resolve_building [1862]
-                0.00    0.00       1/48455       findbuilding [1462]
------------------------------------------------
-                0.00    0.00       1/1           main [541]
-[1863]   0.0    0.00    0.00       1         setup_signal_handler [1863]
------------------------------------------------
-                0.00    0.00       1/1           wormholes_update [906]
-[1864]   0.0    0.00    0.00       1         sort_wormhole_regions [1864]
------------------------------------------------
-                0.00    0.00       1/1           do_fumble [1062]
-[1865]   0.0    0.00    0.00       1         t_add [1865]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bindings_open [1318]
-[1866]   0.0    0.00    0.00       1         tolua_bind_open [1866]
-                0.00    0.00       1/1           tolua_process_open [1877]
-                0.00    0.00       1/2           tolua_eressea_open [1780]
-                0.00    0.00       1/1           tolua_settings_open [1885]
-                0.00    0.00       1/1           tolua_game_open [1871]
-                0.00    0.00       1/1           tolua_locale_open [1873]
-                0.00    0.00       1/1           tolua_config_open [1868]
-                0.00    0.00       1/1           tolua_log_open [1874]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1867]   0.0    0.00    0.00       1         tolua_building_open [1867]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bind_open [1866]
-[1868]   0.0    0.00    0.00       1         tolua_config_open [1868]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1869]   0.0    0.00    0.00       1         tolua_dict_open [1869]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1870]   0.0    0.00    0.00       1         tolua_faction_open [1870]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bind_open [1866]
-[1871]   0.0    0.00    0.00       1         tolua_game_open [1871]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1872]   0.0    0.00    0.00       1         tolua_gmtool_open [1872]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bind_open [1866]
-[1873]   0.0    0.00    0.00       1         tolua_locale_open [1873]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bind_open [1866]
-[1874]   0.0    0.00    0.00       1         tolua_log_open [1874]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1875]   0.0    0.00    0.00       1         tolua_message_open [1875]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1876]   0.0    0.00    0.00       1         tolua_order_open [1876]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bind_open [1866]
-[1877]   0.0    0.00    0.00       1         tolua_process_open [1877]
------------------------------------------------
-                0.00    0.00       1/1           luaopen_config [2405]
-[1878]   0.0    0.00    0.00       1         tolua_reg_types_config [1878]
------------------------------------------------
-                0.00    0.00       1/1           luaopen_game [2407]
-[1879]   0.0    0.00    0.00       1         tolua_reg_types_game [1879]
------------------------------------------------
-                0.00    0.00       1/1           luaopen_locale [2408]
-[1880]   0.0    0.00    0.00       1         tolua_reg_types_locale [1880]
------------------------------------------------
-                0.00    0.00       1/1           luaopen_log [2409]
-[1881]   0.0    0.00    0.00       1         tolua_reg_types_log [1881]
------------------------------------------------
-                0.00    0.00       1/1           luaopen_process [2410]
-[1882]   0.0    0.00    0.00       1         tolua_reg_types_process [1882]
------------------------------------------------
-                0.00    0.00       1/1           luaopen_settings [2411]
-[1883]   0.0    0.00    0.00       1         tolua_reg_types_settings [1883]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1884]   0.0    0.00    0.00       1         tolua_region_open [1884]
------------------------------------------------
-                0.00    0.00       1/1           tolua_bind_open [1866]
-[1885]   0.0    0.00    0.00       1         tolua_settings_open [1885]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1886]   0.0    0.00    0.00       1         tolua_ship_open [1886]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1887]   0.0    0.00    0.00       1         tolua_sqlite_open [1887]
------------------------------------------------
-                0.00    0.00       1/1           lua_init [1316]
-[1888]   0.0    0.00    0.00       1         tolua_storage_open [1888]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1889]   0.0    0.00    0.00       1         translation_done [1889]
-                0.00    0.00       1/1           free_functions [1805]
------------------------------------------------
-                0.00    0.00       1/1           kernel_init [1814]
-[1890]   0.0    0.00    0.00       1         translation_init [1890]
-                0.00    0.00       7/32          add_function [1690]
------------------------------------------------
-                0.00    0.00       1/1           do_fumble [1062]
-[1891]   0.0    0.00    0.00       1         trigger_giveitem [1891]
-                0.00    0.00       1/3113        t_new [1546]
------------------------------------------------
-                0.00    0.00       1/1           create_newfamiliar [1288]
-[1892]   0.0    0.00    0.00       1         trigger_shock [1892]
-                0.00    0.00       1/3113        t_new [1546]
------------------------------------------------
-                0.00    0.00       1/1           promotion_cmd [917]
-[1893]   0.0    0.00    0.00       1         valid_race [1893]
------------------------------------------------
-                0.00    0.00       1/1           writegame [82]
-[1894]   0.0    0.00    0.00       1         version_no [1894]
------------------------------------------------
-                0.00    0.00       1/1           game_init [1249]
-[1895]   0.0    0.00    0.00       1         wormholes_register [1895]
-                0.00    0.00       1/55          at_register [1678]
------------------------------------------------
-                0.00    0.00       1/1           write_game [83]
-[1896]   0.0    0.00    0.00       1         write_alliances [1896]
------------------------------------------------
-                0.00    0.00       1/1           write_game [83]
-[1897]   0.0    0.00    0.00       1         write_borders [1897]
-                0.00    0.00   22643/22643       b_validroad [1494]
-                0.00    0.00   22643/22643       b_writeroad [1495]
-                0.00    0.00       1/1           b_write [1792]
------------------------------------------------
-                0.00    0.00       1/1           kernel_done [1813]
-[1898]   0.0    0.00    0.00       1         xml_done [1898]
------------------------------------------------
-                0.00    0.00       5/251874      at_deprecate [1749]
-                0.00    0.00      55/251874      at_register [1678]
-                0.00    0.00  251814/251874      a_read_orig [389]
-[3279]   0.0    0.00    0.00  251874         __at_hashkey [3279]
------------------------------------------------
-                0.00    0.00   49331/49331       log_stdio [1459]
-[3280]   0.0    0.00    0.00   49331         _log_write [3280]
------------------------------------------------
-
- This table describes the call tree of the program, and was sorted by
- the total amount of time spent in each function and its children.
-
- Each entry in this table consists of several lines.  The line with the
- index number at the left hand margin lists the current function.
- The lines above it list the functions that called this function,
- and the lines below it list the functions this one called.
- This line lists:
-     index	A unique number given to each element of the table.
-		Index numbers are sorted numerically.
-		The index number is printed next to every function name so
-		it is easier to look up where the function in the table.
-
-     % time	This is the percentage of the `total' time that was spent
-		in this function and its children.  Note that due to
-		different viewpoints, functions excluded by options, etc,
-		these numbers will NOT add up to 100%.
-
-     self	This is the total amount of time spent in this function.
-
-     children	This is the total amount of time propagated into this
-		function by its children.
-
-     called	This is the number of times the function was called.
-		If the function called itself recursively, the number
-		only includes non-recursive calls, and is followed by
-		a `+' and the number of recursive calls.
-
-     name	The name of the current function.  The index number is
-		printed after it.  If the function is a member of a
-		cycle, the cycle number is printed between the
-		function's name and the index number.
-
-
- For the function's parents, the fields have the following meanings:
-
-     self	This is the amount of time that was propagated directly
-		from the function into this parent.
-
-     children	This is the amount of time that was propagated from
-		the function's children into this parent.
-
-     called	This is the number of times this parent called the
-		function `/' the total number of times the function
-		was called.  Recursive calls to the function are not
-		included in the number after the `/'.
-
-     name	This is the name of the parent.  The parent's index
-		number is printed after it.  If the parent is a
-		member of a cycle, the cycle number is printed between
-		the name and the index number.
-
- If the parents of the function cannot be determined, the word
- `<spontaneous>' is printed in the `name' field, and all the other
- fields are blank.
-
- For the function's children, the fields have the following meanings:
-
-     self	This is the amount of time that was propagated directly
-		from the child into the function.
-
-     children	This is the amount of time that was propagated from the
-		child's children to the function.
-
-     called	This is the number of times the function called
-		this child `/' the total number of times the child
-		was called.  Recursive calls by the child are not
-		listed in the number after the `/'.
-
-     name	This is the name of the child.  The child's index
-		number is printed after it.  If the child is a
-		member of a cycle, the cycle number is printed
-		between the name and the index number.
-
- If there are any cycles (circles) in the call graph, there is an
- entry for the cycle-as-a-whole.  This entry shows who called the
- cycle (as parents) and the members of the cycle (as children.)
- The `+' recursive calls entry shows the number of function calls that
- were internal to the cycle, and the calls entry for each member shows,
- for that member, how many times it was called from other members of
- the cycle.
-
-
-Index by function name
-
- [535] AllianceAuto         [1673] free_land            [1830] read_alliances (save.c)
- [164] AllianceRestricted (ally.c) [1311] free_locales   [388] read_attribs
- [491] CavalryBonus (battle.c) [1516] free_luxuries (economy.c) [706] read_borders
- [1608] CavalrySkill (battle.c) [1426] free_node (pathfinder.c) [1831] read_building_reference
- [1180] CheckOverload (laws.c) [1604] free_nodes (pathfinder.c) [1455] read_faction_reference
- [1004] ExpensiveMigrants   [1356] free_order            [893] read_familiar (magic.c)
- [1136] FactionSpells        [306] free_orders            [62] read_game
- [836] GiveRestriction (give.c) [575] free_params       [1451] read_group (group.c)
- [288] HelpMask             [1568] free_recruitments     [782] read_groups
- [901] IsImmune             [1436] free_regionlist       [799] read_handler (event.c)
- [536] LongHunger           [1598] free_side (battle.c)  [320] read_items
- [1195] MagicPower (magic.c) [1700] free_spellparameter (magic.c) [1559] read_mage (magic.c)
- [1185] MagicRegeneration (magic.c) [1773] free_summary  [894] read_magician (magic.c)
- [1264] NMRTimeout          [1361] free_variables (translation.c) [586] read_movement (movement.c)
- [900] NewbieImmunity       [1534] freestrlist           [739] read_newunitid (unit.c)
- [1605] PopulationDamage (battle.c) [1611] freetokens    [524] read_of
- [1171] RemoveNMRNewbie (laws.c) [96] from_external_node (critbit.c) [1477] read_owner (save.c)
- [1236] ResourceFactor (resources.c) [310] fs_read (filestream.c) [1619] read_password (save.c)
- [806] ShipSpeedBonus (ship.c) [447] fs_readln (filestream.c) [1164] read_planes
- [3279] __at_hashkey (attrib.c) [124] fs_write (filestream.c) [1278] read_race_reference
- [3280] _log_write (log.c)   [159] fs_writeln (filestream.c) [726] read_reference
- [555] a_add                 [137] fstream_done         [1582] read_region_reference
- [418] a_age                 [973] fumble               [1522] read_seenspell (magic.c)
- [1597] a_finalizeeffect (alchemy.c) [1284] fumble_default (magic.c) [1759] read_skill (unitcurse.c)
- [1786] a_finalizestring    [1806] funhash              [1555] read_spellbook
-  [65] a_find                [191] fwritestr (creport.c) [870] read_targetregion (targetregion.c)
- [558] a_free (attrib.c)     [542] game_done             [798] read_triggers
- [1561] a_init_reportspell (magic.c) [1324] game_id       [74] read_unit
- [1552] a_initeffect (alchemy.c) [1249] game_init       [1521] read_unit_reference
- [566] a_insert (attrib.c)  [1168] game_name             [413] read_unitid
- [1376] a_new               [1222] gamedate2 (summary.c) [791] read_xml
- [390] a_read_i (attrib.c)   [944] gamedate_season (report.c) [767] readfaction
- [389] a_read_orig           [962] generic_name (names.c) [60] readgame
- [1660] a_readchars          [171] genrand_int31          [43] readorders
- [1052] a_readeffect (alchemy.c) [150] genrand_int32     [209] readregion (save.c)
- [1448] a_readint            [395] genrand_real2        [1612] real2tp (teleport.c)
- [1648] a_readkey (key.c)     [20] get_addresses (reports.c) [650] recruit (economy.c)
- [1531] a_readprivate       [1528] get_alive (battle.c) [1564] recruit_cost (economy.c)
- [1474] a_readshorts        [1001] get_allocator (economy.c) [837] recruit_dracoids (monsters.c)
- [1642] a_readstring        [1807] get_arg (main.c)     [1334] recruit_init (economy.c)
- [366] a_remove              [482] get_astralplane      [1091] reduce_skill
- [958] a_removeall           [120] get_borders           [404] reduce_weight (monsters.c)
- [361] a_select              [118] get_borders_i (connection.c) [346] regenerate_aura
- [559] a_unlink (attrib.c)   [717] get_chaoscount        [942] regeneration (magic.c)
- [1314] a_upgradekeys       [1347] get_cmp_region_owner (laws.c) [1444] region_get_morale
- [299] a_write               [874] get_combatspell      [1424] region_getinfo
- [998] a_write_unit (magic.c) [880] get_combatspelllevel [1058] region_getresource
- [1663] a_writechars         [108] get_command          [1476] region_set_morale
- [1073] a_writeeffect (alchemy.c) [143] get_curse       [1422] region_setinfo
- [1447] a_writeint           [496] get_direction        [1683] region_setname
- [1787] a_writekeys (key.c)  [225] get_effect           [1097] region_setresource
- [1473] a_writeshorts       [1551] get_equipment         [987] regionname
- [1529] a_writestring        [796] get_familiar          [675] regions_in_range
- [804] absorbed_by_monster (monster.c) [722] get_familiar_mage [1832] register_arena
- [527] academy_can_teach     [254] get_followers (move.c) [1708] register_argtype
- [1128] academy_teaching_bonus [88] get_food            [1833] register_artrewards
- [560] active_building      [1656] get_force (combatspells.c) [1834] register_attributes
- [1666] add_callbacks (xmlreader.c) [895] get_friends (unit.c) [1835] register_borders
- [1626] add_castorder       [1600] get_function         [1732] register_bordertype
- [1198] add_chaoscount      [1466] get_gamedate         [1836] register_buildingcurse
- [1509] add_donation         [581] get_homeplane        [1837] register_buildings
- [1690] add_function         [274] get_keyword          [1838] register_cr
- [379] add_give (give.c)     [934] get_level            [1839] register_demonseye
- [625] add_income (economy.c) [884] get_locale          [1840] register_flyingship
- [980] add_itemname_cb (item.c) [198] get_mage          [1614] register_function
- [1169] add_items (xmlreader.c) [1682] get_maxluxuries  [1841] register_gmcmd
- [434] add_message          [1445] get_migrants (laws.c) [1767] register_item_give
- [1674] add_proc (laws.c)     [55] get_modifier         [1699] register_item_use
- [1716] add_proc_global      [187] get_money            [1778] register_item_useonother
- [1692] add_proc_order      [1087] get_money_for_dragon (monsters.c) [1842] register_itemfunctions
- [1761] add_proc_postregion  [293] get_monsters         [1843] register_itemtypes
- [1733] add_proc_region      [750] get_movement         [1844] register_magicresistance
- [1762] add_proc_unit        [480] get_neighbours       [1845] register_museum
- [1693] add_raceprefix      [1275] get_or_create_locale [1846] register_names
- [371] add_recruits          [292] get_or_create_monsters [1847] register_nr
- [1419] add_regionlist      [1680] get_or_create_terrain [1848] register_race_description_function
- [1162] add_resource        [1362] get_otherfaction     [1740] register_race_name_function
- [977] add_resourcename_cb (item.c) [235] get_param     [1849] register_races
- [1372] add_seen (reports.c) [713] get_param_flt        [1850] register_regioncurse
- [1788] add_seen_faction     [422] get_param_int        [1851] register_reports
- [1401] add_seen_faction_i (reports.c) [104] get_pooled [1768] register_reporttype
- [386] add_seen_nb (reports.c) [263] get_prefix         [1852] register_resources
- [355] add_skill              [12] get_race             [1853] register_shipcurse
- [1667] add_skills (xmlreader.c) [368] get_racename     [1259] register_special_direction
- [1638] add_spell            [372] get_regions_distance (reports.c) [1250] register_spelldata (spells.c)
- [1173] add_spellparameter (magic.c) [281] get_reservation [1251] register_spells
- [1668] add_spells (xmlreader.c) [99] get_resource      [1854] register_tolua_helpers
- [1669] add_subsets (xmlreader.c) [194] get_resourcetype [1855] register_triggers
- [1579] add_tactics (battle.c) [189] get_row (battle.c) [1856] register_unitcurse
- [1145] add_translation      [423] get_skill            [1857] register_weapons
- [673] add_travelthru_addresses (reports.c) [862] get_spchange (magic.c) [1858] register_xerewards
- [1260] add_trigger         [1544] get_spellbook        [1859] register_xmas
- [607] add_variable (translation.c) [872] get_spellpoints [1860] register_xmlreader
- [913] addally (save.c)     [1178] get_tactics (battle.c) [1728] rel_to_abs
- [217] addlist              [1423] get_terrain           [528] reldirection
- [1069] addmessage          [1304] get_translation      [1364] release_data (order.c)
- [1261] addparam_building (magic.c) [437] get_translations [1061] relpath (config.c)
- [1212] addparam_ship (magic.c) [1431] get_transporters (move.c) [1153] remove_building
- [1214] addparam_unit (magic.c) [154] get_unitrow (battle.c) [576] remove_empty_factions
- [769] addstrlist             [71] getbuf                [146] remove_empty_units
- [811] addtoken               [72] getbuf_utf8 (filereader.c) [134] remove_empty_units_in_region
- [234] adjust_coordinates    [937] getfaction            [571] remove_exclusive (laws.c)
- [701] aftermath (battle.c)  [652] getguard              [391] remove_idle_players (laws.c)
- [1789] age_borders          [483] getid                 [587] remove_plane
- [712] age_building (laws.c) [699] getint               [1748] remove_ship
- [1098] age_dragon            [54] getkeyword           [1456] remove_skill
- [1123] age_firedragon       [681] getparam              [499] remove_unit
- [1024] age_ghoul            [596] getplane             [1290] removelist
- [1308] age_illusion        [1717] getplanebyid         [1545] rename_cmd (laws.c)
- [959] age_piracy            [595] getplanebyname         [58] render_messages (creport.c)
- [1017] age_reduceproduction (reduceproduction.c) [1337] getplaneid [780] renumber_cmd
- [659] age_region (laws.c)  [1385] getreload            [1156] renumber_factions
- [1008] age_skeleton        [1018] getship              [1159] renumber_unit
- [1021] age_stonecircle (laws.c) [212] getshipweight    [1631] reorder_fleeing (battle.c)
- [720] age_traveldir (move.c) [387] getskill (study.c)   [400] reorder_units
- [1196] age_undead           [710] getstrtoken           [526] replace_order
- [336] age_unit (laws.c)     [195] gettoken              [860] report_action
- [1573] age_unit (magic.c)   [778] getuint               [397] report_building
- [1019] age_zombie           [205] getunit                 [9] report_computer (creport.c)
- [185] ageing (laws.c)      [1029] ghoul_name (names.c)  [428] report_crtypes (creport.c)
- [529] all_money (monsters.c) [891] gift_items           [725] report_donations
- [1330] allied_skilllimit (faction.c) [102] give_cmd     [861] report_effect (spells.c)
- [162] alliedfaction        [1763] give_control         [1187] report_failed_spell (battle.c)
-  [34] alliedgroup           [287] give_control_cmd     [1285] report_failure (spells.c)
-  [31] alliedunit           [1108] give_horses (item.c)  [106] report_item
- [419] allies (report.c)     [126] give_item             [103] report_items
- [752] allocate_resource (economy.c) [857] give_men        [4] report_plaintext
- [564] allowed_dragon        [484] give_money (item.c)  [1402] report_resource (reports.c)
- [1425] allowed_fly         [1060] give_peasants (monsters.c) [210] report_resources
- [1452] ally_add             [858] give_quota           [1301] report_spell (spells.c)
- [877] ally_cmd              [952] give_unit             [318] report_status
- [456] ally_mode (ally.c)   [1774] giveitem_init (giveitem.c) [614] report_summary
- [1160] allysf (battle.c)   [1262] giveitem_read (giveitem.c) [87] report_template (report.c)
- [1122] allysfm (battle.c)  [1309] giveitem_write (giveitem.c) [724] report_transfer (donations.c)
- [929] already_seen (magic.c) [405] godcurse (randenc.c) [881] reportcasualties (battle.c)
- [1566] any_recruiters (economy.c) [265] golem_factor (item.c) [1063] reportpath
- [1434] arg_set (messages.c) [910] good_region (wormhole.c) [2] reports
- [151] armedmen              [985] group_cmd            [1861] reports_done
- [819] armor_bonus (battle.c) [698] groupid (reports.c) [1527] required (economy.c)
- [1498] army_index (battle.c) [300] growing_herbs (laws.c) [1547] required (build.c)
- [329] astralregions         [624] growing_trees (laws.c) [1020] reroute (move.c)
- [1749] at_deprecate         [865] guard                 [972] res_changeaura (item.c)
- [563] at_find (attrib.c)    [690] guard_flags          [1779] res_changehp (item.c)
- [1678] at_register          [711] guard_off_cmd         [101] res_changeitem (item.c)
- [440] atoi36                [656] guard_on_cmd         [1200] res_changepeasants (item.c)
- [1416] atoip                [229] guards (report.c)     [912] res_changepermaura (item.c)
-  [90] att_modification (unit.c) [1363] handle_event     [886] research_cmd (economy.c)
-  [84] attack (battle.c)    [1706] handle_triggers       [324] reserve_cmd
- [785] attack_firesword (weapons.c) [1269] has_ao_healing (combatspells.c) [213] reserve_i (laws.c)
- [1409] attacks_per_round (battle.c) [1378] has_horses   [325] reserve_self
- [914] attrib_allocation (economy.c) [1808] has_limited_skills [356] reset_game (bindings.c)
- [1790] attrib_done          [193] has_skill            [1751] reset_locales
- [179] autoalliance (ally.c) [442] hash_uid (region.c)  [1625] reset_translations (creport.c)
- [777] average_score_of_age   [37] hashstring            [822] reshow (laws.c)
- [1471] b_blocknone         [1224] heal (item.c)         [818] reshow_cmd
- [1770] b_blockquestportal   [619] heal_factor (laws.c)  [823] reshow_other (laws.c)
- [1417] b_finvisible        [1158] heal_fighters (combatspells.c) [757] resolve
- [1771] b_fvisible           [678] help_feed (upkeep.c) [1862] resolve_building
- [1279] b_namequestportal (museum.c) [663] help_money (upkeep.c) [820] resolve_faction
- [642] b_nameroad (connection.c) [1177] helping          [846] resolve_familiar (magic.c)
- [1772] b_opaque             [493] herbsearch            [856] resolve_mage (magic.c)
- [1791] b_read               [131] hits                 [1575] resolve_region_id
- [1497] b_readroad (connection.c) [604] horse_fleeing_bonus (battle.c) [703] resolve_unit
- [1418] b_rvisibleroad (connection.c) [1567] horse_recruiters (economy.c) [546] resource2item
- [1420] b_transparent        [330] horses (laws.c)      [1499] resource2luxury
- [1487] b_uinvisible         [206] hp_status            [1569] resource2potion
- [1494] b_validroad (connection.c) [1519] hpflee (battle.c) [1353] resource2weapon
- [1792] b_write              [808] hunger (upkeep.c)     [233] resourcename
- [1495] b_writeroad (connection.c) [1223] hunger_damage (upkeep.c) [353] restack_units
- [363] balloc               [1055] hunted_dir (move.c)   [271] rfindhash (region.c)
- [1730] basepath             [582] i10toi36              [737] rhash
-  [79] battle_attacks (battle.c) [1442] i_add           [1351] rherbs
- [1125] battle_effects (battle.c) [569] i_canuse (battle.c) [1369] rhorses
- [352] battle_flee (battle.c) [115] i_change             [694] ridingcapacity (move.c)
- [1629] battle_free (battle.c) [127] i_find             [1578] rm_get
- [620] battle_punit (battle.c) [1737] i_findc            [890] rmfighter
- [503] battle_report (battle.c) [1400] i_free            [452] rmoney
- [1595] battle_update (battle.c) [1515] i_freeall       [1741] rmt_create
- [1096] begin_potion (alchemy.c) [130] i_get            [1490] rmt_find
- [547] besieged             [1651] i_merge              [1672] rmt_get
- [631] bewegung_blockiert_von (move.c) [1375] i_new      [533] rmtroop (battle.c)
- [1461] bfindhash (building.c) [1407] i_remove           [200] rname
- [1349] bfree                [285] icebergs (randenc.c)  [396] rng_injectable_double
- [1464] bhash                [294] immigration           [606] roadto (move.c)
- [119] bin_r_int_pak (binarystore.c) [1585] in_safe_building [165] room_for_race_in_region (monsters.c)
- [216] bin_r_str_buf (binarystore.c) [885] income       [1329] roqf_factor
- [445] bin_w_brk (binarystore.c) [454] inhabitable       [284] rotting_herbs (randenc.c)
- [218] bin_w_int_pak (binarystore.c) [1453] init_cb (report.c) [1607] rough_amount (economy.c)
- [446] bin_w_str (binarystore.c) [790] init_data (bindings.c) [618] rp_battles (report.c)
- [1793] bind_monsters       [1143] init_directions        [36] rp_messages (report.c)
- [641] border_name          [1809] init_genrand          [435] rpeasants
- [741] breed_cmd (economy.c) [1764] init_group (group.c) [1433] rpline (report.c)
- [742] breedhorses (economy.c) [1570] init_handler (event.c) [359] rps_nowrap (report.c)
- [1148] breedtrees (economy.c) [1307] init_itemtypes    [1221] rrandneighbour (volcano.c)
- [1360] brelease            [1179] init_keyword          [508] rroad
- [1415] bt_changed          [1099] init_keywords        [1438] rsetherbs
- [343] bt_effsize           [1396] init_learning (study.c) [537] rsetherbtype
- [237] bt_find               [948] init_locale          [1408] rsethorses
- [236] bt_find_i (building.c) [947] init_locales         [553] rsetmoney
- [1114] bt_get_or_create    [1558] init_mage (magic.c)   [545] rsetpeasants
- [1698] bt_register         [1319] init_mallornseed     [1152] rsetroad
- [201] buforder (reports.c) [1235] init_oldpotions (item.c) [1410] rsettrees
-  [17] bufunit              [1157] init_options_translation [597] rt_find
- [691] build                 [613] init_order           [1139] rt_get_or_create
- [696] build_building       [1100] init_parameters      [1640] rt_register (item.c)
- [950] build_road           [1310] init_processor        [302] rtrees
- [839] build_ship (build.c)  [399] init_reports         [1332] rule_alliance_limit
- [1428] building_finished   [1731] init_resourcelimit (item.c) [855] rule_auto_taxation (economy.c)
- [1488] building_is_active  [1228] init_resources        [738] rule_autowork (economy.c)
- [232] building_owner       [1272] init_rules (battle.c) [1327] rule_blessed_harvest
- [253] building_owner_ex (building.c) [1320] init_seed  [1331] rule_faction_limit
- [708] building_protection (building.c) [1592] init_skillmod (skills.c) [1175] rule_force_leave
- [1504] building_set_owner  [1101] init_skills          [1328] rule_give
- [1010] building_update_owner [1312] init_smithy (building.c) [829] rule_random_progress (skills.c)
- [1500] buildingcapacity    [1810] init_terrains        [1323] rule_region_owners
- [367] buildingeffsize      [1129] init_terrains_translation [1325] rule_stealth_anon
- [1535] buildingmaintenance (report.c) [544] init_tokens_str [530] rule_stealth_other
- [621] buildingname         [1033] init_translations    [1204] rule_transfermen (give.c)
- [414] buildingtype          [384] init_transportation (move.c) [1247] runhash
- [1443] buildingtype_exists [1486] inside_building       [181] sail (move.c)
- [1720] bunhash              [345] internal_path_find (pathfinder.c) [969] scale_number
- [707] buy (economy.c)      [1756] intlist_add           [768] scareaway (monster.c)
- [1536] c_clearflag         [1757] intlist_init          [380] scared_by_monster (monster.c)
- [1070] caddmessage (messages.c) [139] invisible          [23] score
- [645] calculate_armor      [1368] is_allied             [244] scramble (economy.c)
- [603] calculate_emigration (laws.c) [479] is_astral    [1116] scramble_fighters (combatspells.c)
- [1794] caldera_handle (arena.c) [1550] is_attacker     [1729] section_add
- [1270] caldera_read (arena.c) [554] is_building_type   [1563] section_find
- [1795] caldera_write (arena.c) [570] is_exclusive      [1440] see_border
- [1796] calendar_cleanup    [1092] is_familiar          [1117] seefaction
- [1338] can_charm (spells.c) [1088] is_freezing (move.c) [1491] seematrix (battle.c)
- [1634] can_contact          [211] is_guard             [1132] select_ally
- [1335] can_give (give.c)    [377] is_guarded            [700] select_armor (battle.c)
- [940] can_give_men (give.c) [186] is_guardian_r (move.c) [172] select_enemy
- [600] can_give_to           [626] is_guardian_u (move.c) [1322] select_familiar (spells.c)
- [908] can_guard (economy.c) [1370] is_long              [680] select_magicarmor
- [1112] can_leave            [262] is_mage               [160] select_opponent (battle.c)
- [736] can_move (move.c)    [1047] is_migrant           [1079] select_recruitment (economy.c)
- [679] can_start_guarding   [1392] is_mourning           [761] select_spellbook (magic.c)
- [640] can_survive          [1231] is_moving_ship (magic.c) [1367] select_weapon (battle.c)
- [854] can_takeoff           [687] is_persistent         [909] select_wormhole_regions (wormhole.c)
- [833] cancast               [552] is_repeated           [498] sell (economy.c)
- [1031] canfly              [1358] is_riding (battle.c) [1202] send_cmd
- [465] canride (move.c)      [668] isparam              [1576] set_attacker (battle.c)
- [469] cansail (move.c)      [453] it_alias (item.c)     [875] set_coast (move.c)
-  [22] cansee                [385] it_find              [1146] set_combatspell
- [170] cansee_durchgezogen  [1115] it_get_or_create     [1265] set_curseingmagician (curse.c)
- [684] cansee_unit          [1636] it_register (item.c) [1620] set_email
- [682] canswim              [1679] it_set_appearance    [1562] set_enemy (battle.c)
- [633] canwalk (move.c)      [561] item2resource         [183] set_factionstealth
- [502] cap_route (move.c)   [1811] item_done             [992] set_familiar (magic.c)
- [760] cast_cmd (magic.c)    [149] item_invis (unit.c)  [1574] set_friendly (battle.c)
- [623] cast_combatspell (battle.c) [338] itoa10         [1048] set_group
- [512] castle_name (building.c) [116] itoa36            [1134] set_leftship
- [513] castle_name_i (building.c) [107] itoab            [774] set_level
- [1003] caught_target (move.c) [439] jenkins_hash       [1326] set_money
- [598] cb_add_address (reports.c) [693] join_allies (battle.c) [486] set_new_dragon_target (monsters.c)
-  [94] cb_add_seen (reports.c) [425] join_battle (battle.c) [1387] set_number
- [204] cb_cr_travelthru_ship (creport.c) [1083] join_group [1365] set_order
- [466] cb_cr_travelthru_unit (creport.c) [1016] join_path [1689] set_param
- [308] cb_find_prefix        [464] json_config          [1015] set_racename
-  [95] cb_find_prefix_i (critbit.c) [772] json_disable_features (jsonconf.c) [1430] set_resvalue
-  [13] cb_find_top_i (critbit.c) [583] json_export       [933] set_spellpoints
- [335] cb_get_kv            [1707] json_flags (jsonconf.c) [588] set_string
- [577] cb_insert            [1283] json_include (jsonconf.c) [815] setguard
- [653] cb_new_kv            [1127] json_keyword (jsonconf.c) [1542] setreload (battle.c)
- [169] cb_write_travelthru (report.c) [1124] json_keywords (jsonconf.c) [1390] setstatus
- [789] centre (report.c)    [1812] json_prefixes (jsonconf.c) [182] setstealth_cmd
- [495] chance                [467] json_settings (jsonconf.c) [1863] setup_signal_handler (main.c)
- [982] change_effect        [1189] json_terrain (jsonconf.c) [1484] sfindhash (ship.c)
- [911] change_maxspellpoints [1694] json_terrain_production (jsonconf.c) [1502] shash
- [337] change_money         [1190] json_terrains (jsonconf.c) [1482] ship_damage_percent
- [1441] change_reservation  [1813] kernel_done           [438] ship_owner
- [240] change_resource      [1814] kernel_init          [1571] ship_owner_ex (ship.c)
- [971] change_spellpoints    [719] key_get               [354] ship_ready (move.c)
- [1721] changefaction_init (changefaction.c) [1355] keyword [1505] ship_set_owner
- [1166] changefaction_read (changefaction.c) [1348] keyword_disabled [573] ship_update_owner
- [1258] changefaction_write (changefaction.c) [1647] keyword_key (keyword.c) [567] shipcapacity
- [1746] changerace_init (changerace.c) [532] kill_troop [1072] shipcurse_flyingship (flyingship.c)
- [1215] changerace_read (changerace.c) [817] killunit_read (killunit.c) [290] shipname
- [1287] changerace_write (changerace.c) [978] killunit_write (killunit.c) [669] shipspeed
- [848] chaos (chaos.c)       [956] knowsspell           [1468] shiptrail_age (move.c)
- [1797] chaos_register       [476] koor_distance        [1492] shiptrail_finalize (move.c)
- [514] chaos_update         [1394] koor_distance_orig (region.c) [1469] shiptrail_init (move.c)
- [1077] chaosfactor (monsters.c) [1724] koor_distance_wrap_xy (region.c) [1475] shiptrail_read (move.c)
- [1213] chaosterrain (chaos.c) [562] koor_reldirection (move.c) [1511] shiptrail_write (move.c)
- [1537] chash                [651] largestbuilding       [892] shock_read (shock.c)
- [1244] check_dupe (log.c)  [1601] lastregion (reports.c) [1050] shock_write (shock.c)
- [1432] check_errno (report.c) [471] learn_skill        [1248] show_alliances_cr (creport.c)
- [1138] check_give           [432] leave                 [429] show_allies (report.c)
- [786] check_leuchtturm     [1009] leave_building        [661] show_allies_cr (creport.c)
- [1141] check_messages_exist (reports.c) [721] leave_cmd [889] show_new_spells
- [184] check_overpopulated (monsters.c) [540] leave_ship [745] sideabkz (battle.c)
- [793] check_param           [704] leave_trail (move.c)  [867] sidename (battle.c)
- [657] check_ship_allowed    [500] leftship              [475] sinkships
- [1234] check_steal         [1635] leftship_age (unit.c) [510] sk_set
- [1268] checkpasswd         [1388] level_days           [1035] skeleton_name (names.c)
- [402] checkunitnumber       [888] leveled_allocation (economy.c) [365] skill_enabled
- [565] choplist (lists.c)   [1071] levitate_ship        [1205] skill_key (skill.c)
- [686] cinfo_building        [286] lifestyle            [1172] skill_limit
- [824] cinfo_magicresistance (magicresistance.c) [728] lighthouse_range [264] skill_mod
- [996] cinfo_magicrunes (buildingcurse.c) [1775] limit_mallornseeds (seed.c) [1032] skill_summoned (spells.c)
- [812] cinfo_ship            [943] limit_resource (helpers.c) [509] skill_weeks
- [997] cinfo_shipnodrift (shipcurse.c) [1691] limit_seeds (seed.c) [166] skilldiff
- [751] cinfo_simple          [879] limited_give (give.c) [214] skillmod
- [1192] cinfo_skillmod (unitcurse.c) [635] list_address (report.c) [122] skillname
- [1118] cinfo_slave (unitcurse.c) [190] listlen         [1593] slipthru (laws.c)
- [1110] cinfo_speed (unitcurse.c) [73] live (laws.c)     [548] slprintf
- [1242] claim_cmd           [1293] load_inifile (main.c) [520] sm_familiar (magic.c)
- [309] class_index_event     [266] locale_getstring     [1613] sm_smithy (building.c)
- [531] clear_npc_orders (save.c) [1354] locale_index    [1864] sort_wormhole_regions
- [1271] clonedied_read (clonedied.c) [1815] locale_init [1514] sp_alias (spell.c)
- [1321] clonedied_write (clonedied.c) [568] locale_name  [847] sp_blessedharvest (spells.c)
- [718] cmistake              [918] locale_setstring     [1209] sp_bloodsacrifice (spells.c)
- [578] cmp_curse (curse.c)    [27] locale_string         [993] sp_charmingsong (spells.c)
- [305] cmp_faction          [1816] log_close             [627] sp_dragonodem
- [203] cmp_transfer         [1776] log_create           [1045] sp_enterastral
- [670] cmp_wage             [1245] log_debug             [988] sp_eternizewall (spells.c)
- [1644] co_get_caster       [1340] log_error            [1064] sp_flying_ship
- [1594] co_get_region       [1339] log_info             [1040] sp_generous (spells.c)
- [898] combatspell_cmd      [1817] log_open              [974] sp_goodwinds (spells.c)
- [1352] config_changed       [251] log_orders (reports.c) [931] sp_hain (spells.c)
- [224] config_get           [1458] log_prefix (log.c)    [989] sp_healing
- [714] config_get_flt       [1818] log_rotate           [1068] sp_holyground (spells.c)
- [348] config_get_int       [1459] log_stdio (log.c)     [923] sp_igjarjuk
- [462] config_parse         [1819] log_to_file           [957] sp_kampfzauber
- [460] config_read          [1342] log_warning           [968] sp_mallornhain (spells.c)
- [444] config_set           [1243] log_write (log.c)    [1336] sp_seduce (spells.c)
- [794] config_token          [873] loot_cmd              [939] sp_song_of_peace (spells.c)
- [965] contact_cmd           [810] loot_items (battle.c) [871] sp_stormwinds (spells.c)
- [654] contest (battle.c)   [1013] loot_quota (battle.c) [1025] sp_summon_familiar (spells.c)
- [655] contest_classic (battle.c) [644] lovar           [1034] sp_summonshadowlords (spells.c)
- [813] continue_ship         [809] lparagraph            [896] sp_summonundead (spells.c)
- [521] copy_arg (message.c) [1738] lt_register (item.c)  [784] sp_viewreality
- [441] copy_order           [1645] lua_callspell (helpers.c) [827] sparagraph
- [357] count_all            [1591] lua_canuse_item (helpers.c) [505] spawn_braineaters
- [1220] count_allies        [1820] lua_done              [411] spawn_dragons
- [231] count_cb (reports.c) [1191] lua_getresource (helpers.c) [831] spawn_seaserpent
- [611] count_enemies        [1316] lua_init              [629] spawn_undead
- [636] count_enemies_i (battle.c) [157] magic           [1621] spc_email_isvalid (goodies.c)
- [219] count_faction         [897] magic_lowskill       [1526] special_resources (bind_region.c)
- [730] count_maxmigrants     [727] magic_resistance     [1657] spell_damage (combatspells.c)
- [731] count_migrants        [844] mail_cmd              [841] spell_info
- [1089] count_particles (names.c) [1106] mailfaction (laws.c) [646] spell_name
- [666] count_side (battle.c) [921] mailunit (laws.c)    [1572] spellbook_add
- [868] count_skill           [478] maintain (economy.c) [1742] spellbook_clear
- [518] count_travelthru      [339] maintain_buildings   [1557] spellbook_get
- [487] count_units           [481] maintenance_cost      [995] spellcost
- [572] countheroes          [1282] make_battle          [1000] spellpower
- [903] countspells           [383] make_cmd             [1650] spl_costtyp (magic.c)
- [135] cr_borders (creport.c) [802] make_curse (curse.c) [743] split_allocations
- [1481] cr_building (creport.c) [584] make_external_node (critbit.c) [1518] split_messages
- [1493] cr_faction (creport.c) [1219] make_familiar (spells.c) [828] split_paragraph
- [602] cr_find_address (creport.c) [424] make_fighter     [53] spskill
- [1406] cr_int              [1589] make_follow           [632] spunit
- [489] cr_order (creport.c) [1298] make_heroes (battle.c) [990] spy_cmd
- [239] cr_output_building (creport.c) [1718] make_iceberg [1038] spy_message
-  [69] cr_output_curses (creport.c) [1615] make_leftship (unit.c) [1503] st_find
- [144] cr_output_curses_compat (creport.c) [1303] make_locales [1501] st_find_i (ship.c)
-  [57] cr_output_messages (creport.c) [1821] make_matmod [1743] st_get_or_create
-  [10] cr_output_region (creport.c) [522] make_movement_order (monsters.c) [297] start_battle (battle.c)
- [378] cr_output_resource (creport.c) [970] make_name (names.c) [70] statistics (report.c)
- [238] cr_output_resources (creport.c) [1603] make_otherfaction [904] status_cmd
- [152] cr_output_ship (creport.c) [1722] make_reduceproduction [550] statusrow
- [639] cr_output_spells (creport.c) [289] make_route (move.c) [766] steal_cmd (economy.c)
- [298] cr_output_travelthru (creport.c) [876] make_side  [188] stealth_modifier
-  [19] cr_output_unit       [1777] make_skillmod         [167] stream_order (creport.c)
-  [18] cr_output_unit_compat (creport.c) [21] make_summary [158] stream_printf
- [949] cr_race (creport.c)  [1701] make_targetregion    [1374] strlcat
- [662] cr_region (creport.c) [1188] make_undead_unit      [45] strlcpy
- [1414] cr_region_header (creport.c) [1150] make_wormhole (wormhole.c) [67] strlcpy_w
- [840] cr_regions (creport.c) [1151] make_wormholes      [105] study_cmd
- [196] cr_render            [1267] make_zombie           [433] study_cost
- [756] cr_reportspell (creport.c) [1084] makename (region.c) [747] study_days (study.c)
- [488] cr_resource (creport.c) [759] manufacture (economy.c) [1398] study_speedup (study.c)
- [960] cr_resources (creport.c) [610] mark_travelthru (move.c) [925] summon_allies (combatspells.c)
- [1530] cr_ship (creport.c)  [748] markets_module       [1744] sunhash
- [672] cr_skill (creport.c)  [975] matmod (build.c)     [1036] syntax_error
- [1026] cr_spell (creport.c) [915] max_magicians        [1865] t_add
- [1510] cr_string           [1037] max_skill (economy.c) [1546] t_new
- [1403] cr_unit (creport.c)  [755] max_spellpoints      [1154] target_resists_magic
- [579] create_backup        [1109] max_transfers (give.c) [697] tax_cmd
- [1066] create_castorder     [946] maxbuild              [272] teach_cmd
- [1137] create_castorder_combat (battle.c) [492] maxheroes [426] teach_unit (study.c)
- [800] create_curse          [473] maxworkingpeasants    [410] term_eval (dice.c)
- [252] create_data (order.c) [1046] mayboard (laws.c)    [242] terminate
- [1294] create_directories   [936] mayenter (laws.c)    [1165] terraform_default (resources.c)
- [1658] create_equipment    [1082] melt_iceberg (randenc.c) [932] terraform_region
- [538] create_icebergs      [1517] merge_messages        [986] terraform_resources
- [617] create_item (economy.c) [834] message_all        [1421] terrain_find_i (terrain.c)
- [1315] create_mage         [1822] message_done          [226] terrain_name
- [1288] create_newfamiliar   [716] message_faction (battle.c) [1760] terrains
- [341] create_order         [1405] messagehash (creport.c) [1709] timeout_handle (timeout.c)
- [175] create_order_i (order.c) [1478] migrate (laws.c) [1710] timeout_init (timeout.c)
- [821] create_potion (economy.c) [1652] mk_piracy (piracy.c) [1719] timeout_read (timeout.c)
- [1014] create_ship         [1366] mkdata (order.c)     [1711] timeout_write (timeout.c)
- [1639] create_spell         [261] mkname               [1866] tolua_bind_open
- [1606] create_spellbook     [316] mkname_buf           [1318] tolua_bindings_open
- [296] create_unit          [1429] mknode               [1867] tolua_building_open
- [317] createunitid (unit.c) [1203] mm_smithy (building.c) [589] tolua_buildinglist_next
- [344] crew_skill           [1239] mod_elves_only (item.c) [1868] tolua_config_open
- [1798] crmessage_done       [764] monster_attack (monsters.c) [1869] tolua_dict_open
- [321] crt_find (crmessage.c) [248] monster_attacks     [1780] tolua_eressea_open
- [1006] crt_register         [407] monster_is_waiting   [1870] tolua_faction_open
- [110] crtag (creport.c)     [230] monster_kills_peasants [1871] tolua_game_open
- [592] ct_changed            [269] monster_learn (monsters.c) [1872] tolua_gmtool_open
- [1142] ct_checknames        [129] monster_move (monsters.c) [1873] tolua_locale_open
- [114] ct_find               [215] monthly_healing      [1874] tolua_log_open
- [1686] ct_register         [1479] morale_update        [1875] tolua_message_open
- [580] ct_remove             [283] move_blocked         [1876] tolua_order_open
- [1695] cunhash (curse.c)     [66] move_cmd             [1877] tolua_process_open
- [543] curse_active          [342] move_hunters (move.c) [1878] tolua_reg_types_config (config.pkg.c)
- [1538] curse_age           [1094] move_iceberg (randenc.c) [1781] tolua_reg_types_eressea (eressea.pkg.c)
- [1489] curse_cansee         [534] move_icebergs (randenc.c) [1879] tolua_reg_types_game (game.pkg.c)
- [1696] curse_done           [326] move_pirates (move.c) [1880] tolua_reg_types_locale (locale.pkg.c)
- [1395] curse_geteffect      [374] move_ship            [1881] tolua_reg_types_log (log.pkg.c)
- [1590] curse_geteffect_int  [421] move_unit            [1882] tolua_reg_types_process (process.pkg.c)
- [1539] curse_init            [47] movement             [1883] tolua_reg_types_settings (settings.pkg.c)
- [1140] curse_name          [1193] movement_error (move.c) [1884] tolua_region_open
- [770] curse_read            [155] movement_speed (move.c) [590] tolua_regionlist_next
- [930] curse_write           [350] movewhere            [1885] tolua_settings_open
- [1799] curses_done         [1399] msg_addref           [1886] tolua_ship_open
- [375] cycle_route (move.c)  [228] msg_create           [1887] tolua_sqlite_open
- [1641] damage_ship         [1080] msg_create_message (bind_message.c) [1888] tolua_storage_open
- [1044] damage_unit (volcano.c) [664] msg_curse         [1274] tolua_toid
- [1289] datapath             [744] msg_error             [591] tolua_tousertype
- [1800] dazzle               [647] msg_feedback          [449] tolua_unit_get_faction (bind_unit.c)
- [1549] dead_fighters (battle.c) [1384] msg_free        [1782] tolua_unit_open
- [674] deathcount           [1005] msg_materials_required [313] tolua_unitlist_next
- [843] deathcounts           [132] msg_message          [1085] tpregion (teleport.c)
-  [56] decode_pointer (critbit.c) [1373] msg_release     [207] trailinto
- [851] default_name         [1042] msg_send_faction (bind_message.c) [1039] transfer_curse
- [902] default_order        [1210] msg_send_region (bind_message.c) [1622] transfer_seen
- [1659] default_score       [1633] msg_set_int (bind_message.c) [899] transfermen
- [1144] default_spoil (item.c) [1685] msg_set_region (bind_message.c) [75] translate (creport.c)
- [173] default_wage (config.c) [1226] msg_set_resource (bind_message.c) [28] translate
- [249] defaultorders        [1646] msg_set_unit (bind_message.c) [1889] translation_done
- [966] deliverMail          [1286] msg_to_ship_inmates (move.c) [1890] translation_init
-  [50] demographics         [1823] mt_clear              [430] translist
- [826] demon_skillchange     [227] mt_find               [358] transliterate
- [246] demon_skillchanges (randenc.c) [1587] mt_id (message.c) [1011] transport (move.c)
-  [35] describe (report.c)  [1588] mt_new                 [81] travel (move.c)
- [267] describe_race (names.c) [1007] mt_register         [92] travel_i (move.c)
- [1113] destroy_cmd         [1602] mtype_get_param       [147] travel_route (move.c)
- [1697] destroy_curse        [835] name_cmd              [609] travelthru_add
- [1230] destroy_road (build.c) [803] name_unit           [180] travelthru_cansee
- [392] destroyfaction        [788] natural_armor          [41] travelthru_map
- [307] dfindhash            [1273] nb_armor (volcano.c) [1201] treeman_neighbour (monsters.c)
- [787] dice                 [1734] new_armortype        [1783] trigger_changefaction
- [409] dice_rand             [705] new_border           [1297] trigger_changerace
- [1670] dict_get            [1059] new_building         [1891] trigger_giveitem
- [1675] dict_init (dict.c)  [1565] new_group            [1752] trigger_killunit
- [1671] dict_name           [1739] new_luxurytype       [1892] trigger_shock
- [1676] dict_read (dict.c)  [1427] new_node (pathfinder.c) [1753] trigger_timeout
- [1677] dict_write (dict.c) [1712] new_potiontype        [677] trollbelts (battle.c)
- [1508] dir_invert           [275] new_region           [1225] try_rename (laws.c)
- [771] disable_feature (jsonconf.c) [1229] new_ship     [1554] tsf_find (crmessage.c)
- [999] disband_men           [282] new_units            [1705] tsf_register
- [859] display_cmd          [1703] new_weapontype       [1548] tt_find
- [1054] display_item (laws.c) [1263] newcontainerid     [1715] tt_register
- [1090] display_potion (laws.c) [594] newline            [347] u_description
- [963] display_race (laws.c) [1359] newterrain           [919] u_geteffstealth
- [241] dissolve_units (randenc.c) [319] newunitid        [951] u_hasspell
- [599] distance              [601] next_region (move.c)  [257] u_irace
-  [80] do_attack            [1758] nextlocale             [89] u_race
-  [64] do_battle            [1333] nmr_death (laws.c)   [1460] u_set_building
-  [63] do_battles            [878] nmr_warnings         [1485] u_set_ship
- [825] do_combatmagic        [376] normalvariate        [1199] u_seteffstealth
- [702] do_combatspell (battle.c) [141] nr_building (report.c) [1111] u_setfaction
- [250] do_contact (laws.c)    [48] nr_curses (report.c) [1389] u_setrace
- [128] do_enter              [401] nr_curses_i (report.c) [692] ualias
- [648] do_extra_spell (battle.c) [25] nr_render          [927] ucontact
- [1062] do_fumble (magic.c)  [113] nr_section            [109] ufindhash
- [941] do_potion (alchemy.c) [111] nr_ship (report.c)   [1133] ugetpotionuse
- [351] do_recruiting (economy.c) [507] nr_spell          [667] uhash
- [515] do_siege              [732] nr_spell_syntax       [314] unicode_ucs4_to_utf8
- [612] do_work (economy.c)    [11] nr_unit (report.c)   [1216] unicode_utf8_strcasecmp
- [1397] done_learning (study.c) [1232] nrand (monsters.c) [177] unicode_utf8_to_ucs4
- [1126] dracoid_name (names.c) [98] nrt_find            [1684] unit_addorder
- [516] dragon_affinity_value (monsters.c) [883] nrt_register [709] unit_can_study
- [1095] dragon_name (names.c) [1524] nrt_section         [427] unit_get_spellbook
- [850] drain_exp             [443] nrt_string           [1735] unit_gethp
- [1053] drift_target         [723] ntimespprob           [332] unit_getname
- [490] drifting_ships (move.c) [14] old_race             [758] unit_getspell
- [394] drown                [1381] oldcursename         [1577] unit_has_cursed_item (give.c)
- [468] eaten_by_monster (monster.c) [1240] oldfamiliars (races.c) [136] unit_max_hp
- [243] eatwhite             [1596] oldterrain           [1540] unit_setname
- [255] eatwhitespace_c (parser.c) [470] omniscient      [1391] unit_skill
-  [78] economics            [1824] openlibs (bindings.c) [142] unitname
- [334] eff_skill             [176] opstack_pop            [46] unitorders (save.c)
- [845] eff_spelllevel        [202] opstack_push         [1167] unset_combatspell
- [163] eff_stealth           [370] orc_growth (randenc.c) [415] update_guards
- [683] eff_weight (move.c)   [615] out_faction (summary.c) [551] update_interval
- [100] effskill             [1002] overload (move.c)     [605] update_lighthouse
- [504] effskill_study       [1295] overload_start (move.c) [270] update_long_order
- [1801] enable_keyword       [676] owner_buildingtyp    [1155] update_nmrs
- [814] end_potion (alchemy.c) [1393] owner_change       [1237] update_resource (resources.c)
- [1512] enoughsailors        [311] pack_int (binarystore.c) [1457] update_resources
- [145] enter_1 (laws.c)     [1688] pack_keyval           [381] update_spells (laws.c)
- [295] enter_2 (laws.c)       [26] paragraph (report.c)  [497] uprivate
- [695] enter_building       [1655] parameter_key (config.c) [1472] ur_add
- [733] enter_ship            [333] parse (translation.c) [436] urace
- [665] entertain_cmd        [1662] parse_ai (xmlreader.c) [1754] ursprung_x (plane.c)
- [643] entertainmoney       [1825] parse_args (main.c)  [1755] ursprung_y (plane.c)
- [1437] entrance_allowed (move.c) [1131] parse_buildings (xmlreader.c) [935] use_bloodpotion (item.c)
- [1121] equip_items         [1252] parse_calendar (xmlreader.c) [763] use_cmd
- [775] equip_unit           [1292] parse_config (main.c) [1149] use_default (resources.c)
- [776] equip_unit_mask      [1170] parse_equipment (xmlreader.c) [1119] use_healingpotion (item.c)
- [1702] equipment_addspell  [1637] parse_function (xmlreader.c) [765] use_item (laws.c)
- [1802] equipment_done       [852] parse_ids              [39] use_pooled
- [1747] equipment_setcallback [1317] parse_inifile (bindings.c) [801] use_potion
- [1664] equipment_setitem    [649] parse_int (translation.c) [1233] use_skillpotion
- [1649] equipment_setskill   [832] parse_messages (xmlreader.c) [1147] usetcontact
-  [59] eressea_read_game     [117] parse_order          [1078] usetpotionuse
- [1346] eressea_run         [1765] parse_param (xmlreader.c) [1041] usetprivate
- [1624] eressea_version     [1104] parse_races (xmlreader.c) [593] usiege
-  [76] eressea_write_game   [1086] parse_resources (xmlreader.c) [1049] uunhash
- [556] escape_string        [1826] parse_rules (xmlreader.c) [1893] valid_race
- [1182] eval_add (translation.c) [1305] parse_ships (xmlreader.c) [1051] validate_pirate (piracy.c)
- [494] eval_building (reports.c) [1827] parse_spellbooks (xmlreader.c) [1627] var_copy_items (reports.c)
- [608] eval_direction (reports.c) [1120] parse_spells (xmlreader.c) [734] var_copy_order (reports.c)
- [398] eval_eq (translation.c) [86] parse_string (translation.c) [1439] var_copy_regions (move.c)
- [685] eval_faction (reports.c) [864] parse_strings (xmlreader.c) [1632] var_copy_resources (reports.c)
- [393] eval_if (translation.c) [42] parse_symbol (translation.c) [1454] var_copy_string (reports.c)
- [268] eval_int (translation.c) [125] parse_token       [1628] var_free_resources (reports.c)
- [729] eval_int36 (reports.c) [220] parse_token_depr    [1470] var_free_string (reports.c)
- [517] eval_isnull (translation.c) [849] parser_end     [1784] verbosity_to_flags (main.c)
- [922] eval_localize (reports.c) [1506] parser_popstate [1255] verify_building (magic.c)
- [539] eval_lt (translation.c) [1507] parser_pushstate  [1704] verify_ship (magic.c)
- [472] eval_order (reports.c) [1618] password_encode    [1027] verify_targets (magic.c)
- [882] eval_race (reports.c) [1610] password_verify     [1028] verify_unit (magic.c)
- [245] eval_region (reports.c) [431] path_exists        [1894] version_no
- [328] eval_resource (reports.c) [523] path_find        [1525] visible_default (resources.c)
- [907] eval_resources (reports.c) [1828] pathfinder_cleanup [68] visible_faction
- [740] eval_ship (reports.c) [805] pay_spell            [1022] volcano_destruction (volcano.c)
- [671] eval_skill (reports.c) [1687] pcomp (summary.c)  [1023] volcano_outbreak
- [961] eval_spell (reports.c) [928] peasant_growth_factor (laws.c) [981] volcano_update
- [634] eval_trail (reports.c) [984] peasant_luck_effect  [174] wage
- [369] eval_trailto (reports.c) [1277] peasant_luck_factor (laws.c) [403] walkingcapacity
- [223] eval_unit (reports.c) [658] peasants (laws.c)     [450] wang_hash
- [1076] eval_unit_dative (reports.c) [795] personcapacity [168] weapon_effskill (battle.c)
- [1102] eval_weight (reports.c) [660] piracy_cmd         [221] weapon_skill (battle.c)
-  [49] expandbuying (economy.c) [1653] piracy_done (piracy.c) [1435] weapon_weight (battle.c)
- [637] expandentertainment (economy.c) [1654] piracy_init (piracy.c) [459] weight
- [816] expandloot (economy.c) [781] plagues             [1130] wormhole_age (wormhole.c)
- [197] expandorders (economy.c) [715] plain_name (terrain.c) [1238] wormhole_read (wormhole.c)
- [349] expandrecruit (economy.c) [273] plan_dragon (monsters.c) [1785] wormhole_write (wormhole.c)
-  [93] expandselling (economy.c) [52] plan_monsters     [1895] wormholes_register
- [807] expandstealing (economy.c) [1411] plane_center_x  [906] wormholes_update
- [278] expandtax            [1412] plane_center_y       [1896] write_alliances
- [277] expandwork (economy.c) [1379] plane_height        [301] write_attribs
- [455] f_get_alliance       [1380] plane_width          [1897] write_borders
- [161] f_regionid           [1184] plant (economy.c)    [1383] write_building_reference
- [477] f_regionid_s (reports.c) [1206] planttrees (economy.c) [622] write_buildingname
- [451] faction_alive        [1350] pnormalize           [1382] write_faction_reference
- [1543] faction_get_spellbook [1176] potion_luck (alchemy.c) [83] write_game
- [382] faction_getmages (laws.c) [945] potion_water_of_life (alchemy.c) [1449] write_group (group.c)
- [1357] faction_getorigin   [1377] preferred_weapon (battle.c) [920] write_groups
- [979] faction_setorigin     [340] prepare_lighthouse (reports.c) [955] write_handler (event.c)
- [1616] faction_setpassword    [8] prepare_report        [511] write_items
- [247] factionname          [1643] present (move.c)     [1560] write_mage (magic.c)
- [983] factionorders (save.c) [85] prices (report.c)    [1467] write_of
- [842] farcasting (magic.c)  [616] print_fighters (battle.c) [121] write_order
- [688] fbattlerecord (battle.c) [838] print_header (battle.c) [1480] write_owner (save.c)
- [315] ffindhash (faction.c) [938] print_items (creport.c) [1623] write_password (save.c)
- [1617] fhash                [525] print_stats (battle.c) [1207] write_planes
- [1012] fighters               [7] process              [1723] write_race_reference
- [1553] find_argtype           [6] processorders        [1583] write_region_reference
- [1496] find_bordertype       [29] produce               [280] write_regionname
- [549] find_function (translation.c) [1829] produce_mallornseeds (seed.c) [3] write_reports
- [1450] find_group (group.c) [994] produce_resource (helpers.c) [1135] write_score
- [1217] find_groupbyname (group.c) [1725] produce_seeds (seed.c) [853] write_script (reports.c)
- [967] find_piracy_target    [322] produceexp           [1523] write_seenspell (magic.c)
- [1581] find_side            [406] produceexp_days (study.c) [1386] write_ship_reference
- [1513] find_spell           [323] produceexp_ex         [291] write_shipname
- [304] find_variable (translation.c) [417] production   [1769] write_skill (unitcurse.c)
- [1462] findbuilding         [917] promotion_cmd         [303] write_spaces
- [866] findbuildingtype     [1713] pt_register (item.c)  [964] write_spell_modifier (report.c)
- [259] findfaction           [112] ql_advance           [1556] write_spellbook
- [735] finditemtype          [312] ql_find              [1584] write_targetregion (targetregion.c)
- [1665] findkeyword          [362] ql_foreachx           [689] write_translations (creport.c)
- [753] findnewunit           [138] ql_get                [327] write_travelthru
- [1241] findoption           [448] ql_push               [954] write_triggers
- [458] findparam             [156] ql_set_insert_ex       [97] write_unit
- [926] findparam_ex          [258] qli_init              [557] write_unit_reference
- [457] findplane             [192] qli_more              [148] write_unitname
- [1030] findrace             [585] qli_next              [762] writefaction
- [420] findregion            [276] quit                   [82] writegame
- [1463] findregionbyid       [779] r_addmessage          [208] writeorder (save.c)
- [1181] findresourcetype     [783] r_astral_to_standard [1074] writepasswd
- [1483] findship             [474] r_connect             [519] writeregion
- [869] findshiptype         [1404] r_demand             [1253] writeturn (summary.c)
- [1586] findskill            [360] r_getmessages         [178] wrptr
- [501] findtoken            [1446] r_insectstalled      [1532] xml_bvalue
- [123] findunit              [199] r_isforest           [1520] xml_cleanup_string (xmlreader.c)
- [279] findunitg            [1413] r_setdemand          [1898] xml_done
- [991] findunitr            [1067] r_standard_to_astral [1599] xml_fvalue
-  [33] finish_reports        [905] race_namegen         [1533] xml_ivalue
- [485] firstregion (reports.c) [1766] racelist_insert   [1736] xml_readarmor (xmlreader.c)
- [638] flee (battle.c)       [133] racename             [1183] xml_readconstruction
- [408] fleechance            [222] raceprefix           [1107] xml_readitem (xmlreader.c)
- [1465] flying_ship         [1065] random_growl         [1745] xml_readluxury (xmlreader.c)
- [1803] flyingship_age (flyingship.c) [754] random_move_chance (monsters.c) [1714] xml_readpotion (xmlreader.c)
- [749] follow_ship           [153] random_neighbour (monsters.c) [1186] xml_readrequirements (xmlreader.c)
- [331] follow_unit          [1174] random_unit (chaos.c) [863] xml_readstrings (xmlreader.c)
- [1280] forbiddenid           [91] randomevents          [887] xml_readtext (xmlreader.c)
- [1093] forget_cmd (economy.c) [256] rc_changed         [1266] xml_readweapon (xmlreader.c)
- [1371] free_arg (message.c) [1661] rc_create           [1726] xml_register_callback
- [1630] free_battle           [15] rc_find              [1727] xml_spell (xmlreader.c)
- [1609] free_castorder        [16] rc_find_i (race.c)   [1056] zombie_name (names.c)
- [1541] free_castorders     [1105] rc_get_or_create       [32] <cycle 1>
- [574] free_config           [364] rc_name               [463] <cycle 2>
- [1580] free_fighter (battle.c) [260] rc_name_s          [953] <cycle 3>
- [1804] free_functions       [140] rc_skillmod           [797] <cycle 4>
- [1805] free_functions (translation.c) [830] rc_specialdamage (battle.c) [30] <cycle 5>
- [1750] free_group          [1681] rcomp (summary.c)

From 0af9fd18ef5bb4bda7c33a07ff88b05b0a59dfda Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 20 Feb 2021 20:17:22 +0100
Subject: [PATCH 48/78] make clean target cleans cmake

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 5aeb384c6..404c13c28 100644
--- a/Makefile
+++ b/Makefile
@@ -5,5 +5,5 @@ test:
 	s/runtests
 
 clean:
-	@rm -f *.log.*
+	@rm -rf *.log.* Debug/CMake* 
 	@find . -name "*~" | xargs rm -f

From e0e82c5fa5dd0a8c1d6765b91b5adf98b84ff708 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 20 Feb 2021 23:22:10 +0100
Subject: [PATCH 49/78] fix MSVC warning levels, move _CRT_SECURE_NO_WARNINGS
 define to sources

---
 CMakeLists.txt                 |  5 ++--
 clibs                          |  2 +-
 cmake/Modules/MSVC.cmake       | 19 --------------
 src/CMakeLists.txt             | 21 ++++++++-------
 src/attributes/attributes.c    |  2 +-
 src/attributes/key.c           |  4 ++-
 src/battle.c                   |  1 +
 src/battle.test.c              |  6 ++++-
 src/bind_config.c              |  5 ++--
 src/bind_eressea.c             |  4 ++-
 src/bind_storage.c             |  5 ++--
 src/bindings.c                 |  5 ++--
 src/checker.c                  |  5 ++--
 src/creport.c                  |  4 ++-
 src/economy.c                  |  1 +
 src/exparse.c                  |  2 +-
 src/gmtool.c                   |  5 ++--
 src/json.c                     |  5 ++--
 src/jsonconf.c                 | 47 +++++++++++++++++++++++-----------
 src/jsonconf.test.c            |  4 ++-
 src/kernel/ally.c              |  4 ++-
 src/kernel/attrib.c            | 27 +++++--------------
 src/kernel/config.c            |  3 +--
 src/kernel/db/sqlite.c         |  5 ++--
 src/kernel/faction.c           |  5 ++--
 src/kernel/faction.test.c      |  7 +++--
 src/kernel/gamedata.c          |  5 ++--
 src/kernel/item.c              |  4 ++-
 src/kernel/messages.c          |  4 ++-
 src/kernel/order.c             |  3 +--
 src/kernel/race.c              |  4 ++-
 src/kernel/race.test.c         |  6 ++++-
 src/kernel/save.c              |  4 ++-
 src/kernel/save.test.c         |  6 ++++-
 src/kernel/unit.test.c         |  5 ++++
 src/kernel/version.c           |  2 +-
 src/laws.c                     |  2 +-
 src/magic.c                    |  2 +-
 src/main.c                     |  6 +++++
 src/modules/autoseed.c         |  4 ++-
 src/modules/score.c            |  4 ++-
 src/names.c                    |  4 ++-
 src/orderfile.test.c           |  6 ++++-
 src/report.c                   |  2 +-
 src/reports.c                  |  2 +-
 src/skill.c                    |  4 ++-
 src/study.c                    |  2 +-
 src/summary.c                  |  2 +-
 src/tests.c                    |  6 ++++-
 src/util/crmessage.c           |  4 ++-
 src/util/crypto/CMakeLists.txt | 28 ++++++++++----------
 src/util/keyword.c             |  4 ++-
 src/util/language.c            |  3 +--
 src/util/log.c                 |  3 +++
 src/util/log.test.c            |  5 ++--
 src/util/order_parser.test.c   |  5 ++--
 src/util/pofile.c              |  3 +--
 src/util/strings.test.c        |  4 ++-
 src/util/unicode.test.c        |  5 ++--
 storage                        |  2 +-
 tolua                          |  2 +-
 vs2019-build.bat               |  4 +--
 62 files changed, 214 insertions(+), 150 deletions(-)
 delete mode 100644 cmake/Modules/MSVC.cmake

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a1ae374d..0c3727368 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,5 @@
-cmake_minimum_required(VERSION 2.9)
+cmake_minimum_required(VERSION 3.13)
+
 if (WIN32)
 file(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH )
 file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH )
@@ -17,7 +18,6 @@ set (HAVE_STRLCAT 0)
 set (HAVE_LIBBSD 0)
 set (HAVE_SIGNAL_H 0)
 set (HAVE_EXECINFO_H 0)
-include (MSVC)
 else (MSVC)
 
 include (CheckIncludeFile)
@@ -41,6 +41,7 @@ if (NOT CURSES_FOUND)
 find_package (Curses)
 endif (NOT CURSES_FOUND)
 
+#find_package (BerkeleyDB REQUIRED)
 find_package (SQLite3 REQUIRED)
 find_package (IniParser REQUIRED)
 find_package (CJSON REQUIRED)
diff --git a/clibs b/clibs
index 6cdcdd62d..8c3ce73e8 160000
--- a/clibs
+++ b/clibs
@@ -1 +1 @@
-Subproject commit 6cdcdd62d167e0159d10d4e95b5def97d785fdef
+Subproject commit 8c3ce73e861c952d04a28949b4a80e68c2cce8fd
diff --git a/cmake/Modules/MSVC.cmake b/cmake/Modules/MSVC.cmake
deleted file mode 100644
index d32822627..000000000
--- a/cmake/Modules/MSVC.cmake
+++ /dev/null
@@ -1,19 +0,0 @@
-MACRO (MSVC_CRT_SECURE_NO_WARNINGS)
-    IF (MSVC)
-        FOREACH (target ${ARGN})
-            SET_TARGET_PROPERTIES (${target} PROPERTIES
-                COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS
-            )
-        ENDFOREACH (target)
-    ENDIF (MSVC)
-ENDMACRO (MSVC_CRT_SECURE_NO_WARNINGS)
-
-MACRO (MSVC_SET_WARNING_LEVEL level)
-    IF (MSVC)
-    IF(CMAKE_C_FLAGS MATCHES "/W[0-4]")
-        STRING(REGEX REPLACE "/W[0-4]" "/W${level}" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
-    ELSE()
-        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W${level}")
-    ENDIF()
-    ENDIF(MSVC)
-ENDMACRO (MSVC_SET_WARNING_LEVEL)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d3ba76c05..7e3b0155a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,3 +1,5 @@
+cmake_minimum_required(VERSION 3.15)
+cmake_policy(SET CMP0092 NEW)
 project (server C)
 
 include_directories (${CMAKE_CURRENT_SOURCE_DIR})
@@ -19,14 +21,13 @@ COMPILE_DEFINITIONS ERESSEA_BUILDNO="${ERESSEA_BUILDNO}")
 ENDIF()
 
 IF (CMAKE_COMPILER_IS_GNUCC)
-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wvla")
+  add_compile_options(-Wvla)
 ENDIF()
 IF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
-#    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion -Wno-sign-conversion")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wsign-compare -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -Wno-long-long")
-#    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89")
+  add_compile_options(-Wsign-compare -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -Wno-long-long)
 ELSEIF(MSVC)
-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /WX /MP /D_CRT_SECURE_NO_WARNINGS /D_USE_MATH_DEFINES")
+  add_compile_options(/WX /MP)
+#  set(EXTRA_C_FLAGS /WX /MP /D_CRT_SECURE_NO_WARNINGS /D_USE_MATH_DEFINES)
     set(CMAKE_EXE_LINKER_FLAGS_DEBUG
         "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrt.lib")
     set(CMAKE_EXE_LINKER_FLAGS_RELEASE
@@ -46,6 +47,8 @@ ELSEIF(CMAKE_COMPILER_IS_GCC)
     ENDIF()
 ENDIF(CMAKE_COMPILER_IS_CLANG)
 
+string(REGEX REPLACE "/W[3|4]" "/w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+
 add_subdirectory(util)
 add_subdirectory(kernel)
 add_subdirectory(items)
@@ -311,24 +314,24 @@ if (SQLite3_FOUND)
 target_include_directories (game PRIVATE ${SQLite3_INCLUDE_DIRS})
 target_link_libraries(eressea ${SQLite3_LIBRARIES})
 target_link_libraries(test_eressea ${SQLite3_LIBRARIES})
-add_compile_definitions(game PRIVATE USE_SQLITE)
+target_compile_definitions(game PRIVATE USE_SQLITE)
 elseif (DB_FOUND)
 #include_directories (${DB_INCLUDE_DIR})
 target_link_libraries(eressea ${DB_LIBRARIES})
 target_link_libraries(test_eressea ${DB_LIBRARIES})
-add_compile_definitions(game PRIVATE USE_DB)
+target_compile_definitions(game PRIVATE USE_DB)
 endif(SQLite3_FOUND)
 
 if (READLINE_FOUND)
 #include_directories (${READLINE_INCLUDE_DIR})
 target_link_libraries(eressea ${READLINE_LIBRARY})
-add_compile_definitions(eressea PRIVATE DUSE_READLINE)
+target_compile_definitions(eressea PRIVATE DUSE_READLINE)
 endif (READLINE_FOUND)
 
 if (CURSES_FOUND)
 target_include_directories (eressea PRIVATE ${CURSES_INCLUDE_DIRS})
 target_link_libraries(eressea ${CURSES_LIBRARIES})
-add_compile_definitions(eressea PRIVATE USE_CURSES)
+target_compile_definitions(eressea PRIVATE USE_CURSES)
 endif(CURSES_FOUND)
 
 if (EXPAT_FOUND)
diff --git a/src/attributes/attributes.c b/src/attributes/attributes.c
index f1b97d8a5..d8fe35833 100644
--- a/src/attributes/attributes.c
+++ b/src/attributes/attributes.c
@@ -145,7 +145,7 @@ static int read_ext(variant *var, void *owner, gamedata *data)
 
     UNUSED_ARG(var);
     READ_INT(data->store, &len);
-    data->store->api->r_bin(data->store->handle, NULL, (size_t)len);
+    data->store->api->r_str(data->store->handle, NULL, (size_t)len);
     return AT_READ_OK;
 }
 
diff --git a/src/attributes/key.c b/src/attributes/key.c
index 22164e1fb..e35bf767c 100644
--- a/src/attributes/key.c
+++ b/src/attributes/key.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "key.h"
 
diff --git a/src/battle.c b/src/battle.c
index 0d153e525..44299df1e 100644
--- a/src/battle.c
+++ b/src/battle.c
@@ -1,4 +1,5 @@
 #ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
 #include <platform.h>
 #endif
 
diff --git a/src/battle.test.c b/src/battle.test.c
index fc1cab6c5..08adce803 100644
--- a/src/battle.test.c
+++ b/src/battle.test.c
@@ -1,4 +1,8 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 
 #include "battle.h"
 
diff --git a/src/bind_config.c b/src/bind_config.c
index 31ffcc287..54db2da4b 100644
--- a/src/bind_config.c
+++ b/src/bind_config.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include "bind_config.h"
 
 #include "jsonconf.h"
diff --git a/src/bind_eressea.c b/src/bind_eressea.c
index f76d0a903..ac04ce36b 100755
--- a/src/bind_eressea.c
+++ b/src/bind_eressea.c
@@ -1,5 +1,7 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
 #include "bind_eressea.h"
 
diff --git a/src/bind_storage.c b/src/bind_storage.c
index 5df148bb4..64fd3aa2e 100644
--- a/src/bind_storage.c
+++ b/src/bind_storage.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include "bind_storage.h"
 
 #include <kernel/save.h>
diff --git a/src/bindings.c b/src/bindings.c
index ac153680a..fdb2cd153 100755
--- a/src/bindings.c
+++ b/src/bindings.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include "bindings.h"
 #include "bind_tolua.h"
 
diff --git a/src/checker.c b/src/checker.c
index 7d1af6635..046fb9c05 100644
--- a/src/checker.c
+++ b/src/checker.c
@@ -1,7 +1,6 @@
-#ifdef _MSV_VER
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
 #endif
-
 #include "util/order_parser.h"
 #include "util/keyword.h"
 #include "util/language.h"
diff --git a/src/creport.c b/src/creport.c
index 551ee7fa9..f59bde5a8 100644
--- a/src/creport.c
+++ b/src/creport.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include <kernel/version.h>
 #include "creport.h"
diff --git a/src/economy.c b/src/economy.c
index fd87ee20c..e638afff5 100644
--- a/src/economy.c
+++ b/src/economy.c
@@ -1,4 +1,5 @@
 #ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
 #include <platform.h>
 #endif
 
diff --git a/src/exparse.c b/src/exparse.c
index 715b5f4c4..791223c61 100644
--- a/src/exparse.c
+++ b/src/exparse.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include "exparse.h"
 
diff --git a/src/gmtool.c b/src/gmtool.c
index 033823dc0..516589087 100644
--- a/src/gmtool.c
+++ b/src/gmtool.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include <curses.h>
 
 #include "gmtool.h"
diff --git a/src/json.c b/src/json.c
index f25970af0..034068ee0 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1,5 +1,6 @@
-#include "platform.h"
-
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "json.h"
 
 #include <util/base36.h>
diff --git a/src/jsonconf.c b/src/jsonconf.c
index 27a018b17..016f6c1c2 100644
--- a/src/jsonconf.c
+++ b/src/jsonconf.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "jsonconf.h"
 
 /* kernel includes */
@@ -47,22 +49,37 @@
 #include <stdlib.h>
 #include <string.h>
 
-static int json_flags(cJSON *json, const char *flags[]) {
-    cJSON *entry;
-    int result = 0;
-    assert(json->type == cJSON_Array);
-    for (entry = json->child; entry; entry = entry->next) {
-        if (entry->type == cJSON_String) {
-            int i;
-            for (i = 0; flags[i]; ++i) {
-                if (strcmp(flags[i], entry->valuestring) == 0) {
-                    result |= (1 << i);
-                    break;
-                }
-            }
+static void json_map(void* object, void (*mapfun)(void* child, void* udata), void* udata)
+{
+    cJSON *child, *json = (cJSON*)object;
+    for (child = json->child; child; child = child->next) {
+        mapfun(child, udata);
+    }
+}
+
+struct flags {
+    const char** names;
+    int result;
+};
+
+static void cb_flags(void* json, struct flags* flags)
+{
+    cJSON* entry = (cJSON*)json;
+    int i;
+    for (i = 0; flags->names[i]; ++i) {
+        if (strcmp(flags->names[i], entry->valuestring) == 0) {
+            flags->result |= (1 << i);
+            break;
         }
     }
-    return result;
+}
+
+static int json_flags(cJSON *json, const char *flags[]) {
+    struct flags ctx = { flags, 0 };
+
+    assert(json->type == cJSON_Array);
+    json_map(json, cb_flags, &ctx);
+    return ctx.result;
 }
 
 static void json_requirements(cJSON *json, requirement **matp) {
diff --git a/src/jsonconf.test.c b/src/jsonconf.test.c
index 491668506..0f6db3e5e 100644
--- a/src/jsonconf.test.c
+++ b/src/jsonconf.test.c
@@ -1,5 +1,7 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
 
 #include "kernel/types.h"
diff --git a/src/kernel/ally.c b/src/kernel/ally.c
index 300d64e15..c673dc7d8 100644
--- a/src/kernel/ally.c
+++ b/src/kernel/ally.c
@@ -1,4 +1,6 @@
-#include "platform.h"
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "config.h"
 #include "ally.h"
 
diff --git a/src/kernel/attrib.c b/src/kernel/attrib.c
index 3b99053b2..bfa5f65ed 100644
--- a/src/kernel/attrib.c
+++ b/src/kernel/attrib.c
@@ -94,33 +94,18 @@ void a_writechars(const variant * var, const void *owner, struct storage *store)
 int a_readstring(variant * var, void *owner, struct gamedata *data)
 {
     char buf[DISPLAYSIZE];
-    char * result = 0;
-    int e;
-    size_t len = 0;
-    do {
-        e = READ_STR(data->store, buf, sizeof(buf));
-        if (result) {
-            char *tmp = realloc(result, len + DISPLAYSIZE - 1);
-            if (!tmp) {
-                free(result);
-                abort();
-            }
-            result = tmp;
-            strcpy(result + len, buf);
-            len += DISPLAYSIZE - 1;
-        }
-        else {
-            result = str_strdup(buf);
-        }
-    } while (e == ENOMEM);
-    var->v = result;
+
+    READ_STR(data->store, buf, sizeof(buf));
+    var->v = str_strdup(buf);
     return AT_READ_OK;
 }
 
 void a_writestring(const variant * var, const void *owner, struct storage *store)
 {
+    const char* str = (const char*)var->v;
     assert(var && var->v);
-    WRITE_STR(store, (const char *)var->v);
+    assert(strlen(str) < DISPLAYSIZE);
+    WRITE_STR(store, str);
 }
 
 void a_finalizestring(variant * var)
diff --git a/src/kernel/config.c b/src/kernel/config.c
index 972ebe736..aa168cdfa 100644
--- a/src/kernel/config.c
+++ b/src/kernel/config.c
@@ -1,7 +1,6 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
-
 #include "config.h"
 
 /* kernel includes */
diff --git a/src/kernel/db/sqlite.c b/src/kernel/db/sqlite.c
index c7fdfe414..688d5f4f8 100644
--- a/src/kernel/db/sqlite.c
+++ b/src/kernel/db/sqlite.c
@@ -1,5 +1,6 @@
-#include <platform.h>
-
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 
 #include <util/log.h>
diff --git a/src/kernel/faction.c b/src/kernel/faction.c
index d31a9be1d..17abf3d60 100755
--- a/src/kernel/faction.c
+++ b/src/kernel/faction.c
@@ -1,5 +1,6 @@
-#include <platform.h>
-
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "faction.h"
 
 #include "calendar.h"
diff --git a/src/kernel/faction.test.c b/src/kernel/faction.test.c
index 7b88502f8..addd81832 100644
--- a/src/kernel/faction.test.c
+++ b/src/kernel/faction.test.c
@@ -1,5 +1,8 @@
-#include <platform.h>
-
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 #include <kernel/ally.h>
 #include <kernel/alliance.h>
 #include <kernel/calendar.h>
diff --git a/src/kernel/gamedata.c b/src/kernel/gamedata.c
index de52ba8b6..1079dc716 100644
--- a/src/kernel/gamedata.c
+++ b/src/kernel/gamedata.c
@@ -1,5 +1,6 @@
-#include <platform.h>
-
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "gamedata.h"
 
 #include <util/log.h>
diff --git a/src/kernel/item.c b/src/kernel/item.c
index 0d2764412..4285eb661 100644
--- a/src/kernel/item.c
+++ b/src/kernel/item.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "item.h"
 
diff --git a/src/kernel/messages.c b/src/kernel/messages.c
index 98411973d..3da4e492f 100644
--- a/src/kernel/messages.c
+++ b/src/kernel/messages.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "messages.h"
 
 /* kernel includes */
diff --git a/src/kernel/order.c b/src/kernel/order.c
index d54747417..7352f8ccc 100644
--- a/src/kernel/order.c
+++ b/src/kernel/order.c
@@ -1,7 +1,6 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
-
 #include <kernel/config.h>
 #include "order.h"
 
diff --git a/src/kernel/race.c b/src/kernel/race.c
index 66dced6cf..850a42259 100644
--- a/src/kernel/race.c
+++ b/src/kernel/race.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "race.h"
 
diff --git a/src/kernel/race.test.c b/src/kernel/race.test.c
index 117d263b0..9526325ac 100644
--- a/src/kernel/race.test.c
+++ b/src/kernel/race.test.c
@@ -1,4 +1,8 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 #include "faction.h"
 #include "unit.h"
 #include "race.h"
diff --git a/src/kernel/save.c b/src/kernel/save.c
index f83a87ef8..0006bd6ac 100644
--- a/src/kernel/save.c
+++ b/src/kernel/save.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include <kernel/version.h>
 #include "save.h"
diff --git a/src/kernel/save.test.c b/src/kernel/save.test.c
index e0f012cc4..098da369c 100644
--- a/src/kernel/save.test.c
+++ b/src/kernel/save.test.c
@@ -1,4 +1,8 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 #include <kernel/config.h>
 #include <kernel/race.h>
 #include <attributes/key.h>
diff --git a/src/kernel/unit.test.c b/src/kernel/unit.test.c
index 710154aac..53a43cab9 100644
--- a/src/kernel/unit.test.c
+++ b/src/kernel/unit.test.c
@@ -1,3 +1,8 @@
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 #include <kernel/ally.h>
 #include <kernel/config.h>
 #include <kernel/curse.h>
diff --git a/src/kernel/version.c b/src/kernel/version.c
index 0739b11b1..0170f54dc 100644
--- a/src/kernel/version.c
+++ b/src/kernel/version.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include "version.h"
 
diff --git a/src/laws.c b/src/laws.c
index 7f515e4ae..253c79ae5 100644
--- a/src/laws.c
+++ b/src/laws.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include <kernel/config.h>
 #include "laws.h"
diff --git a/src/magic.c b/src/magic.c
index 7064df368..84a87107c 100644
--- a/src/magic.c
+++ b/src/magic.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include "magic.h"
 
diff --git a/src/main.c b/src/main.c
index aa908b8ea..8c6379232 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,9 @@
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
+
 #include <kernel/calendar.h>
 #include <kernel/config.h>
 #include <kernel/messages.h>
diff --git a/src/modules/autoseed.c b/src/modules/autoseed.c
index b74690745..069d2487a 100644
--- a/src/modules/autoseed.c
+++ b/src/modules/autoseed.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "autoseed.h"
 
diff --git a/src/modules/score.c b/src/modules/score.c
index 85759fe02..d17077183 100644
--- a/src/modules/score.c
+++ b/src/modules/score.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "score.h"
 
diff --git a/src/names.c b/src/names.c
index 450fa9478..099c636e7 100644
--- a/src/names.c
+++ b/src/names.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "names.h"
 
diff --git a/src/orderfile.test.c b/src/orderfile.test.c
index 849562417..3a1223464 100644
--- a/src/orderfile.test.c
+++ b/src/orderfile.test.c
@@ -1,4 +1,8 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 #include <kernel/config.h>
 
 #include "orderfile.h"
diff --git a/src/report.c b/src/report.c
index 09b9ab82e..af3bbaee4 100644
--- a/src/report.c
+++ b/src/report.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 
 #include "report.h"
diff --git a/src/reports.c b/src/reports.c
index 79a5c7eb7..da1712711 100644
--- a/src/reports.c
+++ b/src/reports.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include "reports.h"
 
diff --git a/src/skill.c b/src/skill.c
index 41656f0ff..9e6619684 100644
--- a/src/skill.c
+++ b/src/skill.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "skill.h"
 
diff --git a/src/study.c b/src/study.c
index e529c2c31..28d762560 100644
--- a/src/study.c
+++ b/src/study.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include <kernel/config.h>
 #include "study.h"
diff --git a/src/summary.c b/src/summary.c
index de20f2dae..58687cdc9 100644
--- a/src/summary.c
+++ b/src/summary.c
@@ -1,5 +1,5 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
 #include <kernel/config.h>
 
diff --git a/src/tests.c b/src/tests.c
index 24d742c9d..270b34e21 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -1,4 +1,8 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#endif
 #include "tests.h"
 #include "prefix.h"
 #include "creport.h"
diff --git a/src/util/crmessage.c b/src/util/crmessage.c
index 09e6cdaf8..8830e8ddb 100644
--- a/src/util/crmessage.c
+++ b/src/util/crmessage.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "crmessage.h"
 
 #include "macros.h"
diff --git a/src/util/crypto/CMakeLists.txt b/src/util/crypto/CMakeLists.txt
index 735dabc0a..c4dc4e26c 100644
--- a/src/util/crypto/CMakeLists.txt
+++ b/src/util/crypto/CMakeLists.txt
@@ -1,26 +1,28 @@
+cmake_minimum_required(VERSION 2.9)
 project (crypto C)
 
-IF (MSVC)
-  include (MSVC)
-  MSVC_SET_WARNING_LEVEL(3)
-ENDIF (MSVC)
+if (MSVC)
+  #add_compile_definitions (_CRT_SECURE_NO_WARNINGS)
+  add_compile_options(/WX)
+  if(CMAKE_C_FLAGS MATCHES "/W[0-4]")
+    string(REGEX REPLACE "/W[0-4]" "/W3" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
+  else()
+    add_compile_options(/W3)
+  endif()
+endif (MSVC)
 
-SET (LIB_SRC
+set (LIB_SRC
   crypto.c
   crypt_blowfish/wrapper.c
   crypt_blowfish/crypt_blowfish.c
   crypt_blowfish/crypt_gensalt.c
 )
-ADD_LIBRARY (crypto ${LIB_SRC})
+add_library (crypto ${LIB_SRC})
 
 set (CRYPTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "crypto headers")
 set (CRYPTO_LIBRARIES crypto CACHE INTERNAL "crypto libraries")
 
-IF(WIN32)
-  SET(CRYPTO_LIBRARIES ${CRYPTO_LIBRARIES} bcrypt CACHE
+if(WIN32)
+  set(CRYPTO_LIBRARIES ${CRYPTO_LIBRARIES} bcrypt CACHE
     INTERNAL "crypto libraries")
-ENDIF()
-            
-IF (MSVC)
-  MSVC_CRT_SECURE_NO_WARNINGS (crypto)
-ENDIF (MSVC)
+endif()
diff --git a/src/util/keyword.c b/src/util/keyword.c
index 07b557572..19829f830 100644
--- a/src/util/keyword.c
+++ b/src/util/keyword.c
@@ -1,4 +1,6 @@
-#include <platform.h>
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include <kernel/config.h>
 #include "keyword.h"
 
diff --git a/src/util/language.c b/src/util/language.c
index 131b7078e..078017572 100644
--- a/src/util/language.c
+++ b/src/util/language.c
@@ -1,7 +1,6 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
-
 #include "language.h"
 
 #include "log.h"
diff --git a/src/util/log.c b/src/util/log.c
index e8cf0e2fe..2242888d4 100644
--- a/src/util/log.c
+++ b/src/util/log.c
@@ -1,3 +1,6 @@
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #include "log.h"
 
 #include "path.h"
diff --git a/src/util/log.test.c b/src/util/log.test.c
index 527776d4b..747ff4b63 100644
--- a/src/util/log.test.c
+++ b/src/util/log.test.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include "log.h"
 #include "stats.h"
 #include "macros.h"
diff --git a/src/util/order_parser.test.c b/src/util/order_parser.test.c
index d43f661fb..052149fe9 100644
--- a/src/util/order_parser.test.c
+++ b/src/util/order_parser.test.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include "order_parser.h"
 #include "strings.h"
 
diff --git a/src/util/pofile.c b/src/util/pofile.c
index 131994c37..a11ca7ff2 100644
--- a/src/util/pofile.c
+++ b/src/util/pofile.c
@@ -1,7 +1,6 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#define _CRT_SECURE_NO_WARNINGS
 #endif
-
 #include "pofile.h"
 #include "log.h"
 #include "strings.h"
diff --git a/src/util/strings.test.c b/src/util/strings.test.c
index e50e2cddd..7f624ddb7 100644
--- a/src/util/strings.test.c
+++ b/src/util/strings.test.c
@@ -1,5 +1,7 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
 #include <CuTest.h>
 
diff --git a/src/util/unicode.test.c b/src/util/unicode.test.c
index ee6120962..2cd36dc1b 100644
--- a/src/util/unicode.test.c
+++ b/src/util/unicode.test.c
@@ -1,7 +1,8 @@
 #ifdef _MSC_VER
-#include <platform.h>
+#ifndef _CRT_SECURE_NO_WARNINGS
+#define _CRT_SECURE_NO_WARNINGS
+#endif
 #endif
-
 #include "unicode.h"
 
 #include <CuTest.h>
diff --git a/storage b/storage
index 1f558529f..629e578a7 160000
--- a/storage
+++ b/storage
@@ -1 +1 @@
-Subproject commit 1f558529f7393c743c346a679d050d5f4ed19f14
+Subproject commit 629e578a7f912580933da26d8dc2c27804992fb3
diff --git a/tolua b/tolua
index a3dec42d3..7c73f64e0 160000
--- a/tolua
+++ b/tolua
@@ -1 +1 @@
-Subproject commit a3dec42d329dabcfe0a19c9bba506f7074883dba
+Subproject commit 7c73f64e0a0001f49f04c51921e4c15167e4e67b
diff --git a/vs2019-build.bat b/vs2019-build.bat
index 82733c683..2af3b8afc 100644
--- a/vs2019-build.bat
+++ b/vs2019-build.bat
@@ -1,7 +1,5 @@
 @ECHO OFF
-IF "%WIN32_DEV%" == "" SET WIN32_DEV="C:\Libraries"
 SET CMAKE_ROOT=%ProgramFiles%\CMake
-IF "%LUA_DEV%" == "" SET LUA_DEV="%ProgramFiles(x86)%/Lua/5.1"
 SET VSVERSION=16
 SET SRCDIR=%CD%
 REM CD ..
@@ -17,5 +15,5 @@ cd build-vs%VSVERSION%
 IF NOT EXIST CMakeCache.txt GOTO NOCACHE
 DEL CMakeCache.txt
 :NOCACHE
-"%CMAKE_ROOT%\bin\cmake.exe" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -A Win32 -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%CMAKE_MODULES%" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
+"%CMAKE_ROOT%\bin\cmake.exe" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -A x64 -G "Visual Studio %VSVERSION%" -DCMAKE_MODULE_PATH="%CMAKE_MODULES%" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
 PAUSE

From 3db561ec3a1fe2cffd60f71f1c68ecbf573a27ed Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sat, 20 Feb 2021 23:24:50 +0100
Subject: [PATCH 50/78] require cmake 3.13, not more

---
 src/CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7e3b0155a..efe25eb3a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,4 @@
-cmake_minimum_required(VERSION 3.15)
-cmake_policy(SET CMP0092 NEW)
+cmake_minimum_required(VERSION 3.13)
 project (server C)
 
 include_directories (${CMAKE_CURRENT_SOURCE_DIR})

From b0a23f390cfaf68bfd5efb839fd424b1b46a1ce2 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 00:18:32 +0100
Subject: [PATCH 51/78] wrong storage library version

---
 storage | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage b/storage
index 629e578a7..7810af55d 160000
--- a/storage
+++ b/storage
@@ -1 +1 @@
-Subproject commit 629e578a7f912580933da26d8dc2c27804992fb3
+Subproject commit 7810af55d05f63bc0f6cba8d78f0b6b078bcf727

From d4f09fbf7463acb46f17b429482dfefbea31cb1c Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 00:19:20 +0100
Subject: [PATCH 52/78] fix tests that expected the old storage library
 behavior

---
 src/json.test.c   |  22 +++++-----
 src/report.test.c | 103 +++++++++++++++++++++-------------------------
 storage           |   2 +-
 3 files changed, 58 insertions(+), 69 deletions(-)

diff --git a/src/json.test.c b/src/json.test.c
index ec814eec6..8cc3a9462 100644
--- a/src/json.test.c
+++ b/src/json.test.c
@@ -12,6 +12,7 @@
 #include <cJSON.h>
 #include <CuTest.h>
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
@@ -38,15 +39,14 @@ static void test_export_no_regions(CuTest * tc) {
     char buf[1024];
     stream out = { 0 };
     int err;
-    size_t len;
 
     test_setup();
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     err = json_export(&out, EXPORT_REGIONS);
     CuAssertIntEquals(tc, 0, err);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "{}", strip(buf));
     mstream_done(&out);
     test_teardown();
@@ -58,16 +58,15 @@ static cJSON *export_a_region(CuTest * tc, const struct terrain_type *terrain, r
     int err;
     region *r;
     cJSON *json, *attr, *result, *regs;
-    size_t sz;
 
     r = test_create_region(0, 0, terrain);
 
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     err = json_export(&out, EXPORT_REGIONS);
     CuAssertIntEquals(tc, 0, err);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    sz = out.api->read(out.handle, buf, sizeof(buf));
-    buf[sz] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     mstream_done(&out);
 
     json = cJSON_Parse(buf);
@@ -122,15 +121,14 @@ static void test_export_no_factions(CuTest * tc) {
     char buf[1024];
     stream out = { 0 };
     int err;
-    size_t len;
 
     test_setup();
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     err = json_export(&out, EXPORT_FACTIONS);
     CuAssertIntEquals(tc, 0, err);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = 0;
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "{}", strip(buf));
     mstream_done(&out);
     test_teardown();
diff --git a/src/report.test.c b/src/report.test.c
index bcecc8e74..9125041a1 100644
--- a/src/report.test.c
+++ b/src/report.test.c
@@ -32,30 +32,25 @@
 
 static void test_write_spaces(CuTest *tc) {
     stream out = { 0 };
-    char buf[1024];
-    size_t len;
+    char buf[5];
 
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     write_spaces(&out, 4);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
+    buf[4] = '\0';
     CuAssertStrEquals(tc, "    ", buf);
-    CuAssertIntEquals(tc, ' ', buf[3]);
     mstream_done(&out);
 }
 
 static void test_write_many_spaces(CuTest *tc) {
     stream out = { 0 };
     char buf[1024];
-    size_t len;
 
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     write_spaces(&out, 100);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
-    CuAssertIntEquals(tc, 100, (int)len);
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertIntEquals(tc, ' ', buf[99]);
     mstream_done(&out);
 }
@@ -66,7 +61,6 @@ static void test_report_region(CuTest *tc) {
     faction *f;
     unit *u;
     stream out = { 0 };
-    size_t len;
     struct locale *lang;
     struct resource_type *rt_stone;
     construction *cons;
@@ -96,7 +90,7 @@ static void test_report_region(CuTest *tc) {
     locale_setstring(lang, "plain", "Ebene");
     locale_setstring(lang, "see_travel", "durchgereist");
 
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     r = test_create_region(0, 0, NULL);
     add_resource(r, 1, 135, 10, rt_stone);
     CuAssertIntEquals(tc, 1, r->resources->level);
@@ -113,35 +107,35 @@ static void test_report_region(CuTest *tc) {
     region_setname(r, "1234567890123456789012345678901234567890");
     r->seen.mode = seen_travel;
     report_region(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "1234567890123456789012345678901234567890 (0,0) (durchgereist), Ebene, 3/2\nBlumen, 5 Bauern, 2 Silber, 7 Pferde.\n", buf);
 
     out.api->rewind(out.handle);
     region_setname(r, "12345678901234567890123456789012345678901234567890123456789012345678901234567890");
     r->seen.mode = seen_travel;
     report_region(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "12345678901234567890123456789012345678901234567890123456789012345678901234567890\n(0,0) (durchgereist), Ebene, 3/2 Blumen, 5 Bauern, 2 Silber, 7 Pferde.\n", buf);
 
     out.api->rewind(out.handle);
     region_setname(r, "Hodor");
     r->seen.mode = seen_travel;
     report_region(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "Hodor (0,0) (durchgereist), Ebene, 3/2 Blumen, 5 Bauern, 2 Silber, 7 Pferde.\n", buf);
 
     out.api->rewind(out.handle);
     r->seen.mode = seen_unit;
     report_region(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "Hodor (0,0), Ebene, 3/2 Blumen, 135 Steine/1, 5 Bauern, 2 Silber, 7 Pferde.\n", buf);
 
     out.api->rewind(out.handle);
@@ -151,9 +145,9 @@ static void test_report_region(CuTest *tc) {
     r->land->money = 1;
     r->seen.mode = seen_unit;
     report_region(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "Hodor (0,0), Ebene, 3/2 Blumen, 1 Stein/1, 1 Bauer, 1 Silber, 1 Pferd.\n", buf);
 
     r->land->peasants = 0;
@@ -165,9 +159,9 @@ static void test_report_region(CuTest *tc) {
 
     out.api->rewind(out.handle);
     report_region(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, "Hodor (0,0), Ebene, 1 Stein/1.\n", buf);
 
     mstream_done(&out);
@@ -178,14 +172,14 @@ static void test_report_allies(CuTest *tc) {
     stream out = { 0 };
     char buf[1024];
     char exp[1024];
-    size_t len, linebreak = 72;
+    size_t linebreak = 72;
     struct locale *lang;
     faction *f, *f1, *f2, *f3;
 
     test_setup();
     lang = test_create_locale();
     locale_setstring(lang, "list_and", " und ");
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     f = test_create_faction_ex(NULL, lang);
     f1 = test_create_faction_ex(NULL, lang);
     f2 = test_create_faction_ex(NULL, lang);
@@ -195,9 +189,9 @@ static void test_report_allies(CuTest *tc) {
         LOC(lang, parameters[P_GUARD]));
     ally_set(&f->allies, f1, HELP_GUARD);
     report_allies(&out, linebreak, f, f->allies, "Wir helfen ");
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = 0;
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, exp, buf);
 
     out.api->rewind(out.handle);
@@ -217,9 +211,9 @@ static void test_report_allies(CuTest *tc) {
         factionname(f3),
         LOC(lang, parameters[P_ANY]));
     report_allies(&out, linebreak, f, f->allies, "Wir helfen ");
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = 0;
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, exp, buf);
 
     test_teardown();
@@ -228,7 +222,6 @@ static void test_report_allies(CuTest *tc) {
 static void test_report_travelthru(CuTest *tc) {
     stream out = { 0 };
     char buf[1024];
-    size_t len;
     region *r;
     faction *f;
     unit *u;
@@ -237,7 +230,7 @@ static void test_report_travelthru(CuTest *tc) {
     test_setup();
     lang = get_or_create_locale("de");
     locale_setstring(lang, "travelthru_header", "Durchreise: ");
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     r = test_create_region(0, 0, NULL);
     r->flags |= RF_TRAVELUNIT;
     f = test_create_faction();
@@ -246,27 +239,31 @@ static void test_report_travelthru(CuTest *tc) {
     unit_setname(u, "Hodor");
     unit_setid(u, 1);
 
+    buf[0] = '\0';
     report_travelthru(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    CuAssertIntEquals_Msg(tc, "no travelers, no report", 0, (int)len);
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
+    CuAssertStrEquals_Msg(tc, "no travelers, no report", "", buf);
     mstream_done(&out);
 
-    mstream_init(&out);
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     travelthru_add(r, u);
     report_travelthru(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals_Msg(tc, "list one unit", "\nDurchreise: Hodor (1).\n", buf);
     mstream_done(&out);
 
-    mstream_init(&out);
+    buf[0] = '\0';
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     move_unit(u, r, 0);
     report_travelthru(&out, r, f);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    CuAssertIntEquals_Msg(tc, "do not list units that stopped in the region", 0, (int)len);
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
+    CuAssertStrEquals_Msg(tc, "do not list units that stopped in the region", "", buf);
 
     mstream_done(&out);
     test_teardown();
@@ -382,14 +379,12 @@ static void test_paragraph(CuTest *tc) {
     const char *expect = "im Westen das Hochland von Geraldin (93,-303).\n";
     char buf[256];
     stream out = { 0 };
-    size_t len;
-
-    mstream_init(&out);
 
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     paragraph(&out, toolong, 0, 0, 0);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, expect, buf);
 }
 
@@ -398,14 +393,12 @@ static void test_paragraph_break(CuTest *tc) {
     const char *expect = "die Ebene von Godsettova (94,-304) und im Westen das Hochland von Geraldin\n(93,-303).\n";
     char buf[256];
     stream out = { 0 };
-    size_t len;
-
-    mstream_init(&out);
 
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     paragraph(&out, toolong, 0, 0, 0);
+    out.api->write(out.handle, "", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, expect, buf);
 }
 
@@ -415,17 +408,15 @@ static void test_pump_paragraph_toolong(CuTest *tc) {
     sbstring sbs;
     char buf[256];
     stream out = { 0 };
-    size_t len;
-
-    mstream_init(&out);
 
+    CuAssertIntEquals(tc, 0, mstream_init(&out));
     sbs_init(&sbs, buf, sizeof(buf));
     sbs_strcat(&sbs, toolong);
 
     pump_paragraph(&sbs, &out, 78, true);
+    out.api->write(out.handle, "\0", 1);
     out.api->rewind(out.handle);
-    len = out.api->read(out.handle, buf, sizeof(buf));
-    buf[len] = '\0';
+    CuAssertIntEquals(tc, EOF, out.api->read(out.handle, buf, sizeof(buf)));
     CuAssertStrEquals(tc, expect, buf);
 }
 
diff --git a/storage b/storage
index 7810af55d..09d55e995 160000
--- a/storage
+++ b/storage
@@ -1 +1 @@
-Subproject commit 7810af55d05f63bc0f6cba8d78f0b6b078bcf727
+Subproject commit 09d55e995a5fc5de7a678f4f4989912ea4fb0b20

From 43066b67203a1a56809c0f823e9b93b941229f47 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 00:22:38 +0100
Subject: [PATCH 53/78] size_t fix in storage

---
 storage | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage b/storage
index 09d55e995..da12b773a 160000
--- a/storage
+++ b/storage
@@ -1 +1 @@
-Subproject commit 09d55e995a5fc5de7a678f4f4989912ea4fb0b20
+Subproject commit da12b773a284b9c88848c14c4d578d047dca5f6b

From e1d117754ac4a05c269c2a3e684e01b8adaf16c5 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 00:37:31 +0100
Subject: [PATCH 54/78] fix new callback signature for jsonconf

---
 src/jsonconf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jsonconf.c b/src/jsonconf.c
index 016f6c1c2..42d61c7da 100644
--- a/src/jsonconf.c
+++ b/src/jsonconf.c
@@ -62,8 +62,8 @@ struct flags {
     int result;
 };
 
-static void cb_flags(void* json, struct flags* flags)
-{
+static void cb_flags(void* json, void *udata) {
+    struct flags *flags = (struct flags *)udata;
     cJSON* entry = (cJSON*)json;
     int i;
     for (i = 0; flags->names[i]; ++i) {

From d8c0b57864f35a945ae1ecd87d47efea6b5e5160 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 00:54:21 +0100
Subject: [PATCH 55/78] we don't need to track age statistics for any but the
 new factions. rename global age to newbies.

---
 src/laws.c    | 10 ++++------
 src/laws.h    |  3 ++-
 src/summary.c | 12 +++++-------
 3 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/src/laws.c b/src/laws.c
index 253c79ae5..9db1027a9 100644
--- a/src/laws.c
+++ b/src/laws.c
@@ -1268,8 +1268,8 @@ void do_enter(struct region *r, bool is_final_attempt)
     }
 }
 
+int newbies[MAXNEWPLAYERS];
 int dropouts[2];
-int *age = NULL;
 
 bool nmr_death(const faction * f, int turn, int timeout)
 {
@@ -1321,15 +1321,13 @@ static void remove_idle_players(void)
 
     i = turn + 1;
     if (i < 4) i = 4;
-    free(age);
-    age = calloc(i, sizeof(int));
-    if (!age) abort();
     for (fp = &factions; *fp;) {
         faction *f = *fp;
         if (!is_monsters(f)) {
             if (RemoveNMRNewbie() && !fval(f, FFL_NOIDLEOUT)) {
-                if (f->age >= 0 && f->age <= turn)
-                    ++age[f->age];
+                if (f->age >= 0 && f->age < MAXNEWPLAYERS) {
+                    ++newbies[f->age];
+                }
                 if (f->age == 2 || f->age == 3) {
                     if (f->lastorders == turn - 2) {
                         ++dropouts[f->age - 2];
diff --git a/src/laws.h b/src/laws.h
index bb9ed05dc..5bf81440d 100755
--- a/src/laws.h
+++ b/src/laws.h
@@ -18,8 +18,9 @@ extern "C" {
 
     extern struct attrib_type at_germs;
 
+#define MAXNEWPLAYERS 4
+    extern int newbies[MAXNEWPLAYERS];
     extern int dropouts[2];
-    extern int *age;
 
     void demographics(void);
     void immigration(void);
diff --git a/src/summary.c b/src/summary.c
index 58687cdc9..de02cb22e 100644
--- a/src/summary.c
+++ b/src/summary.c
@@ -324,13 +324,11 @@ void report_summary(const summary * s, bool full)
             }
         }
     }
-    if (age) {
-        if (age[2] != 0) {
-            fprintf(F, "Erstabgaben:  %3d%%\n", 100 - (dropouts[0] * 100 / age[2]));
-        }
-        if (age[3] != 0) {
-            fprintf(F, "Zweitabgaben: %3d%%\n", 100 - (dropouts[1] * 100 / age[3]));
-        }
+    if (newbies[2] != 0) {
+        fprintf(F, "Erstabgaben:  %3d%%\n", 100 - (dropouts[0] * 100 / newbies[2]));
+    }
+    if (newbies[3] != 0) {
+        fprintf(F, "Zweitabgaben: %3d%%\n", 100 - (dropouts[1] * 100 / newbies[3]));
     }
     fprintf(F, "Neue Spieler: %d\n", newplayers);
 

From 6b5ddc57d905defc280e43b0978c32ad5c80d1e5 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 09:48:27 +0100
Subject: [PATCH 56/78] MSVC builds go to a single output folder Fix batch
 files to deal with new structure.

---
 CMakeLists.txt     |  1 +
 tests/runtests.bat | 14 +++++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c3727368..66dff373c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,7 @@ endif(TOLUA_FOUND)
 
 enable_testing()
 
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
 add_subdirectory (tolua)
 add_subdirectory (tools)
 add_subdirectory (storage)
diff --git a/tests/runtests.bat b/tests/runtests.bat
index 560e1e737..86bd79aaa 100644
--- a/tests/runtests.bat
+++ b/tests/runtests.bat
@@ -1,14 +1,14 @@
 @ECHO OFF
-IF EXIST ..\build-vs10 SET BUILD=..\build-vs10\eressea\Debug
-IF EXIST ..\build-vs11 SET BUILD=..\build-vs11\eressea\Debug
-IF EXIST ..\build-vs12 SET BUILD=..\build-vs12\eressea\Debug
-IF EXIST ..\build-vs14 SET BUILD=..\build-vs14\eressea\Debug
-IF EXIST ..\build-vs15 SET BUILD=..\build-vs15\eressea\Debug
-IF EXIST ..\build-vs16 SET BUILD=..\build-vs16\eressea\Debug
+IF EXIST ..\build-vs10 SET BUILD=..\build-vs10\Debug
+IF EXIST ..\build-vs11 SET BUILD=..\build-vs11\\Debug
+IF EXIST ..\build-vs12 SET BUILD=..\build-vs12\Debug
+IF EXIST ..\build-vs14 SET BUILD=..\build-vs14\Debug
+IF EXIST ..\build-vs15 SET BUILD=..\build-vs15\Debug
+IF EXIST ..\build-vs16 SET BUILD=..\build-vs16\Debug
 
 SET SERVER=%BUILD%\eressea.exe
 %BUILD%\test_eressea.exe
-SET LUA_PATH=..\share\lua\5.4\?.lua;;
+REM SET LUA_PATH=..\share\lua\5.4\?.lua;;
 
 %SERVER% -v1 ..\scripts\run-tests.lua
 %SERVER% -v1 -re2 ..\scripts\run-tests-e2.lua

From 7dcf9a27e0879d2b75c5ed4a2387b3f89dcc20bd Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 09:53:30 +0100
Subject: [PATCH 57/78] windows fixes broke linux build also disable magic
 resistance in shipspell tests

---
 CMakeLists.txt                  | 5 ++++-
 scripts/tests/e2/e2features.lua | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66dff373c..67ee86f14 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,10 @@ endif(WIN32)
 
 project (eressea-server C)
 set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
+if (WIN32)
+# make subdirectories build to the same output folders (DLLs):
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
+endif (WIN32)
 
 if (MSVC)
 find_package (PDCurses)
@@ -56,7 +60,6 @@ endif(TOLUA_FOUND)
 
 enable_testing()
 
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
 add_subdirectory (tolua)
 add_subdirectory (tools)
 add_subdirectory (storage)
diff --git a/scripts/tests/e2/e2features.lua b/scripts/tests/e2/e2features.lua
index caf020073..0b50e1a53 100644
--- a/scripts/tests/e2/e2features.lua
+++ b/scripts/tests/e2/e2features.lua
@@ -15,6 +15,7 @@ function setup()
     eressea.settings.set("rules.encounters", "0")
     eressea.settings.set("study.produceexp", "0")
     eressea.settings.set("rules.peasants.growth.factor", "0")
+    eressea.settings.set("magic.resist.enable", "0")
 end
 
 function disabled_double_default()

From 61d86cf175de8d0bfa1c00489a0abc0375c20d97 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 09:59:48 +0100
Subject: [PATCH 58/78] =?UTF-8?q?Auch=20Schiffe=20haben=20eine=20nat=C3=BC?=
 =?UTF-8?q?rliche=20Resistenz=20gegen=20Verzauberung.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 res/e3a/spells.xml     | 2 +-
 res/eressea/spells.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/res/e3a/spells.xml b/res/e3a/spells.xml
index 7373f40b1..c114b82a4 100644
--- a/res/e3a/spells.xml
+++ b/res/e3a/spells.xml
@@ -523,7 +523,7 @@
   <spell name="ironkeeper" rank="5" far="true" variable="true">
     <resource name="aura" amount="3" cost="level"/>
   </spell>
-  <spell name="airship" rank="5" parameters="s" noresist="true" ship="true">
+  <spell name="airship" rank="5" parameters="s" ship="true">
     <resource name="aura" amount="10" cost="fixed"/>
     <resource name="h12" amount="1" cost="fixed"/>
     <resource name="h20" amount="1" cost="fixed"/>
diff --git a/res/eressea/spells.xml b/res/eressea/spells.xml
index 2c6eeb942..d4290233b 100644
--- a/res/eressea/spells.xml
+++ b/res/eressea/spells.xml
@@ -173,7 +173,7 @@
   <spell name="goodwinds" rank="5" parameters="s" ship="true" variable="true">
     <resource name="aura" amount="1" cost="level"/>
   </spell>
-  <spell name="airship" rank="5" parameters="s" noresist="true" ship="true">
+  <spell name="airship" rank="5" parameters="s" ship="true">
     <resource name="aura" amount="10" cost="fixed"/>
     <resource name="h12" amount="1" cost="fixed"/>
     <resource name="h20" amount="1" cost="fixed"/>

From f447f35ad3a0b2317a9d0f9acdfedb3ab2fe8eb9 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 10:06:22 +0100
Subject: [PATCH 59/78] turn magic resistance off during test of spells

---
 scripts/tests/e2/e2features.lua |  2 +-
 scripts/tests/e3/rules.lua      | 33 +++++++++------------------------
 scripts/tests/spells.lua        |  1 +
 3 files changed, 11 insertions(+), 25 deletions(-)

diff --git a/scripts/tests/e2/e2features.lua b/scripts/tests/e2/e2features.lua
index 0b50e1a53..3034c7ed1 100644
--- a/scripts/tests/e2/e2features.lua
+++ b/scripts/tests/e2/e2features.lua
@@ -607,7 +607,7 @@ function test_seacast()
     u2.ship = s1
     u2:add_spell("stormwinds")
     u2:clear_orders()
-    u2:add_order("Zaubere stufe 2 'Sturmelementar' " .. itoa36(s1.id))
+    u2:add_order("ZAUBERE STUFE 2 'Sturmelementar' " .. itoa36(s1.id))
     u1:clear_orders()
     u1:add_order("NACH O O O O")
     process_orders()
diff --git a/scripts/tests/e3/rules.lua b/scripts/tests/e3/rules.lua
index e39bd26c4..0b2fccd90 100644
--- a/scripts/tests/e3/rules.lua
+++ b/scripts/tests/e3/rules.lua
@@ -6,7 +6,6 @@ else
   module(tcname, lunit.testcase, package.seeall)
 end
 
-local settings
 
 -- use the C implementation in market.c, because the Lua
 -- module is wrong (https://bugs.eressea.de/view.php?id=2225)
@@ -16,28 +15,14 @@ local function process_markets()
     eressea.process.markets()
 end
 
-local function set_rule(key, value)
-    if value==nil then
-        eressea.settings.set(key, settings[key])
-    else
-        settings[key] = settings[key] or eressea.settings.get(key)
-        eressea.settings.set(key, value)
-    end
-end
-
 function setup()
     eressea.game.reset()
     settings = {}
-    set_rule("rules.move.owner_leave", "1")
-    set_rule("rules.food.flags", "4")
-    set_rule("rules.ship.drifting", "0")
-    set_rule("rules.ship.storms", "0")
-end
-
-function teardown()
-    for k,_ in pairs(settings) do
-        set_rule(k)
-    end
+    eressea.settings.set("rules.move.owner_leave", "1")
+    eressea.settings.set("rules.food.flags", "4")
+    eressea.settings.set("rules.ship.drifting", "0")
+    eressea.settings.set("rules.ship.storms", "0")
+    eressea.settings.set("magic.resist.enable", "0")
 end
 
 function test_new_faction_cannot_give_unit()
@@ -988,7 +973,7 @@ function test_no_uruk()
 end
 
 function test_bug2187()
-  set_rule("rules.food.flags", "0")
+  eressea.settings.set("rules.food.flags", "0")
 
   local r = region.create(0,0,"plain")
   local f = faction.create("goblin", "2187@eressea.de", "de")
@@ -1005,7 +990,7 @@ function test_bug2187()
 --  init_reports()
 --  write_report(f)
       
-  set_rule("rules.food.flags", "4")
+  eressea.settings.set("rules.food.flags", "4")
 end
 
 
@@ -1027,8 +1012,8 @@ end
 
 function test_demons_using_mallornlance()
     -- bug 2392
-    set_rule("skillchange.demon.up", "0")
-    set_rule("NewbieImmunity", "0")
+    eressea.settings.set("skillchange.demon.up", "0")
+    eressea.settings.set("NewbieImmunity", "0")
     local r = region.create(0, 0, "plain")
     local f = faction.create('goblin')
     local u = unit.create(f, r, 1, 'demon')
diff --git a/scripts/tests/spells.lua b/scripts/tests/spells.lua
index b0def9560..d72851017 100644
--- a/scripts/tests/spells.lua
+++ b/scripts/tests/spells.lua
@@ -15,6 +15,7 @@ function setup()
     eressea.settings.set("rules.encounters", "0")
     eressea.settings.set("magic.fumble.enable", "0")
     eressea.settings.set("magic.regeneration.enable", "0")
+    eressea.settings.set("magic.resist.enable", "0")
 end
 
 function test_create_bogus()

From e0ff829b61c3ae4bb152407068899af898a8a9c3 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 10:15:27 +0100
Subject: [PATCH 60/78] clarify the find_package (Lua) logic

---
 CMakeLists.txt | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67ee86f14..94805444c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,13 +50,11 @@ find_package (SQLite3 REQUIRED)
 find_package (IniParser REQUIRED)
 find_package (CJSON REQUIRED)
 find_package (EXPAT REQUIRED)
-if (TOLUA_FOUND)
-if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
-find_package (Lua 5.2 REQUIRED)
-else()
+
+find_package (Lua)
+if (NOT LLUA_FOUND)
 find_package (Lua51 REQUIRED)
 endif()
-endif(TOLUA_FOUND)
 
 enable_testing()
 

From b9eea2c8a2e0d18a63cac9b360694d6993feaa85 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 13:41:36 +0100
Subject: [PATCH 61/78] forgot to increase verison number for 3.27

---
 src/kernel/version.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kernel/version.c b/src/kernel/version.c
index 0170f54dc..93d88e9a1 100644
--- a/src/kernel/version.c
+++ b/src/kernel/version.c
@@ -8,7 +8,7 @@
 
 #ifndef ERESSEA_VERSION
 /* the version number, if it was not passed to make with -D */
-#define ERESSEA_VERSION "3.26.0"
+#define ERESSEA_VERSION "3.27.0"
 #endif
 
 const char *eressea_version(void) {

From abf548cecd3fcf2808725a9d6017f079463b2f03 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 20:49:03 +0100
Subject: [PATCH 62/78] overdue unicode cleanup. our new pdcurses can do utf8
 output, let's use it. convert output on a windows tty to codepage 1252.

---
 scripts/map.lua          |  3 ++-
 scripts/run-tests-e2.lua |  2 +-
 scripts/run-tests-e3.lua |  2 +-
 scripts/run-tests.lua    |  2 +-
 scripts/run-turn.lua     |  2 +-
 src/gmtool.c             | 34 ++++++++++++++--------------------
 src/gmtool.h             |  1 -
 src/main.c               |  1 -
 src/util/log.c           | 27 +++++++++++++++++++--------
 src/util/unicode.c       |  3 ++-
 10 files changed, 41 insertions(+), 36 deletions(-)

diff --git a/scripts/map.lua b/scripts/map.lua
index 98579924f..89504e6bd 100644
--- a/scripts/map.lua
+++ b/scripts/map.lua
@@ -2,7 +2,8 @@ local path = 'scripts'
 if config.install then
 	path = config.install .. '/' .. path
 end
-package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
+package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
+
 require 'eressea.path'
 require 'eressea'
 require 'eressea.xmlconf'
diff --git a/scripts/run-tests-e2.lua b/scripts/run-tests-e2.lua
index dd0631086..0231724c5 100644
--- a/scripts/run-tests-e2.lua
+++ b/scripts/run-tests-e2.lua
@@ -10,7 +10,7 @@ path = 'scripts'
 if config.install then
     path = config.install .. '/' .. path
 end
-package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
+package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
 
 config.rules = 'e2'
 
diff --git a/scripts/run-tests-e3.lua b/scripts/run-tests-e3.lua
index e2a808147..6e28f34b1 100644
--- a/scripts/run-tests-e3.lua
+++ b/scripts/run-tests-e3.lua
@@ -10,7 +10,7 @@ path = 'scripts'
 if config.install then
     path = config.install .. '/' .. path
 end
-package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
+package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
 
 config.rules = 'e3'
 
diff --git a/scripts/run-tests.lua b/scripts/run-tests.lua
index e21ac3aa9..399d781e3 100644
--- a/scripts/run-tests.lua
+++ b/scripts/run-tests.lua
@@ -10,7 +10,7 @@ path = 'scripts'
 if config.install then
     path = config.install .. '/' .. path
 end
-package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
+package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
 
 require 'eressea'
 require 'eressea.path'
diff --git a/scripts/run-turn.lua b/scripts/run-turn.lua
index 7ef29b00d..75bc80ea2 100644
--- a/scripts/run-turn.lua
+++ b/scripts/run-turn.lua
@@ -192,7 +192,7 @@ local path = 'scripts'
 if config.install then
     path = config.install .. '/' .. path
 end
-package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
+package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
 require 'eressea'
 require 'eressea.xmlconf' -- read xml data
 
diff --git a/src/gmtool.c b/src/gmtool.c
index 516589087..a27b3edfc 100644
--- a/src/gmtool.c
+++ b/src/gmtool.c
@@ -58,29 +58,14 @@ state *current_state = NULL;
 #define IFL_BUILDINGS (1<<3)
 
 static WINDOW *hstatus;
-
-#ifdef STDIO_CP
-int gm_codepage = STDIO_CP;
-#else 
-int gm_codepage = -1;
-#endif
+static int gm_utf8 = 0; /* does our curses support utf-8? */
 
 static void unicode_remove_diacritics(const char *rp, char *wp) {
     while (*rp) {
-        if (gm_codepage >= 0 && *rp & 0x80) {
+        if (*rp & 0x80) {
             size_t sz = 0;
             unsigned char ch;
-            switch (gm_codepage) {
-            case 1252:
-                unicode_utf8_to_cp1252(&ch, rp, &sz);
-                break;
-            case 437:
-                unicode_utf8_to_cp437(&ch, rp, &sz);
-                break;
-            default:
-                unicode_utf8_to_ascii(&ch, rp, &sz);
-                break;
-            }
+            unicode_utf8_to_ascii(&ch, rp, &sz);
             rp += sz;
             *wp++ = (char)ch;
         }
@@ -91,8 +76,13 @@ static void unicode_remove_diacritics(const char *rp, char *wp) {
     *wp = 0;
 }
 
-static void simplify(const char *rp, char *wp) {
-    unicode_remove_diacritics(rp, wp);
+static void simplify(const char* rp, char* wp) {
+    if (!gm_utf8) {
+        unicode_remove_diacritics(rp, wp);
+    }
+    else if (rp != wp) {
+        strcpy(wp, rp);
+    }
 }
 
 int umvwprintw(WINDOW *win, int y, int x, const char *format, ...) {
@@ -117,6 +107,10 @@ int umvwaddnstr(WINDOW *w, int y, int x, const char * str, int len) {
 
 static void init_curses(void)
 {
+#ifdef PDCURSES
+    /* PDCurses from vcpkg is compiled with UTF8 (and WIDE) support */
+    gm_utf8 = 1;
+#endif
     initscr();
 
     if (has_colors() || force_color) {
diff --git a/src/gmtool.h b/src/gmtool.h
index aeef21d1e..103e54339 100644
--- a/src/gmtool.h
+++ b/src/gmtool.h
@@ -23,7 +23,6 @@ extern "C" {
   void run_mapper(void);
 
   extern int force_color;
-  extern int gm_codepage;
 
   struct state *state_open(void);
   void state_close(struct state *);
diff --git a/src/main.c b/src/main.c
index 8c6379232..502d89395 100644
--- a/src/main.c
+++ b/src/main.c
@@ -64,7 +64,6 @@ static void load_inifile(void)
 #ifdef USE_CURSES
     /* only one value in the [editor] section */
     force_color = config_get_int("editor.color", force_color);
-    gm_codepage = config_get_int("editor.codepage", gm_codepage);
 #endif
 }
 
diff --git a/src/util/log.c b/src/util/log.c
index 2242888d4..93865056c 100644
--- a/src/util/log.c
+++ b/src/util/log.c
@@ -16,6 +16,14 @@
 #include <stdarg.h>
 #include <time.h>
 
+#ifdef WIN32
+#include <io.h>
+#define FISATTY(F) (_isatty(_fileno(F)))
+#else
+#include <unistd.h>
+#define FISATTY(F) (isatty(fileno(F)))
+#endif
+
 void errno_check(const char * file, int line) {
     if (errno) {
         log_info("errno is %d (%s) at %s:%d", 
@@ -24,8 +32,8 @@ void errno_check(const char * file, int line) {
     }
 }
 
-#ifdef STDIO_CP
-static int stdio_codepage = STDIO_CP;
+#if WIN32
+static int stdio_codepage = 1252;
 #else
 static int stdio_codepage = 0;
 #endif
@@ -63,7 +71,7 @@ void log_destroy(log_t *handle) {
     }
 }
 
-#define MAXLENGTH 4096          /* because I am lazy, CP437 output is limited to this many chars */
+#define MAXLENGTH 4096          /* because I am lazy, tty output is limited to this many chars */
 #define LOG_MAXBACKUPS 5
 
 static int
@@ -87,7 +95,7 @@ cp_convert(const char *format, unsigned char *buffer, size_t length, int codepag
             return result;
         }
         ++pos;
-        input += length;
+        input += size;
     }
     *pos = 0;
     return 0;
@@ -175,13 +183,16 @@ static void _log_write(FILE * stream, int codepage, const char *format, va_list
     }
 }
 
-static void log_stdio(void *data, int level, const char *module, const char *format, va_list args) {
-    FILE *out = (FILE *)data;
-    int codepage = (out == stderr || out == stdout) ? stdio_codepage : 0;
-    const char *prefix = log_prefix(level);
+static void log_stdio(void* data, int level, const char* module, const char* format, va_list args) {
+    FILE* out = (FILE*)data;
+    int codepage = 0;
+    const char* prefix = log_prefix(level);
     size_t len = strlen(format);
 
     (void)module;
+    if (stdio_codepage && (out == stderr || out == stdout)) {
+        codepage = FISATTY(out) ? stdio_codepage : 0;
+    }
     fprintf(out, "%s: ", prefix);
 
     _log_write(out, codepage, format, args);
diff --git a/src/util/unicode.c b/src/util/unicode.c
index 6667ea5ed..6f8d4acb5 100644
--- a/src/util/unicode.c
+++ b/src/util/unicode.c
@@ -572,7 +572,8 @@ unicode_utf8_to_cp437(unsigned char *cp_character, const char * utf8_string,
 int unicode_utf8_to_ascii(unsigned char *cp_character, const char * utf8_string,
     size_t *length)
 {
-    int result = unicode_utf8_to_cp437(cp_character, utf8_string, length);
+    wint_t ucs4_character;
+    int result = unicode_utf8_decode(&ucs4_character, utf8_string, length);
     if (result == 0) {
         if (*length > 1) {
             *cp_character = '?';

From a3499dd8952abc93a7f75893ae9e81489ccaa0de Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 21:01:52 +0100
Subject: [PATCH 63/78] fix new bug in ascii converter.

---
 src/util/unicode.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/util/unicode.c b/src/util/unicode.c
index 6f8d4acb5..7d3b0dc5b 100644
--- a/src/util/unicode.c
+++ b/src/util/unicode.c
@@ -578,6 +578,9 @@ int unicode_utf8_to_ascii(unsigned char *cp_character, const char * utf8_string,
         if (*length > 1) {
             *cp_character = '?';
         }
+        else {
+            *cp_character = (unsigned char)ucs4_character;
+        }
     }
     return result;
 }

From 979f2f7b6e1996592b3b0b7ba8a9825601a0d084 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 22:05:43 +0100
Subject: [PATCH 64/78] build with ncursesw Now we can display special
 characters and proper boxes

---
 CMakeLists.txt |  4 +++-
 src/gmtool.c   | 14 +++++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94805444c..24c49a514 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,7 +42,9 @@ endif (HAVE_LIBBSD)
 endif (MSVC)
 
 if (NOT CURSES_FOUND)
-find_package (Curses)
+  set(CURSES_NEED_WIDE TRUE)
+  set(CURSES_NEED_NCURSES TRUE)
+  find_package (Curses)
 endif (NOT CURSES_FOUND)
 
 #find_package (BerkeleyDB REQUIRED)
diff --git a/src/gmtool.c b/src/gmtool.c
index a27b3edfc..760a365a7 100644
--- a/src/gmtool.c
+++ b/src/gmtool.c
@@ -4,6 +4,7 @@
 #endif
 #endif
 #include <curses.h>
+#define CURSES_UTF8
 
 #include "gmtool.h"
 #include "direction.h"
@@ -58,7 +59,7 @@ state *current_state = NULL;
 #define IFL_BUILDINGS (1<<3)
 
 static WINDOW *hstatus;
-static int gm_utf8 = 0; /* does our curses support utf-8? */
+static int gm_utf8 = 1; /* does our curses support utf-8? */
 
 static void unicode_remove_diacritics(const char *rp, char *wp) {
     while (*rp) {
@@ -107,7 +108,7 @@ int umvwaddnstr(WINDOW *w, int y, int x, const char * str, int len) {
 
 static void init_curses(void)
 {
-#ifdef PDCURSES
+#ifdef CURSES_UTF8
     /* PDCurses from vcpkg is compiled with UTF8 (and WIDE) support */
     gm_utf8 = 1;
 #endif
@@ -118,7 +119,7 @@ static void init_curses(void)
         short bcol = COLOR_BLACK;
         short hcol = COLOR_MAGENTA;
         start_color();
-#ifdef __PDCURSES__
+#ifdef CURSES_UTF8
         /* looks crap on putty with TERM=linux */
         if (can_change_color()) {
             init_color(COLOR_YELLOW, 1000, 1000, 0);
@@ -398,8 +399,8 @@ static bool handle_info_region(window * wnd, state * st, int c)
 
 int wxborder(WINDOW *win)
 {
-#ifdef __PDCURSES__
-    return wborder(win, 0, 0, 0, 0, 0, 0, 0, 0);
+#ifdef CURSES_UTF8
+    return box(win, 0, 0);
 #else
     return wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
 #endif
@@ -792,8 +793,7 @@ static coordinate *region2coord(const region * r, coordinate * c)
     c->pl = rplane(r);
     return c;
 }
-
-#ifdef __PDCURSES__
+#ifdef PDCURSES
 #define FAST_UP CTL_UP
 #define FAST_DOWN CTL_DOWN
 #define FAST_LEFT CTL_LEFT

From df4317f9f19a0cdc5f00bfce518f6d3023a98446 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 22:32:40 +0100
Subject: [PATCH 65/78] remove non-utf8 hacks from mapper. correclty refresh
 map window after listboxes close.

---
 src/bind_gmtool.c    |  2 +-
 src/gmtool.c         | 58 +++++---------------------------------------
 src/gmtool_structs.h |  2 --
 src/listbox.c        |  2 +-
 4 files changed, 8 insertions(+), 56 deletions(-)

diff --git a/src/bind_gmtool.c b/src/bind_gmtool.c
index 5901ccf1d..0b92c1a97 100644
--- a/src/bind_gmtool.c
+++ b/src/bind_gmtool.c
@@ -188,7 +188,7 @@ static void lua_paint_info(struct window *wnd, const struct state *st)
         int size = getmaxx(win) - 2;
         int line = 0, maxline = getmaxy(win) - 2;
         const char *str = result;
-        wxborder(win);
+        box(win, 0, 0);
 
         while (*str && line < maxline) {
             const char *end = strchr(str, '\n');
diff --git a/src/gmtool.c b/src/gmtool.c
index 760a365a7..4367fdc48 100644
--- a/src/gmtool.c
+++ b/src/gmtool.c
@@ -4,7 +4,6 @@
 #endif
 #endif
 #include <curses.h>
-#define CURSES_UTF8
 
 #include "gmtool.h"
 #include "direction.h"
@@ -59,32 +58,6 @@ state *current_state = NULL;
 #define IFL_BUILDINGS (1<<3)
 
 static WINDOW *hstatus;
-static int gm_utf8 = 1; /* does our curses support utf-8? */
-
-static void unicode_remove_diacritics(const char *rp, char *wp) {
-    while (*rp) {
-        if (*rp & 0x80) {
-            size_t sz = 0;
-            unsigned char ch;
-            unicode_utf8_to_ascii(&ch, rp, &sz);
-            rp += sz;
-            *wp++ = (char)ch;
-        }
-        else {
-            *wp++ = *rp++;
-        }
-    }
-    *wp = 0;
-}
-
-static void simplify(const char* rp, char* wp) {
-    if (!gm_utf8) {
-        unicode_remove_diacritics(rp, wp);
-    }
-    else if (rp != wp) {
-        strcpy(wp, rp);
-    }
-}
 
 int umvwprintw(WINDOW *win, int y, int x, const char *format, ...) {
     char buffer[128];
@@ -95,23 +68,15 @@ int umvwprintw(WINDOW *win, int y, int x, const char *format, ...) {
     vsnprintf(buffer, sizeof(buffer) - 1, format, args);
     va_end(args);
 
-    simplify(buffer, buffer);
-
     return mvwaddstr(win, y, x, buffer);
 }
 
 int umvwaddnstr(WINDOW *w, int y, int x, const char * str, int len) {
-    char buffer[128];
-    simplify(str, buffer);
-    return mvwaddnstr(w, y, x, buffer, len);
+    return mvwaddnstr(w, y, x, str, len);
 }
 
 static void init_curses(void)
 {
-#ifdef CURSES_UTF8
-    /* PDCurses from vcpkg is compiled with UTF8 (and WIDE) support */
-    gm_utf8 = 1;
-#endif
     initscr();
 
     if (has_colors() || force_color) {
@@ -119,13 +84,11 @@ static void init_curses(void)
         short bcol = COLOR_BLACK;
         short hcol = COLOR_MAGENTA;
         start_color();
-#ifdef CURSES_UTF8
         /* looks crap on putty with TERM=linux */
         if (can_change_color()) {
             init_color(COLOR_YELLOW, 1000, 1000, 0);
             init_color(COLOR_CYAN, 0, 1000, 1000);
         }
-#endif
         for (fg = 0; fg != 8; ++fg) {
             for (bg = 0; bg != 2; ++bg) {
                 init_pair((short)(fg + 8 * bg), (short)fg, (short)(bg ? hcol : bcol));
@@ -397,15 +360,6 @@ static bool handle_info_region(window * wnd, state * st, int c)
     return false;
 }
 
-int wxborder(WINDOW *win)
-{
-#ifdef CURSES_UTF8
-    return box(win, 0, 0);
-#else
-    return wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
-#endif
-}
-
 static void paint_info_region(window * wnd, const state * st)
 {
     WINDOW *win = wnd->handle;
@@ -415,7 +369,7 @@ static void paint_info_region(window * wnd, const state * st)
 
     UNUSED_ARG(st);
     werase(win);
-    wxborder(win);
+    box(win, 0, 0);
     if (mr && mr->r) {
         int line = 0;
         const region *r = mr->r;
@@ -753,7 +707,7 @@ static faction *select_faction(state * st)
     }
     selected = do_selection(ilist, "Select Faction", NULL, NULL);
     st->wnd_info->update |= 1;
-    st->wnd_map->update |= 1;
+    st->wnd_map->update |= 3;
     st->wnd_status->update |= 1;
 
     if (selected == NULL)
@@ -778,7 +732,7 @@ static const terrain_type *select_terrain(state * st,
     }
     selected = do_selection(ilist, "Terrain", NULL, NULL);
     st->wnd_info->update |= 1;
-    st->wnd_map->update |= 1;
+    st->wnd_map->update |= 3;
     st->wnd_status->update |= 1;
 
     if (selected == NULL)
@@ -1293,7 +1247,7 @@ static void handlekey(state * st, int c)
         st->modified = 1;
         st->wnd_info->update |= 1;
         st->wnd_status->update |= 1;
-        st->wnd_map->update |= 1;
+        st->wnd_map->update |= 3;
         break;
     case 'I':
         statusline(st->wnd_status->handle, "info-");
@@ -1346,7 +1300,7 @@ static void handlekey(state * st, int c)
             clear();
             st->wnd_info->update |= 1;
             st->wnd_status->update |= 1;
-            st->wnd_map->update |= 1;
+            st->wnd_map->update |= 3;
         }
         break;
     case 12:                   /* Ctrl-L */
diff --git a/src/gmtool_structs.h b/src/gmtool_structs.h
index df4c7f6cc..71f86cc54 100644
--- a/src/gmtool_structs.h
+++ b/src/gmtool_structs.h
@@ -80,8 +80,6 @@ extern "C" {
 #define TWIDTH  2               /* width of tile */
 #define THEIGHT 1               /* height of tile */
 
-int wxborder(WINDOW *win);
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/src/listbox.c b/src/listbox.c
index fc9bce15d..030e00603 100644
--- a/src/listbox.c
+++ b/src/listbox.c
@@ -101,7 +101,7 @@ list_selection *do_selection(list_selection * sel, const char *title,
                 wclrtoeol(wn);
             }
             wclrtobot(wn);
-            wxborder(wn);
+            box(wn, 0, 0);
             mvwprintw(wn, 0, 2, "[ %s ]", title);
             update = false;
         }

From 6176e5e75476471c31de7bf88da7ffb68cd171b7 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Sun, 21 Feb 2021 22:58:17 +0100
Subject: [PATCH 66/78] gmtool no longer needs unicode.h

---
 src/gmtool.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gmtool.c b/src/gmtool.c
index 4367fdc48..5a8a26b96 100644
--- a/src/gmtool.c
+++ b/src/gmtool.c
@@ -30,7 +30,6 @@
 #include "util/path.h"
 #include "util/rand.h"
 #include "util/rng.h"
-#include "util/unicode.h"
 
 #include "gmtool_structs.h"
 #include "console.h"

From 2bb18d27bc31e052b5057bf0609d955765e592ad Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 01:53:01 +0100
Subject: [PATCH 67/78] replace config.install with environment variable

---
 scripts/eressea/path.lua | 12 ++++++++++++
 scripts/map.lua          |  6 ------
 scripts/run-tests-e2.lua | 17 +++++------------
 scripts/run-tests-e3.lua | 17 +++++------------
 scripts/run-tests.lua    | 10 ++--------
 scripts/run-turn.lua     |  7 ++-----
 tests/runtests.bat       |  4 +++-
 7 files changed, 29 insertions(+), 44 deletions(-)

diff --git a/scripts/eressea/path.lua b/scripts/eressea/path.lua
index 085cda997..a1446e403 100644
--- a/scripts/eressea/path.lua
+++ b/scripts/eressea/path.lua
@@ -1,3 +1,15 @@
+local path = os.getenv("ERESSEA_DIR")
+if not path then
+    if config.install then
+	    path = config.install
+    else
+        path = '.'
+    end
+else
+    config.install = path
+end
+path = path .. "/scripts"
+package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
 if config.paths ~= nil then
     for path in string.gmatch(config.paths, "([^:]+)") do
         package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
diff --git a/scripts/map.lua b/scripts/map.lua
index 89504e6bd..40fb9a38e 100644
--- a/scripts/map.lua
+++ b/scripts/map.lua
@@ -1,9 +1,3 @@
-local path = 'scripts'
-if config.install then
-	path = config.install .. '/' .. path
-end
-package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
-
 require 'eressea.path'
 require 'eressea'
 require 'eressea.xmlconf'
diff --git a/scripts/run-tests-e2.lua b/scripts/run-tests-e2.lua
index 0231724c5..baa9138e4 100644
--- a/scripts/run-tests-e2.lua
+++ b/scripts/run-tests-e2.lua
@@ -1,22 +1,15 @@
 -- Tests that work in all games. With game config of E2. 
 -- Tests are under scripts/test/e2 and all files must be in scripts/test/e2/init.lua
 
-lunit = require('lunit')
-if _VERSION >= 'Lua 5.2' then
-module = lunit.module
-end
-
-path = 'scripts'
-if config.install then
-    path = config.install .. '/' .. path
-end
-package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
-
 config.rules = 'e2'
+lunit = require 'lunit'
+if _VERSION >= 'Lua 5.2' then
+    module = lunit.module
+end
 
+require 'eressea.path'
 require 'eressea'
 require 'eressea.xmlconf'
-require 'eressea.path'
 require 'tests.e2'
 
 rng.inject(0)
diff --git a/scripts/run-tests-e3.lua b/scripts/run-tests-e3.lua
index 6e28f34b1..a056d8105 100644
--- a/scripts/run-tests-e3.lua
+++ b/scripts/run-tests-e3.lua
@@ -1,21 +1,14 @@
 -- Tests that work in E3. With game config of E3. 
 -- Tests are under scripts/test/e3 and all files must be in scripts/test/e3/init.lua
 
-lunit = require('lunit')
-if _VERSION >= 'Lua 5.2' then
-module = lunit.module
-end
-
-path = 'scripts'
-if config.install then
-    path = config.install .. '/' .. path
-end
-package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
-
 config.rules = 'e3'
+lunit = require 'lunit'
+if _VERSION >= 'Lua 5.2' then
+    module = lunit.module
+end
 
-require 'eressea'
 require 'eressea.path'
+require 'eressea'
 require 'eressea.xmlconf'
 require 'tests.e3'
 
diff --git a/scripts/run-tests.lua b/scripts/run-tests.lua
index 399d781e3..fb5681525 100644
--- a/scripts/run-tests.lua
+++ b/scripts/run-tests.lua
@@ -1,19 +1,13 @@
 -- Basic test without loading XML Config. Test care about needed settings.
 -- Tests are under scripts/test/ and all files must be in scripts/test/init.lua
 
-lunit = require('lunit')
+lunit = require 'lunit'
 if _VERSION >= 'Lua 5.2' then
 module = lunit.module
 end
 
-path = 'scripts'
-if config.install then
-    path = config.install .. '/' .. path
-end
-package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
-
-require 'eressea'
 require 'eressea.path'
+require 'eressea'
 require 'tests'
 result = lunit.main()
 return result.errors + result.failed
diff --git a/scripts/run-turn.lua b/scripts/run-turn.lua
index 75bc80ea2..c4d1c5a63 100644
--- a/scripts/run-turn.lua
+++ b/scripts/run-turn.lua
@@ -1,3 +1,5 @@
+require 'eressea.path'
+
 function nmr_check(maxnmrs)
   local nmrs = get_nmrs(1)
   if nmrs > maxnmrs then
@@ -188,11 +190,6 @@ end
 
 math.randomseed(rng.random())
 
-local path = 'scripts'
-if config.install then
-    path = config.install .. '/' .. path
-end
-package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
 require 'eressea'
 require 'eressea.xmlconf' -- read xml data
 
diff --git a/tests/runtests.bat b/tests/runtests.bat
index 86bd79aaa..80eefc9be 100644
--- a/tests/runtests.bat
+++ b/tests/runtests.bat
@@ -5,10 +5,12 @@ IF EXIST ..\build-vs12 SET BUILD=..\build-vs12\Debug
 IF EXIST ..\build-vs14 SET BUILD=..\build-vs14\Debug
 IF EXIST ..\build-vs15 SET BUILD=..\build-vs15\Debug
 IF EXIST ..\build-vs16 SET BUILD=..\build-vs16\Debug
+IF EXIST ..\out\build\x86-Debug\eressea.exe SET BUILD=..\out\build\x86-Debug
+IF EXIST ..\out\build\x64-Debug\eressea.exe SET BUILD=..\out\build\x64-Debug
 
 SET SERVER=%BUILD%\eressea.exe
 %BUILD%\test_eressea.exe
-REM SET LUA_PATH=..\share\lua\5.4\?.lua;;
+SET LUA_PATH=..\scripts\?.lua;..\share\lua\5.4\?.lua;;
 
 %SERVER% -v1 ..\scripts\run-tests.lua
 %SERVER% -v1 -re2 ..\scripts\run-tests-e2.lua

From f69a823a1412ef17a5112f205a5608f5166e7c69 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 01:59:41 +0100
Subject: [PATCH 68/78] fix LUA_PATH for runtests script

---
 s/runtests               | 1 +
 scripts/eressea/path.lua | 5 -----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/s/runtests b/s/runtests
index 5fd1a9b02..50be09929 100755
--- a/s/runtests
+++ b/s/runtests
@@ -3,6 +3,7 @@ set -e
 
 eval $(luarocks path)
 ROOT=$(git rev-parse --show-toplevel)
+export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
 [ -z $BUILD ] && BUILD=Debug ; export BUILD
 
 UNIT_TESTS=$ROOT/$BUILD/eressea/test_eressea
diff --git a/scripts/eressea/path.lua b/scripts/eressea/path.lua
index a1446e403..a0659ec58 100644
--- a/scripts/eressea/path.lua
+++ b/scripts/eressea/path.lua
@@ -10,8 +10,3 @@ else
 end
 path = path .. "/scripts"
 package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
-if config.paths ~= nil then
-    for path in string.gmatch(config.paths, "([^:]+)") do
-        package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
-    end
-end

From 26bb5d4f07502d920908ac0c0a4056b3924d9922 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 02:05:47 +0100
Subject: [PATCH 69/78] remove unused ini settings

---
 s/preview | 1 -
 s/setup   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/s/preview b/s/preview
index 717737a02..d1b14488c 100755
--- a/s/preview
+++ b/s/preview
@@ -58,7 +58,6 @@ cat >| eressea.ini <<HEREDOC
 dbname = eressea.db
 dbswap = :memory:
 install = $SOURCE
-paths = $SOURCE/lunit:$SOURCE/git/scripts
 rules = e$game
 HEREDOC
 }
diff --git a/s/setup b/s/setup
index 77097d024..ccf00467f 100755
--- a/s/setup
+++ b/s/setup
@@ -102,7 +102,6 @@ ini_add game id $game
 ini_add game start 1
 ini_sec lua
 ini_add lua install $SOURCE
-ini_add lua paths $SOURCE/scripts:$SOURCE/lunit
 ini_add lua rules $rules
 
 echo 0 > turn

From 56896361fb532753f9fe61012786f04abd10b383 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 09:54:02 +0100
Subject: [PATCH 70/78] remove luarocks from scripts

---
 s/build      | 1 -
 s/cmake-init | 3 ---
 s/runtests   | 1 -
 3 files changed, 5 deletions(-)

diff --git a/s/build b/s/build
index e54f83ace..a7f247803 100755
--- a/s/build
+++ b/s/build
@@ -1,6 +1,5 @@
 #!/bin/sh
 ROOT=$(git rev-parse --show-toplevel)
-eval $(luarocks path)
 [ -z "$BUILD" ] && BUILD=Debug
 if [ -z "$JOBS" ] ; then
   if [ -e /usr/sbin/sysctl ]; then
diff --git a/s/cmake-init b/s/cmake-init
index d17964829..568e702bd 100755
--- a/s/cmake-init
+++ b/s/cmake-init
@@ -6,9 +6,6 @@ pkg-config --exists sqlite3 && ERESSEA_DB=sqlite
 GETOPT=getopt
 GETOPT_LONG=1
 
-if [ -z "$(luarocks show lunitx)" ] ; then
-  luarocks install lunitx --local
-fi
 if [ "Darwin" = "$(uname)" ] ; then
   if [ -x "/usr/local/opt/gnu-getopt/bin/getopt" ] ; then
     GETOPT="/usr/local/opt/gnu-getopt/bin/getopt"
diff --git a/s/runtests b/s/runtests
index 50be09929..6f59385f8 100755
--- a/s/runtests
+++ b/s/runtests
@@ -1,7 +1,6 @@
 #!/bin/bash
 set -e
 
-eval $(luarocks path)
 ROOT=$(git rev-parse --show-toplevel)
 export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
 [ -z $BUILD ] && BUILD=Debug ; export BUILD

From 3508fceddc4de3d43c552aba0a976a8ff5eb9143 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 19:32:08 +0100
Subject: [PATCH 71/78] Add CMakeSettings.json to git Expect the system
 LUA_PATH to point to luarocks

---
 .gitignore         |  1 -
 CMakeSettings.json | 39 +++++++++++++++++++++++++++++++++++++++
 tests/runtests.bat |  2 +-
 3 files changed, 40 insertions(+), 2 deletions(-)
 create mode 100644 CMakeSettings.json

diff --git a/.gitignore b/.gitignore
index 5b1e405be..130d69cd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,4 +46,3 @@ tests/data/185.dat
 /critbit/
 *.mo
 /.vs
-/CMakeSettings.json
diff --git a/CMakeSettings.json b/CMakeSettings.json
new file mode 100644
index 000000000..934963e60
--- /dev/null
+++ b/CMakeSettings.json
@@ -0,0 +1,39 @@
+{
+  "configurations": [
+    {
+      "name": "x64-Debug",
+      "generator": "Ninja",
+      "configurationType": "Debug",
+      "inheritEnvironments": [ "msvc_x64_x64" ],
+      "buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
+      "installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
+      "cmakeCommandArgs": "",
+      "buildCommandArgs": "-v",
+      "ctestCommandArgs": "",
+      "variables": [
+        {
+          "name": "CMAKE_TOOLCHAIN_FILE",
+          "value": "${env.VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
+          "type": "STRING"
+        },
+        {
+          "name": "CMAKE_MODULE_PATH",
+          "value": "${workspaceRoot}/cmake/Modules",
+          "type": "STRING"
+        }
+      ]
+    },
+    {
+      "name": "x86-Debug",
+      "generator": "Ninja",
+      "configurationType": "Debug",
+      "buildRoot": "${projectDir}\\out\\build\\${name}",
+      "installRoot": "${projectDir}\\out\\install\\${name}",
+      "cmakeCommandArgs": "",
+      "buildCommandArgs": "",
+      "ctestCommandArgs": "",
+      "inheritEnvironments": [ "msvc_x86" ],
+      "variables": []
+    }
+  ]
+}
diff --git a/tests/runtests.bat b/tests/runtests.bat
index 80eefc9be..5925f07e3 100644
--- a/tests/runtests.bat
+++ b/tests/runtests.bat
@@ -10,7 +10,7 @@ IF EXIST ..\out\build\x64-Debug\eressea.exe SET BUILD=..\out\build\x64-Debug
 
 SET SERVER=%BUILD%\eressea.exe
 %BUILD%\test_eressea.exe
-SET LUA_PATH=..\scripts\?.lua;..\share\lua\5.4\?.lua;;
+SET LUA_PATH=..\scripts\?.lua;%LUA_PATH%
 
 %SERVER% -v1 ..\scripts\run-tests.lua
 %SERVER% -v1 -re2 ..\scripts\run-tests-e2.lua

From 355b9ff7fc820d0a35e11b564c08e48cb9e3bb51 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 19:51:46 +0100
Subject: [PATCH 72/78] remove lunit from repository (use luarocks) make info
 panel bigger, do not cut off names.

---
 share/lua/5.4/lunit.lua         | 759 --------------------------------
 share/lua/5.4/lunit/console.lua | 145 ------
 share/lua/5.4/lunitx.lua        |  21 -
 share/lua/5.4/lunitx/atexit.lua |  32 --
 src/gmtool.c                    |  33 +-
 5 files changed, 18 insertions(+), 972 deletions(-)
 delete mode 100644 share/lua/5.4/lunit.lua
 delete mode 100644 share/lua/5.4/lunit/console.lua
 delete mode 100644 share/lua/5.4/lunitx.lua
 delete mode 100644 share/lua/5.4/lunitx/atexit.lua

diff --git a/share/lua/5.4/lunit.lua b/share/lua/5.4/lunit.lua
deleted file mode 100644
index c9740c866..000000000
--- a/share/lua/5.4/lunit.lua
+++ /dev/null
@@ -1,759 +0,0 @@
---[[--------------------------------------------------------------------------
-
-    This file is part of lunitx.
-
-    For Details about lunit look at: http://www.mroth.net/lunit/
-    For Details about lunitx look at: https://github.com/dcurrie/lunit
-
-    Author: Michael Roth <mroth@nessie.de>
-
-    Copyright (c) 2004, 2006-2010 Michael Roth <mroth@nessie.de>
-    Copyright (c) 2011-2012 Doug Currie
-
-    Permission is hereby granted, free of charge, to any person
-    obtaining a copy of this software and associated documentation
-    files (the "Software"), to deal in the Software without restriction,
-    including without limitation the rights to use, copy, modify, merge,
-    publish, distribute, sublicense, and/or sell copies of the Software,
-    and to permit persons to whom the Software is furnished to do so,
-    subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be
-    included in all copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
---]]--------------------------------------------------------------------------
-
-
-local orig_assert     = assert
-
-local pairs           = pairs
-local ipairs          = ipairs
-local next            = next
-local type            = type
-local error           = error
-local tostring        = tostring
-local setmetatable    = setmetatable
-local pcall           = pcall
-local xpcall          = xpcall
-local require         = require
-local loadfile        = loadfile
-
-local string_sub      = string.sub
-local string_gsub     = string.gsub
-local string_format   = string.format
-local string_lower    = string.lower
-local string_find     = string.find
-
-local table_concat    = table.concat
-
-local debug_getinfo   = debug.getinfo
-local package         = require "package"
-local setfenv         = setfenv
-
-local _G = _G
-
-local IS_LUA52 = _VERSION >= 'Lua 5.2'
-
-local lunit
-
-local module = _G.module
-
-local function TEST_CASE(name)
-  if not IS_LUA52 then
-    module(name, package.seeall, lunit.testcase)
-    setfenv(2, _M)
-    return _M
-  else
-    return lunit.module(name, 'seeall')
-  end
-end
-
-if IS_LUA52 then
-
-    lunit = {}
-    _ENV = lunit
-
-else
-
-    module("lunit")
-    lunit = _M
-
-end
-
-lunit.TEST_CASE = TEST_CASE
-
-local __failure__ = {}    -- Type tag for failed assertions
-local __skip__    = {}    -- Type tag for skipped tests
-
-local typenames = { "nil", "boolean", "number", "string", "table", "function", "thread", "userdata" }
-
-
-local traceback_hide      -- Traceback function which hides lunit internals
-local mypcall             -- Protected call to a function with own traceback
-do
-  local _tb_hide = setmetatable( {}, {__mode="k"} )
-
-  function traceback_hide(func)
-    _tb_hide[func] = true
-  end
-
-  local function my_traceback(errobj)
-    if is_table(errobj) and ((errobj.type == __failure__) or (errobj.type == __skip__)) then
-      local info = debug_getinfo(5, "Sl")   -- FIXME: Hardcoded integers are bad...
-      errobj.where = string_format( "%s:%d", info.short_src, info.currentline)
-    else
-      errobj = { msg = tostring(errobj) }
-      errobj.tb = {}
-      local i = 2
-      while true do
-        local info = debug_getinfo(i, "Snlf")
-        if not is_table(info) then
-          break
-        end
-        if not _tb_hide[info.func] then
-          local line = {}       -- Ripped from ldblib.c...
-          line[#line+1] = string_format("%s:", info.short_src)
-          if info.currentline > 0 then
-            line[#line+1] = string_format("%d:", info.currentline)
-          end
-          if info.namewhat ~= "" then
-            line[#line+1] = string_format(" in function '%s'", info.name)
-          else
-            if info.what == "main" then
-              line[#line+1] = " in main chunk"
-            elseif info.what == "C" or info.what == "tail" then
-              line[#line+1] = " ?"
-            else
-              line[#line+1] = string_format(" in function <%s:%d>", info.short_src, info.linedefined)
-            end
-          end
-          errobj.tb[#errobj.tb+1] = table_concat(line)
-        end
-        i = i + 1
-      end
-    end
-    return errobj
-  end
-
-  function mypcall(func)
-    orig_assert( is_function(func) )
-    local ok, errobj = xpcall(func, my_traceback)
-    if not ok then
-      return errobj
-    end
-  end
-  traceback_hide(mypcall)
-end
-
-
--- Type check functions
-
-for _, typename in ipairs(typenames) do
-  lunit["is_"..typename] = function(x)
-    return type(x) == typename
-  end
-end
-
-local is_nil      = is_nil
-local is_boolean  = is_boolean
-local is_number   = is_number
-local is_string   = is_string
-local is_table    = is_table
-local is_function = is_function
-local is_thread   = is_thread
-local is_userdata = is_userdata
-
-
-local function failure(name, usermsg, defaultmsg, ...)
-  if usermsg then usermsg = tostring(usermsg) end
-  local errobj = {
-    type    = __failure__,
-    name    = name,
-    msg     = string_format(defaultmsg,...),
-    usermsg = usermsg
-  }
-  error(errobj, 0)
-end
-traceback_hide( failure )
-
-local function _skip(name, usermsg, defaultmsg, ...)
-  if usermsg then usermsg = tostring(usermsg) end
-  local errobj = {
-    type    = __skip__,
-    name    = name,
-    msg     = string_format(defaultmsg,...),
-    usermsg = usermsg
-  }
-  error(errobj, 0)
-end
-traceback_hide( _skip )
-
-
-local function format_arg(arg)
-  local argtype = type(arg)
-  if argtype == "string" then
-    return "'"..arg.."'"
-  elseif argtype == "number" or argtype == "boolean" or argtype == "nil" then
-    return tostring(arg)
-  else
-    return "["..tostring(arg).."]"
-  end
-end
-
-
-local selected
-do
-  local conv = {
-    ["^"] = "%^",
-    ["$"] = "%$",
-    ["("] = "%(",
-    [")"] = "%)",
-    ["%"] = "%%",
-    ["."] = "%.",
-    ["["] = "%[",
-    ["]"] = "%]",
-    ["+"] = "%+",
-    ["-"] = "%-",
-    ["?"] = ".",
-    ["*"] = ".*"
-  }
-
-  local function lunitpat2luapat(str)
-    --return "^" .. string.gsub(str, "%W", conv) .. "$"
-    -- Above was very annoying, if I want to run all the tests having to do with
-    -- RSS, I want to be able to do "-t rss"   not "-t \*rss\*".
-    return string_gsub(str, "%W", conv)
-  end
-
-  local function in_patternmap(map, name)
-    if map[name] == true then
-      return true
-    else
-      for _, pat in ipairs(map) do
-        if string_find(name, pat) then
-          return true
-        end
-      end
-    end
-    return false
-  end
-
-  selected = function (map, name)
-    if not map then
-      return true
-    end
-
-    local m = {}
-    for k,v in pairs(map) do
-      m[k] = lunitpat2luapat(v)
-    end
-    return in_patternmap(m, name)
-  end
-end
-
-
-function fail(msg)
-  stats.assertions = stats.assertions + 1
-  failure( "fail", msg, "failure" )
-end
-traceback_hide( fail )
-
-
-function skip(msg)
-  stats.assertions = stats.assertions + 1
-  _skip( "skip", msg, "skip" )
-end
-traceback_hide( skip )
-
-
-function assert(assertion, ...)
-  stats.assertions = stats.assertions + 1
-  if not assertion then
-    failure( "assert", (...), "assertion failed" )
-  end
-  return assertion, ...
-end
-traceback_hide( assert )
-
-
-function assert_true(actual, ...)
-  stats.assertions = stats.assertions + 1
-  if actual ~= true then
-    failure( "assert_true", (...), "true expected but was %s", format_arg(actual) )
-  end
-  return actual, ...
-end
-traceback_hide( assert_true )
-
-
-function assert_false(actual, ...)
-  stats.assertions = stats.assertions + 1
-  if actual ~= false then
-    failure( "assert_false", (...), "false expected but was %s", format_arg(actual) )
-  end
-  return actual, ...
-end
-traceback_hide( assert_false )
-
-
-function assert_equal(expected, actual, ...)
-  stats.assertions = stats.assertions + 1
-  if expected ~= actual then
-    failure( "assert_equal", (...), "expected %s but was %s", format_arg(expected), format_arg(actual) )
-  end
-  return actual, ...
-end
-traceback_hide( assert_equal )
-
-
-function assert_not_equal(unexpected, actual, ...)
-  stats.assertions = stats.assertions + 1
-  if unexpected == actual then
-    failure( "assert_not_equal", (...), "%s not expected but was one", format_arg(unexpected) )
-  end
-  return actual, ...
-end
-traceback_hide( assert_not_equal )
-
-
-function assert_match(pattern, actual, ...)
-  stats.assertions = stats.assertions + 1
-  if type(pattern) ~= "string" then
-    failure( "assert_match", (...), "expected a string as pattern but was %s", format_arg(pattern) )
-  end
-  if type(actual) ~= "string" then
-    failure( "assert_match", (...), "expected a string to match pattern '%s' but was a %s", pattern, format_arg(actual) )
-  end
-  if not string_find(actual, pattern) then
-    failure( "assert_match", (...), "expected '%s' to match pattern '%s' but doesn't", actual, pattern )
-  end
-  return actual, ...
-end
-traceback_hide( assert_match )
-
-
-function assert_not_match(pattern, actual, ...)
-  stats.assertions = stats.assertions + 1
-  if type(pattern) ~= "string" then
-    failure( "assert_not_match", (...), "expected a string as pattern but was %s", format_arg(pattern) )
-  end
-  if type(actual) ~= "string" then
-    failure( "assert_not_match", (...), "expected a string to not match pattern '%s' but was %s", pattern, format_arg(actual) )
-  end
-  if string_find(actual, pattern) then
-    failure( "assert_not_match", (...), "expected '%s' to not match pattern '%s' but it does", actual, pattern )
-  end
-  return actual, ...
-end
-traceback_hide( assert_not_match )
-
-
-function assert_error(msg, func)
-  stats.assertions = stats.assertions + 1
-  if func == nil then
-    func, msg = msg, nil
-  end
-  if type(func) ~= "function" then
-    failure( "assert_error", msg, "expected a function as last argument but was %s", format_arg(func) )
-  end
-  local ok, errmsg = pcall(func)
-  if ok then
-    failure( "assert_error", msg, "error expected but no error occurred" )
-  end
-end
-traceback_hide( assert_error )
-
-
-function assert_error_match(msg, pattern, func)
-  stats.assertions = stats.assertions + 1
-  if func == nil then
-    msg, pattern, func = nil, msg, pattern
-  end
-  if type(pattern) ~= "string" then
-    failure( "assert_error_match", msg, "expected the pattern as a string but was %s", format_arg(pattern) )
-  end
-  if type(func) ~= "function" then
-    failure( "assert_error_match", msg, "expected a function as last argument but was %s", format_arg(func) )
-  end
-  local ok, errmsg = pcall(func)
-  if ok then
-    failure( "assert_error_match", msg, "error expected but no error occurred" )
-  end
-  if type(errmsg) ~= "string" then
-    failure( "assert_error_match", msg, "error as string expected but was %s", format_arg(errmsg) )
-  end
-  if not string_find(errmsg, pattern) then
-    failure( "assert_error_match", msg, "expected error '%s' to match pattern '%s' but doesn't", errmsg, pattern )
-  end
-end
-traceback_hide( assert_error_match )
-
-
-function assert_pass(msg, func)
-  stats.assertions = stats.assertions + 1
-  if func == nil then
-    func, msg = msg, nil
-  end
-  if type(func) ~= "function" then
-    failure( "assert_pass", msg, "expected a function as last argument but was %s", format_arg(func) )
-  end
-  local ok, errmsg = pcall(func)
-  if not ok then
-    failure( "assert_pass", msg, "no error expected but error was: '%s'", errmsg )
-  end
-end
-traceback_hide( assert_pass )
-
-
--- lunit.assert_typename functions
-
-for _, typename in ipairs(typenames) do
-  local assert_typename = "assert_"..typename
-  lunit[assert_typename] = function(actual, ...)
-    stats.assertions = stats.assertions + 1
-    if type(actual) ~= typename then
-      failure( assert_typename, (...), "%s expected but was %s", typename, format_arg(actual) )
-    end
-    return actual, ...
-  end
-  traceback_hide( lunit[assert_typename] )
-end
-
-
--- lunit.assert_not_typename functions
-
-for _, typename in ipairs(typenames) do
-  local assert_not_typename = "assert_not_"..typename
-  lunit[assert_not_typename] = function(actual, ...)
-    stats.assertions = stats.assertions + 1
-    if type(actual) == typename then
-      failure( assert_not_typename, (...), typename.." not expected but was one" )
-    end
-    return actual, ...
-  end
-  traceback_hide( lunit[assert_not_typename] )
-end
-
-
-function lunit.clearstats()
-  stats = {
-    assertions  = 0;
-    passed      = 0;
-    failed      = 0;
-    errors      = 0;
-    skipped     = 0;
-  }
-end
-
-
-local report, reporterrobj
-do
-  local testrunner
-
-  function lunit.setrunner(newrunner)
-    if not ( is_table(newrunner) or is_nil(newrunner) ) then
-      return error("lunit.setrunner: Invalid argument", 0)
-    end
-    local oldrunner = testrunner
-    testrunner = newrunner
-    return oldrunner
-  end
-
-  function lunit.loadrunner(name)
-    if not is_string(name) then
-      return error("lunit.loadrunner: Invalid argument", 0)
-    end
-    local ok, runner = pcall( require, name )
-    if not ok then
-      return error("lunit.loadrunner: Can't load test runner: "..runner, 0)
-    end
-    return setrunner(runner)
-  end
-
-  function lunit.getrunner()
-    return testrunner
-  end
-
-  function report(event, ...)
-    local f = testrunner and testrunner[event]
-    if is_function(f) then
-      pcall(f, ...)
-    end
-  end
-
-  function reporterrobj(context, tcname, testname, errobj)
-    local fullname = tcname .. "." .. testname
-    if context == "setup" then
-      fullname = fullname .. ":" .. setupname(tcname, testname)
-    elseif context == "teardown" then
-      fullname = fullname .. ":" .. teardownname(tcname, testname)
-    end
-    if errobj.type == __failure__ then
-      stats.failed = stats.failed + 1
-      report("fail", fullname, errobj.where, errobj.msg, errobj.usermsg)
-    elseif errobj.type == __skip__ then
-      stats.skipped = stats.skipped + 1
-      report("skip", fullname, errobj.where, errobj.msg, errobj.usermsg)
-    else
-      stats.errors = stats.errors + 1
-      report("err", fullname, errobj.msg, errobj.tb)
-    end
-  end
-end
-
-
-local function key_iter(t, k)
-    return (next(t,k))
-end
-
-
-local testcase
-do
-  -- Array with all registered testcases
-  local _testcases = {}
-
-  -- Marks a module as a testcase.
-  -- Applied over a module from module("xyz", lunit.testcase).
-  function lunit.testcase(m)
-    orig_assert( is_table(m) )
-    --orig_assert( m._M == m )
-    orig_assert( is_string(m._NAME) )
-    --orig_assert( is_string(m._PACKAGE) )
-
-    -- Register the module as a testcase
-    _testcases[m._NAME] = m
-
-    -- Import lunit, fail, assert* and is_* function to the module/testcase
-    m.lunit = lunit
-    m.fail = lunit.fail
-    m.skip = lunit.skip
-    for funcname, func in pairs(lunit) do
-      if "assert" == string_sub(funcname, 1, 6) or "is_" == string_sub(funcname, 1, 3) then
-        m[funcname] = func
-      end
-    end
-  end
-
-  function lunit.module(name,seeall)
-    local m = {}
-    if seeall == "seeall" then
-      setmetatable(m, { __index = _G })
-    end
-    m._NAME = name
-    lunit.testcase(m)
-    return m
-  end
-
-  -- Iterator (testcasename) over all Testcases
-  function lunit.testcases()
-    -- Make a copy of testcases to prevent confusing the iterator when
-    -- new testcase are defined
-    local _testcases2 = {}
-    for k,v in pairs(_testcases) do
-        _testcases2[k] = true
-    end
-    return key_iter, _testcases2, nil
-  end
-
-  function testcase(tcname)
-    return _testcases[tcname]
-  end
-end
-
-
-do
-  -- Finds a function in a testcase case insensitive
-  local function findfuncname(tcname, name)
-    for key, value in pairs(testcase(tcname)) do
-      if is_string(key) and is_function(value) and string_lower(key) == name then
-        return key
-      end
-    end
-  end
-
-  function lunit.setupname(tcname)
-    return findfuncname(tcname, "setup")
-  end
-
-  function lunit.teardownname(tcname)
-    return findfuncname(tcname, "teardown")
-  end
-
-  -- Iterator over all test names in a testcase.
-  -- Have to collect the names first in case one of the test
-  -- functions creates a new global and throws off the iteration.
-  function lunit.tests(tcname)
-    local testnames = {}
-    for key, value in pairs(testcase(tcname)) do
-      if is_string(key) and is_function(value) then
-        local lfn = string_lower(key)
-        if string_sub(lfn, 1, 4) == "test" or string_sub(lfn, -4) == "test" then
-          testnames[key] = true
-        end
-      end
-    end
-    return key_iter, testnames, nil
-  end
-end
-
-
-function lunit.runtest(tcname, testname)
-  orig_assert( is_string(tcname) )
-  orig_assert( is_string(testname) )
-
-  if (not getrunner()) then
-    loadrunner("lunit.console")
-  end
-
-  local function callit(context, func)
-    if func then
-      local err = mypcall(func)
-      if err then
-        reporterrobj(context, tcname, testname, err)
-        return false
-      end
-    end
-    return true
-  end
-  traceback_hide(callit)
-
-  report("run", tcname, testname)
-
-  local tc          = testcase(tcname)
-  local setup       = tc[setupname(tcname)]
-  local test        = tc[testname]
-  local teardown    = tc[teardownname(tcname)]
-
-  local setup_ok    =              callit( "setup", setup )
-  local test_ok     = setup_ok and callit( "test", test )
-  local teardown_ok = setup_ok and callit( "teardown", teardown )
-
-  if setup_ok and test_ok and teardown_ok then
-    stats.passed = stats.passed + 1
-    report("pass", tcname, testname)
-  end
-end
-traceback_hide(runtest)
-
-
-function lunit.run(testpatterns)
-  clearstats()
-  if (not getrunner()) then
-    loadrunner("lunit.console")
-  end
-
-  report("begin")
-  for testcasename in lunit.testcases() do
-    -- Run tests in the testcases
-    for testname in lunit.tests(testcasename) do
-      if selected(testpatterns, testname) then
-        runtest(testcasename, testname)
-      end
-    end
-  end
-  report("done")
-  return stats
-end
-traceback_hide(run)
-
-
-function lunit.loadonly()
-  clearstats()
-  report("begin")
-  report("done")
-  return stats
-end
-
-
-
--- Called from 'lunit' shell script.
-
-function main(argv)
-  argv = argv or {}
-
-  -- FIXME: Error handling and error messages aren't nice.
-
-  local function checkarg(optname, arg)
-    if not is_string(arg) then
-      return error("lunit.main: option "..optname..": argument missing.", 0)
-    end
-  end
-
-  local function loadtestcase(filename)
-    if not is_string(filename) then
-      return error("lunit.main: invalid argument")
-    end
-    if #filename==0 then return end
-    local chunk, err = loadfile(filename)
-    if err then
-      return error(err)
-    else
-      chunk()
-    end
-  end
-
-  local testpatterns = nil
-  local doloadonly = false
-
-  local i = 0
-  while i < #argv do
-    i = i + 1
-    local arg = argv[i]
-    if arg == "--loadonly" then
-      doloadonly = true
-    elseif arg == "--runner" or arg == "-r" then
-      local optname = arg; i = i + 1; arg = argv[i]
-      checkarg(optname, arg)
-      loadrunner(arg)
-    elseif arg == "--test" or arg == "-t" then
-      local optname = arg; i = i + 1; arg = argv[i]
-      checkarg(optname, arg)
-      testpatterns = testpatterns or {}
-      testpatterns[#testpatterns+1] = arg
-    elseif arg == "--help" or arg == "-h" then
-        print[[
-lunit 0.8
-Copyright (c) 2004-2010 Michael Roth <mroth@nessie.de>
-Copyright (c) 2011-2015 Doug Currie
-This program comes WITHOUT WARRANTY OF ANY KIND.
-
-Usage: lua test [OPTIONS] [--] scripts
-
-Options:
-
-  -r, --runner RUNNER         Testrunner to use, defaults to 'lunit-console'.
-  -t, --test PATTERN          Which tests to run, may contain * or ? wildcards.
-      --loadonly              Only load the tests.
-  -h, --help                  Print this help screen.
-
-Please report bugs to <mroth@nessie.de>.
-]]
-        return
-    elseif arg == "--" then
-      while i < #argv do
-        i = i + 1; arg = argv[i]
-        loadtestcase(arg)
-      end
-    else
-      loadtestcase(arg)
-    end
-  end
-
-  if doloadonly then
-    return loadonly()
-  else
-    return run(testpatterns)
-  end
-end
-
-clearstats()
-
-return lunit
diff --git a/share/lua/5.4/lunit/console.lua b/share/lua/5.4/lunit/console.lua
deleted file mode 100644
index f47bbaa4a..000000000
--- a/share/lua/5.4/lunit/console.lua
+++ /dev/null
@@ -1,145 +0,0 @@
-
---[[--------------------------------------------------------------------------
-
-    This file is part of lunitx.
-
-    For Details about lunit look at: http://www.mroth.net/lunit/
-
-    Author: Michael Roth <mroth@nessie.de>
-
-    Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de>
-
-    Permission is hereby granted, free of charge, to any person
-    obtaining a copy of this software and associated documentation
-    files (the "Software"), to deal in the Software without restriction,
-    including without limitation the rights to use, copy, modify, merge,
-    publish, distribute, sublicense, and/or sell copies of the Software,
-    and to permit persons to whom the Software is furnished to do so,
-    subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be
-    included in all copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
---]]--------------------------------------------------------------------------
-
-
-
---[[
-
-      begin()
-        run(testcasename, testname)
-          err(fullname, message, traceback)
-          fail(fullname, where, message, usermessage)
-          pass(testcasename, testname)
-      done()
-
-      Fullname:
-        testcase.testname
-        testcase.testname:setupname
-        testcase.testname:teardownname
-
---]]
-
-
-local lunit  = require "lunit"
-local string = require "string"
-local io     = require "io"
-local table  = require "table"
-
-local _M = {}
-
-local function printformat(format, ...)
-  io.write( string.format(format, ...) )
-end
-
-local columns_printed = 0
-
-local function writestatus(char)
-  if columns_printed == 0 then
-    io.write("    ")
-  end
-  if columns_printed == 60 then
-    io.write("\n    ")
-    columns_printed = 0
-  end
-  io.write(char)
-  io.flush()
-  columns_printed = columns_printed + 1
-end
-
-local msgs = {}
-
-function _M.begin()
-  local total_tc = 0
-  local total_tests = 0
-
-  msgs = {} -- e
-
-  for tcname in lunit.testcases() do
-    total_tc = total_tc + 1
-    for testname, test in lunit.tests(tcname) do
-      total_tests = total_tests + 1
-    end
-  end
-
-  printformat("Loaded testsuite with %d tests in %d testcases.\n\n", total_tests, total_tc)
-end
-
-function _M.run(testcasename, testname)
-  -- NOP
-end
-
-function _M.err(fullname, message, traceback)
-  writestatus("E")
-  msgs[#msgs+1] = "Error! ("..fullname.."):\n"..message.."\n\t"..table.concat(traceback, "\n\t") .. "\n"
-end
-
-function _M.fail(fullname, where, message, usermessage)
-  writestatus("F")
-  local text =  "Failure ("..fullname.."):\n"..
-                where..": "..message.."\n"
-
-  if usermessage then
-    text = text .. where..": "..usermessage.."\n"
-  end
-
-  msgs[#msgs+1] = text
-end
-
-function _M.skip(fullname, where, message, usermessage)
-  writestatus("S")
-  local text =  "Skip ("..fullname.."):\n"..
-                where..": "..message.."\n"
-
-  if usermessage then
-    text = text .. where..": "..usermessage.."\n"
-  end
-
-  msgs[#msgs+1] = text
-end
-
-function _M.pass(testcasename, testname)
-  writestatus(".")
-end
-
-function _M.done()
-  printformat("\n\n%d Assertions checked.\n", lunit.stats.assertions )
-  print()
-
-  for i, msg in ipairs(msgs) do
-    printformat( "%3d) %s\n", i, msg )
-  end
-
-  printformat("Testsuite finished (%d passed, %d failed, %d errors, %d skipped).\n",
-      lunit.stats.passed, lunit.stats.failed, lunit.stats.errors, lunit.stats.skipped )
-end
-
-return _M
diff --git a/share/lua/5.4/lunitx.lua b/share/lua/5.4/lunitx.lua
deleted file mode 100644
index e3c5536d5..000000000
--- a/share/lua/5.4/lunitx.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local atexit = require "lunitx.atexit"
-local lunit = require "lunit"
-
---for k,v in pairs(debug.getinfo(1,"S")) do print(k,v) end
--- autonameing
--- module("bcrc-test", lunit.testcase, package.seeall)
-
-atexit(function()
-    local _, emsg = xpcall(function()
-        lunit.main(arg)
-    end, debug.traceback)
-    if emsg then
-        print(emsg)
-        os.exit(1)
-    end
-    if lunit.stats.failed > 0 or lunit.stats.errors > 0 then
-      os.exit(1)
-    end
-end)
-
-return lunit
diff --git a/share/lua/5.4/lunitx/atexit.lua b/share/lua/5.4/lunitx/atexit.lua
deleted file mode 100644
index 3582b2847..000000000
--- a/share/lua/5.4/lunitx/atexit.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-
-local actions = {}
-
-local atexit
-
-if _VERSION >= 'Lua 5.2' then
-
-    atexit = function (fn)
-        actions[#actions+1] = setmetatable({}, { __gc = fn })
-    end
-
-else
-
-    local newproxy = newproxy
-    local debug = debug
-    local assert = assert
-    local setmetatable = setmetatable
-
-    local function gc(fn)
-        local p = assert(newproxy())
-        assert(debug.setmetatable(p, { __gc = fn }))
-        return p
-    end
-
-    atexit = function (fn)
-        actions[#actions+1] = gc(fn)
-    end
-
-end
-
-return atexit
-
diff --git a/src/gmtool.c b/src/gmtool.c
index 5a8a26b96..373222d96 100644
--- a/src/gmtool.c
+++ b/src/gmtool.c
@@ -71,7 +71,8 @@ int umvwprintw(WINDOW *win, int y, int x, const char *format, ...) {
 }
 
 int umvwaddnstr(WINDOW *w, int y, int x, const char * str, int len) {
-    return mvwaddnstr(w, y, x, str, len);
+    (void)len;
+    return mvwaddstr(w, y, x, str);
 }
 
 static void init_curses(void)
@@ -368,7 +369,6 @@ static void paint_info_region(window * wnd, const state * st)
 
     UNUSED_ARG(st);
     werase(win);
-    box(win, 0, 0);
     if (mr && mr->r) {
         int line = 0;
         const region *r = mr->r;
@@ -383,9 +383,9 @@ static void paint_info_region(window * wnd, const state * st)
         if (r->land) {
             int iron = region_getresource_level(r, get_resourcetype(R_IRON));
             int stone = region_getresource_level(r, get_resourcetype(R_STONE));
-            mvwprintw(win, line++, 1, "$:%6d  P:%5d", rmoney(r), rpeasants(r));
-            mvwprintw(win, line++, 1, "S:%6d  I:%5d", stone, iron);
-            mvwprintw(win, line++, 1, "H:%6d  %s:%5d", rhorses(r),
+            mvwprintw(win, line++, 1, "$:%8d  P:%8d", rmoney(r), rpeasants(r));
+            mvwprintw(win, line++, 1, "S:%8d  I:%8d", stone, iron);
+            mvwprintw(win, line++, 1, "H:%8d  %s:%8d", rhorses(r),
                 (r->flags & RF_MALLORN) ? "M" : "T",
                 r->land->trees[1] + r->land->trees[2]);
         }
@@ -427,6 +427,7 @@ static void paint_info_region(window * wnd, const state * st)
             }
         }
     }
+    box(win, 0, 0);
 }
 
 static void(*paint_info) (struct window * wnd, const struct state * st);
@@ -1494,15 +1495,17 @@ static void update_view(view * vi)
 state *state_open(void)
 {
     state *st = (state *)calloc(1, sizeof(state));
-    st->display.pl = get_homeplane();
-    st->cursor.pl = get_homeplane();
-    st->cursor.x = 0;
-    st->cursor.y = 0;
-    st->selected = calloc(1, sizeof(struct selection));
-    st->modified = 0;
-    st->info_flags = 0xFFFFFFFF;
-    st->prev = current_state;
-    current_state = st;
+    if (st) {
+        st->display.pl = get_homeplane();
+        st->cursor.pl = get_homeplane();
+        st->cursor.x = 0;
+        st->cursor.y = 0;
+        st->selected = calloc(1, sizeof(struct selection));
+        st->modified = 0;
+        st->info_flags = 0xFFFFFFFF;
+        st->prev = current_state;
+        current_state = st;
+    }
     return st;
 }
 
@@ -1519,7 +1522,7 @@ void run_mapper(void)
     WINDOW *hwininfo;
     WINDOW *hwinmap;
     int width, height, x, y;
-    int split = 20;
+    int split = 30;
     state *st;
     point tl;
 

From c5cc314c4657d3a40223bd2f41e6c75c97c1ce14 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 20:08:30 +0100
Subject: [PATCH 73/78] travis, install luarocks

---
 s/travis-build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/s/travis-build b/s/travis-build
index e326d7b10..9344f3b6b 100755
--- a/s/travis-build
+++ b/s/travis-build
@@ -39,5 +39,8 @@ cd ../process
 make
 cd $ROOT
 inifile
+luarocks install lunitx --local
+eval $(luarocks path)
 s/runtests -V
 integration_tests
+

From 8421e64c6ed1b7c3d7064256426f298feceeed25 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Mon, 22 Feb 2021 20:50:49 +0100
Subject: [PATCH 74/78] travis lua_path, again

---
 s/travis-build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/s/travis-build b/s/travis-build
index 9344f3b6b..722ea9828 100755
--- a/s/travis-build
+++ b/s/travis-build
@@ -41,6 +41,8 @@ cd $ROOT
 inifile
 luarocks install lunitx --local
 eval $(luarocks path)
+export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
+echo $LUA_PATH
 s/runtests -V
 integration_tests
 

From e36cac1188b42041c454ba2f4aeb09a053cf3f5f Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Tue, 23 Feb 2021 17:19:48 +0100
Subject: [PATCH 75/78] find config files in ERESSEA_DIR if config.install is
 not set

---
 scripts/eressea/path.lua | 11 ++++-------
 tests/eressea.ini        |  1 -
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/scripts/eressea/path.lua b/scripts/eressea/path.lua
index a0659ec58..2c352fe08 100644
--- a/scripts/eressea/path.lua
+++ b/scripts/eressea/path.lua
@@ -1,11 +1,8 @@
-local path = os.getenv("ERESSEA_DIR")
-if not path then
-    if config.install then
-	    path = config.install
-    else
-        path = '.'
-    end
+local path = '.'
+if config.install then
+	path = config.install
 else
+    path = os.getenv("ERESSEA_DIR") or path
     config.install = path
 end
 path = path .. "/scripts"
diff --git a/tests/eressea.ini b/tests/eressea.ini
index faf4b1b9e..3eb8e6189 100644
--- a/tests/eressea.ini
+++ b/tests/eressea.ini
@@ -7,6 +7,5 @@ locales                        = de,en
 
 [lua]
 install                        = ..
-paths                          = lunit:scripts
 maxnmrs                        = 20
 rules                          = e2

From 9f9b6f4fafb869c9f45a4b9c15205f6a5c5370f9 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Tue, 23 Feb 2021 17:57:44 +0100
Subject: [PATCH 76/78] rename ERESSEA_DIR to ERESSEA_ROOT

---
 scripts/eressea/path.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/eressea/path.lua b/scripts/eressea/path.lua
index 2c352fe08..32ae75b81 100644
--- a/scripts/eressea/path.lua
+++ b/scripts/eressea/path.lua
@@ -2,7 +2,7 @@ local path = '.'
 if config.install then
 	path = config.install
 else
-    path = os.getenv("ERESSEA_DIR") or path
+    path = os.getenv("ERESSEA_ROOT") or path
     config.install = path
 end
 path = path .. "/scripts"

From f48551ebcbc9e3b00a6be0b098a90835100c7cec Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Wed, 24 Feb 2021 18:48:12 +0100
Subject: [PATCH 77/78] remove unicode from autoseed (races are always english
 tokens)

---
 src/CMakeLists.txt     | 54 +++++++++++++++++++++---------------------
 src/modules/autoseed.c | 23 ++++--------------
 2 files changed, 32 insertions(+), 45 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index efe25eb3a..274b66ce8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -9,42 +9,42 @@ include_directories (${TOLUA_INCLUDE_DIR})
 include_directories (${LUA_INCLUDE_DIR})
 include_directories (${INIPARSER_INCLUDE_DIR})
 
-IF(DEFINED ERESSEA_VERSION)
+if(DEFINED ERESSEA_VERSION)
 set_source_files_properties(kernel/version.c PROPERTIES
-COMPILE_DEFINITIONS ERESSEA_VERSION="${ERESSEA_VERSION}")
-ENDIF()
+compile_definitions ERESSEA_VERSION="${ERESSEA_VERSION}")
+endif()
 
-IF(DEFINED ERESSEA_BUILDNO)
+if(DEFINED ERESSEA_BUILDNO)
 set_source_files_properties(kernel/version.c PROPERTIES
 COMPILE_DEFINITIONS ERESSEA_BUILDNO="${ERESSEA_BUILDNO}")
-ENDIF()
+endif()
 
-IF (CMAKE_COMPILER_IS_GNUCC)
+if (CMAKE_COMPILER_IS_GNUCC)
   add_compile_options(-Wvla)
-ENDIF()
-IF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
+endif()
+if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
   add_compile_options(-Wsign-compare -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -Wno-long-long)
-ELSEIF(MSVC)
+elseif(MSVC)
   add_compile_options(/WX /MP)
 #  set(EXTRA_C_FLAGS /WX /MP /D_CRT_SECURE_NO_WARNINGS /D_USE_MATH_DEFINES)
     set(CMAKE_EXE_LINKER_FLAGS_DEBUG
         "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrt.lib")
     set(CMAKE_EXE_LINKER_FLAGS_RELEASE
         "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib")
-ELSE()
-    MESSAGE(STATUS "unknown compiler ${CMAKE_C_COMPILER_ID}")
-ENDIF()
+else()
+    message(STATUS "unknown compiler ${CMAKE_C_COMPILER_ID}")
+endif()
 
-IF(CMAKE_COMPILER_IS_CLANG)
-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wtautological-compare -Weverything")
-    MESSAGE(STATUS "compiler is clang: ${CMAKE_C_COMPILER_ID}")
-ELSEIF(CMAKE_COMPILER_IS_GCC)
-    EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
+if(CMAKE_COMPILER_IS_CLANG)
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wtautological-compare -Weverything")
+    message(STATUS "compiler is clang: ${CMAKE_C_COMPILER_ID}")
+elseif(CMAKE_COMPILER_IS_GCC)
+    execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
         OUTPUT_VARIABLE GCC_VERSION)
-    IF (GCC_VERSION VERSION_GREATER 4.9)
+    if (GCC_VERSION VERSION_GREATER 4.9)
         SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wfloat-conversion")
-    ENDIF()
-ENDIF(CMAKE_COMPILER_IS_CLANG)
+    endif()
+endif(CMAKE_COMPILER_IS_CLANG)
 
 string(REGEX REPLACE "/W[3|4]" "/w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
 
@@ -57,23 +57,23 @@ add_subdirectory(triggers)
 add_subdirectory(modules)
 add_subdirectory(races)
 
-MACRO(ADD_LUA_MODULE MODULE_NAME FILES)
-  ADD_LIBRARY (${MODULE_NAME} SHARED ${FILES})
-  SET_TARGET_PROPERTIES(${MODULE_NAME}
+macro(ADD_LUA_MODULE MODULE_NAME FILES)
+  add_library (${MODULE_NAME} SHARED ${FILES})
+  set_target_properties(${MODULE_NAME}
     PROPERTIES
     PREFIX ""
   )
-ENDMACRO(ADD_LUA_MODULE)
+endmacro(ADD_LUA_MODULE)
 
-MACRO(TOLUA_BINDING PKGFILE FILES)
-  ADD_CUSTOM_COMMAND(
+macro(TOLUA_BINDING PKGFILE FILES)
+  add_custom_command(
     OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${PKGFILE}.c
     DEPENDS ${FILES} ${PKGFILE}
     COMMAND ${TOLUA_EXECUTABLE}
     ARGS -o ${CMAKE_CURRENT_SOURCE_DIR}/${PKGFILE}.c ${PKGFILE}
     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
   )
-ENDMACRO(TOLUA_BINDING)
+endmacro(TOLUA_BINDING)
 
 TOLUA_BINDING(log.pkg util/log.h)
 TOLUA_BINDING(locale.pkg bind_locale.h)
diff --git a/src/modules/autoseed.c b/src/modules/autoseed.c
index 069d2487a..aec86419e 100644
--- a/src/modules/autoseed.c
+++ b/src/modules/autoseed.c
@@ -133,6 +133,11 @@ newfaction *read_newfactions(const char *filename)
         }
         nf->password = str_strdup(password);
         nf->race = rc_find(race);
+        if (nf->race == NULL) {
+            log_error("new faction has unknown race '%s'.\n", race);
+            free(nf);
+            continue;
+        }
         if (alliances != NULL) {
             struct alliance *al = findalliance(alliance);
             if (al == NULL) {
@@ -145,24 +150,6 @@ newfaction *read_newfactions(const char *filename)
         else {
             nf->allies = NULL;
         }
-        if (nf->race == NULL) {
-            /* if the script didn't supply the race as a token, then it gives us a
-             * race in the default locale (which means that itis a UTF8 string) */
-            nf->race = findrace(race, default_locale);
-            if (nf->race == NULL) {
-                char buffer[32];
-                size_t outbytes = sizeof(buffer) - 1;
-                size_t inbytes = strlen(race);
-                unicode_latin1_to_utf8(buffer, &outbytes, race, &inbytes);
-                buffer[outbytes] = 0;
-                nf->race = findrace(buffer, default_locale);
-                if (nf->race == NULL) {
-                    log_error("new faction has unknown race '%s'.\n", race);
-                    free(nf);
-                    continue;
-                }
-            }
-        }
         nf->lang = get_locale(lang);
         assert(nf->race && nf->email && nf->lang);
         nfi = &newfactions;

From 5fd974d3999347a8d05350af69ac82874fc88291 Mon Sep 17 00:00:00 2001
From: Enno Rehling <enno@eressea.de>
Date: Wed, 24 Feb 2021 19:06:04 +0100
Subject: [PATCH 78/78] https://bugs.eressea.de/view.php?id=2573 magical
 resistance of adamantium

---
 res/adamantium.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/res/adamantium.xml b/res/adamantium.xml
index 2bea686fe..334cdf83a 100644
--- a/res/adamantium.xml
+++ b/res/adamantium.xml
@@ -16,7 +16,7 @@
         <requirement type="adamantium" quantity="1"/>
         <requirement type="log" quantity="1"/>
       </construction>
-      <weapon cut="true" magical="true" skill="melee" offmod="2" defmod="-2" magres="0.30">
+      <weapon cut="true" magical="true" skill="melee" offmod="2" defmod="-2" magres="0.3">
         <damage type="rider" value="3d4+15"/>
         <damage type="footman" value="3d4+15"/>
       </weapon>
@@ -28,7 +28,7 @@
       <construction skill="armorer" minskill="10">
         <requirement type="adamantium" quantity="3"/>
       </construction>
-      <armor ac="7" penalty="0.1"/>
+      <armor ac="7" penalty="0.1" magres="0.3"/>
     </item>
   </resource>