Author: olehougaard Date: Tue Oct 28 02:53:52 2008 New Revision: 621 Modified: branches/bleeding_edge/src/log.cc branches/bleeding_edge/src/log.h
Log: Fixing profiling when using snapshot. Review URL: http://codereview.chromium.org/8655 Modified: branches/bleeding_edge/src/log.cc ============================================================================== --- branches/bleeding_edge/src/log.cc (original) +++ branches/bleeding_edge/src/log.cc Tue Oct 28 02:53:52 2008 @@ -259,7 +259,7 @@ void Logger::Preamble(const char* content) { #ifdef ENABLE_LOGGING_AND_PROFILING - if (logfile_ == NULL || !FLAG_log) return; + if (logfile_ == NULL || !FLAG_log_code) return; ScopedLock sl(mutex_); fprintf(logfile_, "%s", content); #endif Modified: branches/bleeding_edge/src/log.h ============================================================================== --- branches/bleeding_edge/src/log.h (original) +++ branches/bleeding_edge/src/log.h Tue Oct 28 02:53:52 2008 @@ -109,7 +109,8 @@ // Write a raw string to the log to be used as a preamble. // No check is made that the 'preamble' is actually at the beginning - // of the log. + // of the log. The preample is used to write code events saved in the + // snapshot. static void Preamble(const char* content); // ==== Events that are always logged. ==== --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---