Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: src/log.cc

Issue 2460973003: [Tracing] Use TracingCategoryObserver in runtime statistics (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index 004d5176b12802d4497c551b510479f52dedbcd2..5fdb63aaa829c78f95394414e840b99a441807f1 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -8,6 +8,7 @@
#include <memory>
#include <sstream>
+#include "include/v8-tracing.h"
#include "src/bailout-reason.h"
#include "src/base/platform/platform.h"
#include "src/bootstrapper.h"
@@ -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 (!(FLAG_runtime_stats ^
+ v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) {
Camillo Bruni 2016/10/31 09:39:41 same here.
lpy 2016/10/31 17:28:02 Done.
RuntimeCallTimerEvent();
}
Log::MessageBuilder msg(log_);
« src/isolate.cc ('K') | « src/isolate.cc ('k') | src/tracing/trace-event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698