Commit 867d5043 authored by olehougaard's avatar olehougaard

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
parent 66a1567b
...@@ -259,7 +259,7 @@ SlidingStateWindow* Logger::sliding_state_window_ = NULL; ...@@ -259,7 +259,7 @@ SlidingStateWindow* Logger::sliding_state_window_ = NULL;
void Logger::Preamble(const char* content) { void Logger::Preamble(const char* content) {
#ifdef ENABLE_LOGGING_AND_PROFILING #ifdef ENABLE_LOGGING_AND_PROFILING
if (logfile_ == NULL || !FLAG_log) return; if (logfile_ == NULL || !FLAG_log_code) return;
ScopedLock sl(mutex_); ScopedLock sl(mutex_);
fprintf(logfile_, "%s", content); fprintf(logfile_, "%s", content);
#endif #endif
......
...@@ -109,7 +109,8 @@ class Logger { ...@@ -109,7 +109,8 @@ class Logger {
// Write a raw string to the log to be used as a preamble. // 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 // 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); static void Preamble(const char* content);
// ==== Events that are always logged. ==== // ==== Events that are always logged. ====
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment