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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user