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

Function getMemoryInfo

Engine/source/platform/platformMemory.cpp:1677–1694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1675}
1676
1677void getMemoryInfo( void* ptr, Info& info )
1678{
1679 #ifndef TORQUE_DISABLE_MEMORY_MANAGER
1680
1681 AllocatedHeader* header = ( ( AllocatedHeader* ) ptr ) - 1;
1682
1683 info.mAllocSize = header->size;
1684 #ifdef TORQUE_DEBUG_GUARD
1685 info.mAllocNumber = header->allocNum;
1686 info.mLineNumber = header->line;
1687 info.mFileName = header->fileName;
1688 #endif
1689 info.mIsArray = header->flags & Array;
1690 info.mIsGlobal = header->flags & GlobalFlag;
1691 info.mIsStatic = header->flags & StaticFlag;
1692
1693 #endif
1694}
1695
1696void setBreakAlloc(U32 breakAlloc)
1697{

Callers 1

simObject.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected