Index: gin/v8_isolate_memory_dump_provider.cc |
diff --git a/gin/v8_isolate_memory_dump_provider.cc b/gin/v8_isolate_memory_dump_provider.cc |
index 8c3ad6a9c0acbff03f85e34cb34db2c5b51f998a..add41dcab434ba9a80ebe508e0d4d0e516219244 100644 |
--- a/gin/v8_isolate_memory_dump_provider.cc |
+++ b/gin/v8_isolate_memory_dump_provider.cc |
@@ -131,9 +131,11 @@ void V8IsolateMemoryDumpProvider::DumpHeapStatistics( |
system_allocator_name); |
} |
- // If light dump is requested, then object statistics are not dumped |
- if (args.level_of_detail == base::trace_event::MemoryDumpLevelOfDetail::LIGHT) |
+ // Dump object statistics only for detailed dumps. |
+ if (args.level_of_detail != |
+ base::trace_event::MemoryDumpLevelOfDetail::DETAILED) { |
return; |
+ } |
// Dump statistics of the heap's live objects from last GC. |
// TODO(primiano): these should not be tracked in the same trace event as they |