Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 84d23e4315a8d29008515aae81525d60cdb06f0a..7d31029a96da23db975c40909390806eefa33d86 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1908,7 +1908,8 @@ bool Isolate::Init(Deserializer* des) { |
// If we are deserializing, log non-function code objects and compiled |
// functions found in the snapshot. |
- if (create_heap_objects && (FLAG_log_code || FLAG_ll_prof)) { |
+ if (create_heap_objects && |
+ (FLAG_log_code || FLAG_ll_prof || logger_->is_logging_code_events())) { |
HandleScope scope; |
LOG(this, LogCodeObjects()); |
LOG(this, LogCompiledFunctions()); |