| 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 96d238d047a81ce11b9f0bd81e3d203f50d563e4..8fba841a3df956e429679af60a93ed5b878a2e42 100644
|
| --- a/base/trace_event/malloc_dump_provider.cc
|
| +++ b/base/trace_event/malloc_dump_provider.cc
|
| @@ -249,12 +249,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.
|
|
|