MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / initLog

Function initLog

Engine/source/platform/platformMemory.cpp:1071–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069}
1070
1071static void initLog()
1072{
1073 static const char* sInitString = " --- INIT MEMORY LOG (ACTION): (FILE) (LINE) (SIZE) (ALLOCNUMBER) ---\r\n";
1074
1075 FileStream fws;
1076 fws.open(gLogFilename, Torque::FS::File::Write);
1077 fws.write(dStrlen(sInitString), sInitString);
1078 fws.close();
1079}
1080
1081#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
1082static void logAlloc(const AllocatedHeader* hdr, S32 memSize)

Callers 1

enableLoggingFunction · 0.85

Calls 4

openMethod · 0.65
closeMethod · 0.65
dStrlenFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected