Commit 496beec7 authored by ssid's avatar ssid Committed by Commit bot

[tracing] Fix light dump of partition alloc dump provider

Partition Alloc dump provider dumps bucket stats for the case of
DirectMap objects even for ligth dumps. This CL fixes this issue.

BUG=613198

Review-Url: https://codereview.chromium.org/2045643002
Cr-Commit-Position: refs/heads/master@{#398206}
parent e4ebea86
......@@ -1360,17 +1360,20 @@ void partitionDumpStatsGeneric(PartitionRootGeneric* partition, const char* part
size_t directMappedAllocationsTotalSize = 0;
for (size_t i = 0; i < numDirectMappedAllocations; ++i) {
uint32_t size = directMapLengths[i];
directMappedAllocationsTotalSize += size;
if (isLightDump)
continue;
PartitionBucketMemoryStats stats;
memset(&stats, '\0', sizeof(stats));
stats.isValid = true;
stats.isDirectMap = true;
stats.numFullPages = 1;
uint32_t size = directMapLengths[i];
stats.allocatedPageSize = size;
stats.bucketSlotSize = size;
stats.activeBytes = size;
stats.residentBytes = size;
directMappedAllocationsTotalSize += size;
partitionStatsDumper->partitionsDumpBucketStats(partitionName, &stats);
}
partitionStats.totalResidentBytes += directMappedAllocationsTotalSize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment