Fixing profiling when using snapshot.
authorolehougaard <olehougaard@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 09:53:52 +0000 (09:53 +0000)
committerolehougaard <olehougaard@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 09:53:52 +0000 (09:53 +0000)
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
src/log.h

index 796b98e..25fa5e5 100644 (file)
@@ -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
index c950b86..1fd2b75 100644 (file)
--- 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. ====