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
This commit is contained in:
parent
35933119fe
commit
59f8b6a9ce
@ -6649,6 +6649,8 @@ void Isolate::GetHeapStatistics(HeapStatistics* heap_statistics) {
|
|||||||
|
|
||||||
|
|
||||||
void Isolate::SetEventLogger(LogEventCallback that) {
|
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);
|
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
|
||||||
isolate->set_event_logger(that);
|
isolate->set_event_logger(that);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user