From: olehougaard Date: Tue, 28 Oct 2008 09:53:52 +0000 (+0000) Subject: Fixing profiling when using snapshot. X-Git-Tag: upstream/4.7.83~25098 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=867d504395f406bceab3f813b72114f55efbc83a;p=platform%2Fupstream%2Fv8.git Fixing profiling when using snapshot. Review URL: http://codereview.chromium.org/8655 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@621 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/log.cc b/src/log.cc index 796b98ed3..25fa5e59a 100644 --- a/src/log.cc +++ b/src/log.cc @@ -259,7 +259,7 @@ SlidingStateWindow* Logger::sliding_state_window_ = NULL; 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 diff --git a/src/log.h b/src/log.h index c950b8658..1fd2b759d 100644 --- a/src/log.h +++ b/src/log.h @@ -109,7 +109,8 @@ class Logger { // 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. ====