MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / SCR_DrawMemoryUsage

Function SCR_DrawMemoryUsage

neo/framework/Console.cpp:249–261  ·  view source on GitHub ↗

================== SCR_DrawMemoryUsage ================== */

Source from the content-addressed store, hash-verified

247==================
248*/
249float SCR_DrawMemoryUsage( float y ) {
250 memoryStats_t allocs, frees;
251
252 Mem_GetStats( allocs );
253 SCR_DrawTextRightAlign( y, "total allocated memory: %4d, %4lldkB", allocs.num, allocs.totalSize>>10 );
254
255 Mem_GetFrameStats( allocs, frees );
256 SCR_DrawTextRightAlign( y, "frame alloc: %4d, %4lldkB frame free: %4d, %4lldkB", allocs.num, allocs.totalSize>>10, frees.num, frees.totalSize>>10 );
257
258 Mem_ClearFrameStats();
259
260 return y;
261}
262
263/*
264==================

Callers 1

DrawMethod · 0.85

Calls 4

Mem_GetStatsFunction · 0.85
SCR_DrawTextRightAlignFunction · 0.85
Mem_GetFrameStatsFunction · 0.85
Mem_ClearFrameStatsFunction · 0.85

Tested by

no test coverage detected