17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 23:40:29 +01: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

@@ -1150,6 +1150,12 @@ bool global_settings::ConfigParseDebug(cParser& Parser, const std::string& token
return true;
}
if (token == "debug.memorystats")
{
ParseOne(Parser, debug_memorystats);
return true;
}
if (token == "debuglog")
{
std::string value;
@@ -1915,6 +1921,7 @@ global_settings::export_as_text( std::ostream &Output ) const {
export_as_text( Output, "physics.roadlod", physics_roadlod );
export_as_text( Output, "physics.pipewake", physics_pipewake );
export_as_text( Output, "performance.multithreading", performance_multithreading );
export_as_text( Output, "debug.memorystats", debug_memorystats );
export_as_text( Output, "debuglog", iWriteLogEnabled );
export_as_text( Output, "multiplelogs", MultipleLogs );
export_as_text( Output, "showsystemconsole", ShowSystemConsole );