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

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: Moving to use session state Created 4 years, 8 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());
Primiano Tucci (use gerrit) 2016/04/22 14:18:29 yes fantastic :)
Maria 2016/04/25 18:37:23 Acknowledged.
pmd->AddHeapDump("malloc", std::move(heap_dump));
}
overhead.DumpInto("tracing/heap_profiler_malloc", pmd);

Powered by Google App Engine
This is Rietveld 408576698