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

Unified Diff: src/log-inl.h

Issue 988893003: Implement tracing interface for v8 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove v8-tracing in favor of v8-platform, make passing Isolate* explicit, still WIP Created 5 years, 3 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-inl.h
diff --git a/src/log-inl.h b/src/log-inl.h
index 82f5e7d7dce6b162379e7d2720fea7f85730b588..e67dbd9b3f846c0a24306eed1eac76b760937ac8 100644
--- a/src/log-inl.h
+++ b/src/log-inl.h
@@ -8,6 +8,7 @@
#include "src/log.h"
#include "src/isolate.h"
#include "src/objects-inl.h"
+#include "src/tracing/trace-event.h"
namespace v8 {
namespace internal {
@@ -35,6 +36,11 @@ void Logger::CallEventLogger(Isolate* isolate, const char* name, StartEnd se,
LOG(isolate, TimerEvent(se, name));
} else if (expose_to_api) {
isolate->event_logger()(name, se);
+ if (se == START) {
+ TRACE_EVENT_BEGIN_WITH_CONTEXT_ID0("v8", name, (uint64_t)isolate);
+ } else {
+ TRACE_EVENT_END_WITH_CONTEXT_ID0("v8", name, (uint64_t)isolate);
noordhuis 2015/10/07 18:31:54 Style: use static_cast/reinterpret_cast here. Sho
fmeawad 2015/11/19 02:00:47 Done.
+ }
}
}
}

Powered by Google App Engine
This is Rietveld 408576698