| 937 | #ifdef TORQUE_DEBUG_GUARD |
| 938 | |
| 939 | void 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 | |
| 955 | DefineEngineFunction(flagCurrentAllocs, void, (),, |
| 956 | "@brief Flags all current memory allocations.\n\n" |