Revision: 21710
Author:   [email protected]
Date:     Fri Jun  6 09:50:33 2014 UTC
Log: Do not overwrite event logger when we explicitly have --log-timer-events.

[email protected]

Review URL: https://codereview.chromium.org/318063002
http://code.google.com/p/v8/source/detail?r=21710

Modified:
 /branches/bleeding_edge/src/api.cc

=======================================
--- /branches/bleeding_edge/src/api.cc  Thu Jun  5 13:06:21 2014 UTC
+++ /branches/bleeding_edge/src/api.cc  Fri Jun  6 09:50:33 2014 UTC
@@ -6649,6 +6649,8 @@


 void Isolate::SetEventLogger(LogEventCallback that) {
+  // Do not overwrite the event logger if we want to log explicitly.
+  if (i::FLAG_log_timer_events) return;
   i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
   isolate->set_event_logger(that);
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to