Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp

Issue 2045643002: [tracing] Fix light dump of partition alloc dump provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
index 11cf0ebac1c808546553bd8768f1e48d1ec962e6..ffd84069396e9947b61599846b82d80924034681 100644
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
+++ b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698