Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index a0990efd76340ac7bdca7d9ef79fce23a6ba3df0..be65add4b2515be163dfbef4c6442204c120681a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -8584,6 +8584,7 @@ void Isolate::SetCreateHistogramFunction(CreateHistogramCallback callback) { |
isolate->stats_table()->SetCreateHistogramFunction(callback); |
isolate->InitializeLoggingAndCounters(); |
isolate->counters()->ResetHistograms(); |
+ isolate->counters()->InitializeHistograms(); |
} |