Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 004d5176b12802d4497c551b510479f52dedbcd2..722f6d378d06a1221fe7146e025491b6f5981977 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -27,6 +27,7 @@ |
#include "src/runtime-profiler.h" |
#include "src/source-position-table.h" |
#include "src/string-stream.h" |
+#include "src/tracing/tracing-category-observer.h" |
#include "src/vm-state-inl.h" |
namespace v8 { |
@@ -1283,7 +1284,8 @@ void Logger::RuntimeCallTimerEvent() { |
void Logger::TickEvent(v8::TickSample* sample, bool overflow) { |
if (!log_->IsEnabled() || !FLAG_prof_cpp) return; |
- if (FLAG_runtime_call_stats) { |
+ if (V8_UNLIKELY(FLAG_runtime_stats == |
+ v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) { |
RuntimeCallTimerEvent(); |
} |
Log::MessageBuilder msg(log_); |