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

Unified Diff: src/api.cc

Issue 186163002: Add support for allowing an embedder to get the V8 profile timer event logs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamings Created 6 years, 10 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
« no previous file with comments | « include/v8.h ('k') | src/counters.cc » ('j') | src/log.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 2c7db3be1656f10d475dd8e1de71a89ed374cdd6..ebaac1e9942f0bc2ebbea53ce4428cba6fe20ee9 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -401,6 +401,12 @@ void V8::SetFatalErrorHandler(FatalErrorCallback that) {
}
+void V8::SetEventLogger(LogEventCallback that) {
+ i::Isolate* isolate = EnterIsolateIfNeeded();
+ isolate->set_event_logger(that);
Sven Panne 2014/03/05 07:47:29 This line is a *very* strong hint that SetEventLog
Yang 2014/03/05 08:18:31 I agree. I would also suggest adding it to V8::Iso
fmeawad 2014/03/06 00:24:46 Done.
+}
+
+
void V8::SetAllowCodeGenerationFromStringsCallback(
AllowCodeGenerationFromStringsCallback callback) {
i::Isolate* isolate = EnterIsolateIfNeeded();
« no previous file with comments | « include/v8.h ('k') | src/counters.cc » ('j') | src/log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698