mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 15:31:50 +00:00
better memory stats
This commit is contained in:
parent
922783b288
commit
ef80d410ca
@ -104,6 +104,16 @@ namespace MM
|
|||||||
void PrintMemoryStats()
|
void PrintMemoryStats()
|
||||||
{
|
{
|
||||||
mplite_print_stats(&pool, std::puts);
|
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' : ' ');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user