Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index cafe546191bba737b06692b79d23808ec40feee5..995b2628becda2e6e9ead6f69e46c4563636535e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -42,6 +42,7 @@ |
#include "src/runtime-profiler.h" |
#include "src/simulator.h" |
#include "src/snapshot/deserializer.h" |
+#include "src/tracing/tracing-category-observer.h" |
#include "src/v8.h" |
#include "src/version.h" |
#include "src/vm-state-inl.h" |
@@ -2737,8 +2738,8 @@ void Isolate::DumpAndResetCompilationStats() { |
turbo_statistics_ = nullptr; |
delete hstatistics_; |
hstatistics_ = nullptr; |
- if (FLAG_runtime_call_stats && |
- !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED()) { |
+ if (V8_UNLIKELY(FLAG_runtime_stats == |
+ v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) { |
OFStream os(stdout); |
counters()->runtime_call_stats()->Print(os); |
counters()->runtime_call_stats()->Reset(); |