MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / MMMDebugInit

Function MMMDebugInit

Code/CryEngine/CryNetwork/MementoMemoryManager.cpp:257–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static void MMMDebugInit()
258{
259 MMMDebugClearFrameData();
260
261 s_MMMDebug.m_currentNumAllocs = 0;
262
263 #if MMM_SAVE || MMM_PLAY
264 s_pMMMSaveData = new MMMSaveData[s_MMMSaveDataSize];
265 memset(s_pMMMSaveData, 0, s_MMMSaveDataSize * sizeof(s_pMMMSaveData[0]));
266 #endif
267
268 #if MMM_SAVE
269 if (gEnv->pSystem->GetApplicationInstance() == 0)
270 {
271 s_pMMMSaveFile = fxopen("mmm.dat", "wb");
272 fclose(s_pMMMSaveFile);
273 }
274 #endif
275}
276
277static void MMMDebugAddAlloc(void* p, size_t sz)
278{

Callers 1

Calls 3

MMMDebugClearFrameDataFunction · 0.85
fxopenFunction · 0.85

Tested by

no test coverage detected