Index: src/log.cc |
=================================================================== |
--- src/log.cc (revision 3720) |
+++ src/log.cc (working copy) |
@@ -904,10 +904,10 @@ |
} |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
void Logger::MoveEventInternal(LogEventsAndTags event, |
Address from, |
Address to) { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
static Address prev_to_ = NULL; |
if (!Log::IsEnabled() || !FLAG_log_code) return; |
LogMessageBuilder msg; |
@@ -922,12 +922,12 @@ |
} |
msg.Append('\n'); |
msg.WriteToLogFile(); |
+} |
#endif |
-} |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
if (!Log::IsEnabled() || !FLAG_log_code) return; |
LogMessageBuilder msg; |
msg.Append("%s,", log_events_[event]); |
@@ -938,8 +938,8 @@ |
} |
msg.Append('\n'); |
msg.WriteToLogFile(); |
+} |
#endif |
-} |
void Logger::ResourceEvent(const char* name, const char* tag) { |