mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 10:37:41 -04:00
Kill hsMalloc to the best of our ability.
This commit is contained in:
@ -648,55 +648,6 @@ PF_CONSOLE_CMD(Stats, ProfileAllAgeLoads, "", "Turns on Registry.LogReadTimes an
|
||||
#endif // LIMIT_CONSOLE_COMMANDS
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//// Memory Commands ////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef LIMIT_CONSOLE_COMMANDS
|
||||
|
||||
|
||||
PF_CONSOLE_GROUP( Memory )
|
||||
|
||||
#ifdef HS_FIND_MEM_LEAKS
|
||||
|
||||
PF_CONSOLE_CMD( Memory, DumpAllocReport, // Group name, Function name
|
||||
"", // Params
|
||||
"Dump heap allocations to file." ) // Help string
|
||||
{
|
||||
MemDumpAllocReport();
|
||||
}
|
||||
|
||||
|
||||
PF_CONSOLE_CMD(Memory,
|
||||
ValidateNow,
|
||||
"",
|
||||
"Validate all heap allocations")
|
||||
{
|
||||
MemValidateNow();
|
||||
}
|
||||
|
||||
|
||||
PF_CONSOLE_CMD(Memory,
|
||||
SetValidation,
|
||||
"bool on",
|
||||
"Validate all heap allocations each time memory is alloced or freed.")
|
||||
{
|
||||
MemSetValidation((bool)params[0]);
|
||||
}
|
||||
|
||||
PF_CONSOLE_CMD(Memory,
|
||||
DumpUsage,
|
||||
"",
|
||||
"Dump heap usage to file")
|
||||
{
|
||||
MemDumpUsageReport();
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#endif // LIMIT_CONSOLE_COMMANDS
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//// Console Group Commands //////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user