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

Function flagCurrentAllocs

Engine/source/platform/platformMemory.cpp:939–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937#ifdef TORQUE_DEBUG_GUARD
938
939void flagCurrentAllocs( EFlag flag )
940{
941#ifdef TORQUE_ENABLE_PROFILE_PATH
942 if (gProfiler && !gProfiler->isEnabled())
943 {
944 gProfiler->enable(true);
945 // warm it up
946 //gProfiler->dumpToConsole();
947 }
948#endif
949
950 U32 bit = flagToBit( flag );
951 for( HeapIterator iter; iter.isValid(); ++ iter )
952 iter->flags |= bit;
953}
954
955DefineEngineFunction(flagCurrentAllocs, void, (),,
956 "@brief Flags all current memory allocations.\n\n"

Callers 2

platformMemory.cppFile · 0.85
initMethod · 0.85

Calls 4

flagToBitFunction · 0.85
isEnabledMethod · 0.45
enableMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected