Index: src/runtime/runtime-date.cc |
diff --git a/src/runtime/runtime-date.cc b/src/runtime/runtime-date.cc |
index 65d8fc63ac76000c6661ade6e74967bde757fda4..4caf27de0f403c0fc8cd5471e4b340f886a881b9 100644 |
--- a/src/runtime/runtime-date.cc |
+++ b/src/runtime/runtime-date.cc |
@@ -70,7 +70,7 @@ RUNTIME_FUNCTION(Runtime_ThrowNotDateError) { |
RUNTIME_FUNCTION(Runtime_DateCurrentTime) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 0); |
- if (FLAG_log_timer_events) LOG(isolate, CurrentTimeEvent()); |
+ if (FLAG_log_timer_events || FLAG_prof_cpp) LOG(isolate, CurrentTimeEvent()); |
// According to ECMA-262, section 15.9.1, page 117, the precision of |
// the number in a Date object representing a particular instant in |