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

Unified Diff: content/child/web_process_memory_dump_impl.cc

Issue 1701813003: Heap Profiling for Oilpan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change base_name Created 4 years, 10 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 | third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_process_memory_dump_impl.cc
diff --git a/content/child/web_process_memory_dump_impl.cc b/content/child/web_process_memory_dump_impl.cc
index a95c9d7a583ef74d00aa98e209049e6430b0f936..c96c3f2b544807dac10db4a14b59783d01ff0d1b 100644
--- a/content/child/web_process_memory_dump_impl.cc
+++ b/content/child/web_process_memory_dump_impl.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include "base/memory/discardable_memory.h"
+#include "base/strings/stringprintf.h"
#include "base/trace_event/heap_profiler_heap_dump_writer.h"
#include "base/trace_event/process_memory_dump.h"
#include "base/trace_event/trace_event_argument.h"
@@ -177,7 +178,9 @@ void WebProcessMemoryDumpImpl::dumpHeapUsage(
session_state->stack_frame_deduplicator(),
session_state->type_name_deduplicator());
process_memory_dump_->AddHeapDump(allocator_name, heap_dump);
- overhead.DumpInto("tracing/heap_profiler", process_memory_dump_);
+ std::string base_name = base::StringPrintf("tracing/heap_profiler_%s",
+ allocator_name);
+ overhead.DumpInto(base_name.c_str(), process_memory_dump_);
}
} // namespace content
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698