Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 804b76ceeb5dcdb25030c1c1112de4215223b346..c716c1ccd341cd15698b1ad938ed8021fb302941 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1211,7 +1211,7 @@ void Shell::Initialize() { |
// Set up counters |
if (i::StrLength(i::FLAG_map_counters) != 0) |
MapCounters(i::FLAG_map_counters); |
- if (i::FLAG_dump_counters) { |
+ if (i::FLAG_dump_counters || i::FLAG_track_gc_object_stats) { |
V8::SetCounterFunction(LookupCounter); |
V8::SetCreateHistogramFunction(CreateHistogram); |
V8::SetAddHistogramSampleFunction(AddHistogramSample); |