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

Unified Diff: mojo/edk/system/handle_table.cc

Issue 2925663004: Change format of data emitted in MemoryDumpProvider. (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/handle_table.cc
diff --git a/mojo/edk/system/handle_table.cc b/mojo/edk/system/handle_table.cc
index 03b6d0b0b527ec591e5693304b72d2b4a641f05b..d4793bb1855257f93b7ca5fa7385a607eb684b8a 100644
--- a/mojo/edk/system/handle_table.cc
+++ b/mojo/edk/system/handle_table.cc
@@ -181,12 +181,14 @@ bool HandleTable::OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
}
}
- base::trace_event::MemoryAllocatorDump* outer_dump =
- pmd->CreateAllocatorDump("mojo");
+ pmd->CreateAllocatorDump("mojo");
for (const auto& entry : handle_count) {
- outer_dump->AddScalar(GetNameForDispatcherType(entry.first),
- base::trace_event::MemoryAllocatorDump::kUnitsObjects,
- entry.second);
+ base::trace_event::MemoryAllocatorDump* inner_dump =
+ pmd->CreateAllocatorDump(std::string("mojo/") +
+ GetNameForDispatcherType(entry.first));
+ inner_dump->AddScalar(
+ base::trace_event::MemoryAllocatorDump::kNameObjectCount,
+ base::trace_event::MemoryAllocatorDump::kUnitsObjects, entry.second);
}
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698