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

Function getMemoryUsed

Engine/source/platform/platformMemory.cpp:1574–1587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1572#endif
1573
1574dsize_t getMemoryUsed()
1575{
1576 U32 size = 0;
1577
1578 PageRecord* walk;
1579 for (walk = gPageList; walk; walk = walk->prevPage) {
1580 for(Header *probe = walk->headerList; probe; probe = probe->next)
1581 if (probe->flags & Allocated) {
1582 size += probe->size;
1583 }
1584 }
1585
1586 return size;
1587}
1588
1589#ifdef TORQUE_DEBUG_GUARD
1590DefineEngineFunction( dumpAlloc, void, ( S32 allocNum ),,

Callers 1

platformMemory.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected