Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 2d45d78b0364e5da57b7858ebca9218ad49b3ca6..9dd2c5f12f0669ca94cf2c0783a2cc0751500da0 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 (FLAG_log_internal_timer_events) { |
+ 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. |