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

Unified Diff: base/trace_event/malloc_dump_provider.cc

Issue 1911643002: Add configurable limit to allocations in heap profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace change Created 4 years, 7 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: base/trace_event/malloc_dump_provider.cc
diff --git a/base/trace_event/malloc_dump_provider.cc b/base/trace_event/malloc_dump_provider.cc
index be6efc866a363810bc87057b180624b61c1fabd1..eabe50ee216205740fb5be052be89febecc502fa 100644
--- a/base/trace_event/malloc_dump_provider.cc
+++ b/base/trace_event/malloc_dump_provider.cc
@@ -195,8 +195,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args,
if (!metrics_by_context.empty()) {
std::unique_ptr<TracedValue> heap_dump = ExportHeapDump(
- metrics_by_context, pmd->session_state()->stack_frame_deduplicator(),
- pmd->session_state()->type_name_deduplicator());
+ metrics_by_context, *pmd->session_state());
pmd->AddHeapDump("malloc", std::move(heap_dump));
}
overhead.DumpInto("tracing/heap_profiler_malloc", pmd);
« no previous file with comments | « base/trace_event/heap_profiler_heap_dump_writer_unittest.cc ('k') | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698