| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index 3eede365b768ec51e42b1b5cf5180d3ea753265a..df1f07f159ed769639d3c52cb8657a9d5ffc0063 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -901,7 +901,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);
|
| @@ -1514,7 +1514,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);
|
| @@ -1859,9 +1859,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();
|
|
|