mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Added Z_TotalUsage as a shortcut for Z_TagsUsage(0, INT32_MAX)
This commit is contained in:
parent
81a9b7b070
commit
1bc98da70b
3 changed files with 3 additions and 2 deletions
|
@ -606,7 +606,7 @@ static void ST_drawDebugInfo(void)
|
||||||
|
|
||||||
if (cv_debug & DBG_MEMORY)
|
if (cv_debug & DBG_MEMORY)
|
||||||
{
|
{
|
||||||
V_DrawRightAlignedString(320, height, V_MONOSPACE, va("Heap: %7sKB", sizeu1(Z_TagsUsage(0, INT32_MAX)>>10)));
|
V_DrawRightAlignedString(320, height, V_MONOSPACE, va("Heap: %7sKB", sizeu1(Z_TotalUsage()>>10)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -758,7 +758,7 @@ static void Command_Memfree_f(void)
|
||||||
|
|
||||||
Z_CheckHeap(-1);
|
Z_CheckHeap(-1);
|
||||||
CONS_Printf("\x82%s", M_GetText("Memory Info\n"));
|
CONS_Printf("\x82%s", M_GetText("Memory Info\n"));
|
||||||
CONS_Printf(M_GetText("Total heap used : %7s KB\n"), sizeu1(Z_TagsUsage(0, INT32_MAX)>>10));
|
CONS_Printf(M_GetText("Total heap used : %7s KB\n"), sizeu1(Z_TotalUsage()>>10));
|
||||||
CONS_Printf(M_GetText("Static : %7s KB\n"), sizeu1(Z_TagUsage(PU_STATIC)>>10));
|
CONS_Printf(M_GetText("Static : %7s KB\n"), sizeu1(Z_TagUsage(PU_STATIC)>>10));
|
||||||
CONS_Printf(M_GetText("Static (sound) : %7s KB\n"), sizeu1(Z_TagUsage(PU_SOUND)>>10));
|
CONS_Printf(M_GetText("Static (sound) : %7s KB\n"), sizeu1(Z_TagUsage(PU_SOUND)>>10));
|
||||||
CONS_Printf(M_GetText("Static (music) : %7s KB\n"), sizeu1(Z_TagUsage(PU_MUSIC)>>10));
|
CONS_Printf(M_GetText("Static (music) : %7s KB\n"), sizeu1(Z_TagUsage(PU_MUSIC)>>10));
|
||||||
|
|
|
@ -133,6 +133,7 @@ void Z_SetUser(void *ptr, void **newuser);
|
||||||
//
|
//
|
||||||
#define Z_TagUsage(tagnum) Z_TagsUsage(tagnum, tagnum)
|
#define Z_TagUsage(tagnum) Z_TagsUsage(tagnum, tagnum)
|
||||||
size_t Z_TagsUsage(INT32 lowtag, INT32 hightag);
|
size_t Z_TagsUsage(INT32 lowtag, INT32 hightag);
|
||||||
|
#define Z_TotalUsage() Z_TagsUsage(0, INT32_MAX)
|
||||||
|
|
||||||
//
|
//
|
||||||
// Miscellaneous functions
|
// Miscellaneous functions
|
||||||
|
|
Loading…
Reference in a new issue