Fixed --mem-stats flag.

This commit is contained in:
Andrey Shitov
2015-03-30 11:31:09 +03:00
parent 9746b2fd76
commit ac7edde72e
4 changed files with 21 additions and 21 deletions
+10 -10
View File
@@ -973,17 +973,17 @@ mem_heap_print (bool dump_block_headers, /**< print block headers */
" Peak allocated chunks count = %lu\n"
" Peak allocated= %lu bytes\n"
" Peak waste = %lu bytes\n",
mem_heap_stats.size,
(uint64_t) mem_heap_stats.size,
(uint64_t) MEM_HEAP_CHUNK_SIZE,
mem_heap_stats.blocks,
mem_heap_stats.allocated_blocks,
mem_heap_stats.allocated_chunks,
mem_heap_stats.allocated_bytes,
mem_heap_stats.waste_bytes,
mem_heap_stats.peak_allocated_blocks,
mem_heap_stats.peak_allocated_chunks,
mem_heap_stats.peak_allocated_bytes,
mem_heap_stats.peak_waste_bytes);
(uint64_t) mem_heap_stats.blocks,
(uint64_t) mem_heap_stats.allocated_blocks,
(uint64_t) mem_heap_stats.allocated_chunks,
(uint64_t) mem_heap_stats.allocated_bytes,
(uint64_t) mem_heap_stats.waste_bytes,
(uint64_t) mem_heap_stats.peak_allocated_blocks,
(uint64_t) mem_heap_stats.peak_allocated_chunks,
(uint64_t) mem_heap_stats.peak_allocated_bytes,
(uint64_t) mem_heap_stats.peak_waste_bytes);
}
#else /* MEM_STATS */
(void) dump_stats;