MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / logRealloc

Function logRealloc

Engine/source/platform/platformMemory.cpp:1098–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096
1097#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
1098static void logRealloc(const AllocatedHeader* hdr, S32 memSize)
1099{
1100 FileStream fws;
1101 fws.open(gLogFilename, Torque::FS::File::ReadWrite);
1102 fws.setPosition(fws.getStreamSize());
1103
1104 char buffer[1024];
1105 dSprintf(buffer, 1023, "realloc: %s %d %d %d\r\n",
1106 hdr->fileName != NULL ? hdr->fileName : "Undetermined",
1107 hdr->line, memSize, hdr->allocNum);
1108 fws.write(dStrlen(buffer), buffer);
1109 fws.close();
1110}
1111#endif
1112
1113#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)

Callers 1

reallocFunction · 0.85

Calls 7

dSprintfFunction · 0.85
dStrlenFunction · 0.50
openMethod · 0.45
setPositionMethod · 0.45
getStreamSizeMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected