From: yangguo@chromium.org Date: Fri, 6 Jun 2014 09:50:33 +0000 (+0000) Subject: Do not overwrite event logger when we explicitly have --log-timer-events. X-Git-Tag: upstream/4.7.83~8783 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59f8b6a9ce94205a4d09fe680b0e6b11c07fe72b;p=platform%2Fupstream%2Fv8.git Do not overwrite event logger when we explicitly have --log-timer-events. R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/318063002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21710 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/api.cc b/src/api.cc index ab13647..bfd1011 100644 --- a/src/api.cc +++ b/src/api.cc @@ -6649,6 +6649,8 @@ void Isolate::GetHeapStatistics(HeapStatistics* heap_statistics) { 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(this); isolate->set_event_logger(that); }