Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index f0ca8de755fb42cec4703d836685013b92784437..31460b6ce54457250728859a15d64fd267cbb314 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -903,7 +903,7 @@ void Logger::ApiNamedSecurityCheck(Object* key) { |
void Logger::SharedLibraryEvent(const std::string& library_path, |
uintptr_t start, |
uintptr_t end) { |
- if (!log_->IsEnabled() || !FLAG_prof) return; |
+ if (!log_->IsEnabled() || !FLAG_prof_cpp) return; |
Log::MessageBuilder msg(log_); |
msg.Append("shared-library,\"%s\",0x%08" V8PRIxPTR ",0x%08" V8PRIxPTR, |
library_path.c_str(), start, end); |
@@ -1516,7 +1516,7 @@ void Logger::DebugEvent(const char* event_type, Vector<uint16_t> parameter) { |
void Logger::TickEvent(TickSample* sample, bool overflow) { |
- if (!log_->IsEnabled() || !FLAG_prof) return; |
+ if (!log_->IsEnabled() || !FLAG_prof_cpp) return; |
Log::MessageBuilder msg(log_); |
msg.Append("%s,", kLogEventsNames[TICK_EVENT]); |
msg.AppendAddress(sample->pc); |
@@ -1861,9 +1861,9 @@ bool Logger::SetUp(Isolate* isolate) { |
is_logging_ = true; |
} |
- if (FLAG_log_internal_timer_events || FLAG_prof) timer_.Start(); |
+ if (FLAG_log_internal_timer_events || FLAG_prof_cpp) timer_.Start(); |
- if (FLAG_prof) { |
+ if (FLAG_prof_cpp) { |
profiler_ = new Profiler(isolate); |
is_logging_ = true; |
profiler_->Engage(); |