From 4269973acd5db49f8b2a1ab034d435555d6e792a Mon Sep 17 00:00:00 2001 From: "kasperl@chromium.org" Date: Fri, 3 Oct 2008 10:51:08 +0000 Subject: [PATCH] Log ticks when the prof flag is set. Avoid letting --prof imply --log. Review URL: http://codereview.chromium.org/6444 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@423 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/log.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/log.cc b/src/log.cc index af8ac53..72eb455 100644 --- a/src/log.cc +++ b/src/log.cc @@ -653,7 +653,7 @@ void Logger::DebugEvent(const char* event_type, Vector parameter) { #ifdef ENABLE_LOGGING_AND_PROFILING void Logger::TickEvent(TickSample* sample, bool overflow) { - if (logfile_ == NULL || !FLAG_log) return; + if (logfile_ == NULL || !FLAG_prof) return; ScopedLock sl(mutex_); fprintf(logfile_, "tick,0x%x,0x%x,%d", sample->pc, sample->sp, static_cast(sample->state)); @@ -677,7 +677,6 @@ bool Logger::Setup() { // --prof implies --log-code. if (FLAG_prof) FLAG_log_code = true; - if (FLAG_log_code) FLAG_log = true; bool open_log_file = FLAG_log || FLAG_log_api || FLAG_log_code || FLAG_log_gc || FLAG_log_handles || FLAG_log_suspect -- 2.7.4