From 867d504395f406bceab3f813b72114f55efbc83a Mon Sep 17 00:00:00 2001 From: olehougaard Date: Tue, 28 Oct 2008 09:53:52 +0000 Subject: [PATCH] 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 --- src/log.cc | 2 +- src/log.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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. ==== -- 2.34.1