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

Unified Diff: third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp

Issue 2650863003: [tracing] Switch to new heap dump format. (Closed)
Patch Set: Rebase Created 3 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
Index: third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
diff --git a/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp b/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
index 59269a23ddb36111e0d587e768524599fbfdc7fb..ff2bb460a7bbc42cf6ced8f3f9a68e61b78f1e35 100644
--- a/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
+++ b/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
@@ -135,17 +135,7 @@ bool PartitionAllocMemoryDumpProvider::OnMemoryDump(
MemoryDumpLevelOfDetail level_of_detail = args.level_of_detail;
if (allocation_register_.is_enabled()) {
- // Overhead should always be reported, regardless of light vs. heavy.
- base::trace_event::TraceEventMemoryOverhead overhead;
- std::unordered_map<base::trace_event::AllocationContext,
- base::trace_event::AllocationMetrics>
- metrics_by_context;
- // Dump only the overhead estimation in non-detailed dumps.
- if (level_of_detail == MemoryDumpLevelOfDetail::DETAILED) {
- allocation_register_.UpdateAndReturnsMetrics(metrics_by_context);
- }
- allocation_register_.EstimateTraceMemoryOverhead(&overhead);
- memory_dump->DumpHeapUsage(metrics_by_context, overhead, "partition_alloc");
+ memory_dump->DumpHeapUsage(allocation_register_, kPartitionAllocDumpName);
}
PartitionStatsDumperImpl partition_stats_dumper(memory_dump, level_of_detail);
« no previous file with comments | « base/trace_event/trace_event_memory_overhead.cc ('k') | third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698