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

Unified Diff: base/trace_event/malloc_dump_provider.cc

Issue 1095003002: [tracing] Simplify design of MemoryAllocatorDump (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@matr_2_sess
Patch Set: Rebase Created 5 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
« no previous file with comments | « base/trace_event/BUILD.gn ('k') | base/trace_event/memory_allocator_attributes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 671ac65364b7bc11e384b50c7a76161b44a91d1a..94ef5ed19ddb304bec0134310df99f6120d4158e 100644
--- a/base/trace_event/malloc_dump_provider.cc
+++ b/base/trace_event/malloc_dump_provider.cc
@@ -14,7 +14,6 @@ namespace trace_event {
namespace {
const char kDumperFriendlyName[] = "Malloc";
-const char kDumperName[] = "malloc";
} // namespace
@@ -37,7 +36,8 @@ bool MallocDumpProvider::DumpInto(ProcessMemoryDump* pmd) {
DCHECK(info.uordblks > 0);
DCHECK_GE(info.arena + info.hblkhd, info.uordblks);
- MemoryAllocatorDump* dump = pmd->CreateAllocatorDump(kDumperName);
+ MemoryAllocatorDump* dump =
+ pmd->CreateAllocatorDump("malloc", MemoryAllocatorDump::kRootHeap);
if (!dump)
return false;
« no previous file with comments | « base/trace_event/BUILD.gn ('k') | base/trace_event/memory_allocator_attributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698