Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libdeng|Memory Zone: Print status in release builds, too
  • Loading branch information
skyjake committed Jul 27, 2012
1 parent eb2ea47 commit 97cdb24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doomsday/libdeng/src/memoryzone.c
Expand Up @@ -1033,14 +1033,12 @@ size_t Z_FreeMemory(void)

void Z_PrintStatus(void)
{
#ifdef _DEBUG
size_t allocated = Z_AllocatedMemory();
size_t wasted = Z_FreeMemory();

LegacyCore_PrintfLogFragmentAtLevel(DE2_LOG_INFO,
LegacyCore_PrintfLogFragmentAtLevel(DE2_LOG_DEBUG,
"Memory zone status: %u volumes, %u bytes allocated, %u bytes free (%f%% in use)\n",
Z_VolumeCount(), (uint)allocated, (uint)wasted, (float)allocated/(float)(allocated+wasted)*100.f);
#endif
}

/**
Expand Down

0 comments on commit 97cdb24

Please sign in to comment.