| 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;
|
|
|