Only show bytes that were actually used
This commit is contained in:
@@ -347,14 +347,7 @@ void ArenaAllocator::debug_dump(std::ostream &out, bool show_memory_map,
|
||||
size_t block_num = blocks.size() - i;
|
||||
|
||||
// Calculate used bytes in this specific block
|
||||
size_t block_used;
|
||||
if (i == 0) {
|
||||
// Current block - use offset
|
||||
block_used = current_block_->offset;
|
||||
} else {
|
||||
// Previous blocks are fully used
|
||||
block_used = b->size;
|
||||
}
|
||||
size_t block_used = b->offset;
|
||||
|
||||
if (block_used == 0) {
|
||||
out << "Block #" << block_num << ": No content (empty)" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user