| 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);
|
|
|