17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-25 02:07:37 +02:00

perf(debug): debug.memorystats switch for the heap counting (off by default) and the places of the large heap blocks in the memory section

This commit is contained in:
2026-10-23 23:10:32 +02:00
parent 16ee4ff65b
commit 336690ad8a
6 changed files with 482 additions and 41 deletions

View File

@@ -28,6 +28,7 @@ http://mozilla.org/MPL/2.0/.
#include "utilities/translation.h"
#include "vehicle/Train.h"
#include "utilities/Timer.h"
#include "utilities/memorystats.h"
#include "utilities/dictionary.h"
#include "version_info.h"
#include <chrono>
@@ -1146,6 +1147,10 @@ int eu07_application::init_settings(int Argc, char *Argv[])
{
Global.LoadIniFile("eu07.ini");
}
if (Global.debug_memorystats)
{
start_heap_counting();
}
// process command line arguments
bool sceneryfromcommandline{false};