better memory stats

This commit is contained in:
Kelvin Sherlock 2013-06-26 22:48:40 -04:00
parent 922783b288
commit ef80d410ca

View File

@ -104,6 +104,16 @@ namespace MM
void PrintMemoryStats()
{
mplite_print_stats(&pool, std::puts);
for (const auto & kv : HandleMap)
{
const auto h = kv.first;
const auto & info = kv.second;
fprintf(stdout, "%08x %08x %08x %c %c\n",
h, info.address, info.size,
info.locked? 'L' : ' ', info.purgeable? 'P' : ' ');
}
}