mirror of
https://github.com/gperftools/gperftools
synced 2025-02-18 21:26:49 +00:00
unbreak printing large span stats
One of recent commits started passing kMaxPages to printf but not used it. Thankfully compilers gave us warning. Apparently intention was to print real value of kMaxPages, so this is what we're doing now.
This commit is contained in:
parent
34f78a2dcd
commit
47c99cf492
@ -517,9 +517,9 @@ static void DumpStats(TCMalloc_Printer* out, int level) {
|
||||
|
||||
total_normal += large.normal_pages;
|
||||
total_returned += large.returned_pages;
|
||||
out->printf(">128 large * %6u spans ~ %6.1f MiB; %6.1f MiB cum"
|
||||
out->printf(">%-5u large * %6u spans ~ %6.1f MiB; %6.1f MiB cum"
|
||||
"; unmapped: %6.1f MiB; %6.1f MiB cum\n",
|
||||
kMaxPages,
|
||||
static_cast<unsigned int>(kMaxPages),
|
||||
static_cast<unsigned int>(large.spans),
|
||||
PagesToMiB(large.normal_pages + large.returned_pages),
|
||||
PagesToMiB(total_normal + total_returned),
|
||||
|
Loading…
Reference in New Issue
Block a user