| 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 4a5d1f177aa91d4d1c49aec6306cca00a83ef17f..d7732aba664ebf38532d247c562c1df98ebe62e2 100644
|
| --- a/base/trace_event/malloc_dump_provider.cc
|
| +++ b/base/trace_event/malloc_dump_provider.cc
|
| @@ -250,12 +250,12 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args,
|
| MemoryAllocatorDump::kUnitsBytes,
|
| allocated_objects_size);
|
| if (allocated_objects_count != 0) {
|
| - inner_dump->AddScalar(MemoryAllocatorDump::kNameSize,
|
| + inner_dump->AddScalar(MemoryAllocatorDump::kNameObjectCount,
|
| MemoryAllocatorDump::kUnitsObjects,
|
| allocated_objects_count);
|
| }
|
|
|
| - if (resident_size - allocated_objects_size > 0) {
|
| + if (resident_size > allocated_objects_size) {
|
| // Explicitly specify why is extra memory resident. In tcmalloc it accounts
|
| // for free lists and caches. In mac and ios it accounts for the
|
| // fragmentation and metadata.
|
|
|