Chromium Code Reviews| Index: src/isolate.cc |
| diff --git a/src/isolate.cc b/src/isolate.cc |
| index 2d45d78b0364e5da57b7858ebca9218ad49b3ca6..6e94aa88cd707cd19179abaed0d3471e110525cf 100644 |
| --- a/src/isolate.cc |
| +++ b/src/isolate.cc |
| @@ -2016,6 +2016,12 @@ bool Isolate::Init(Deserializer* des) { |
| bootstrapper_->Initialize(create_heap_objects); |
| builtins_.SetUp(this, create_heap_objects); |
| + if (!event_logger_ && FLAG_log_internal_timer_events) { |
|
Yang
2014/03/07 08:48:42
I don't think we need to check for !event_logger_.
|
| + set_event_logger(Logger::LogInternalEvents); |
| + } else { |
| + set_event_logger(Logger::EmptyLogInternalEvents); |
| + } |
| + |
| // Set default value if not yet set. |
| // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults |
| // once ResourceConstraints becomes an argument to the Isolate constructor. |