Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index b8e3f05a47350ba0c71faffa6e2ac82103146eae..db9ff7a1f1e550d7bc357bdada508e2e7be4b88e 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -709,6 +709,7 @@ void Logger::SetterCallbackEvent(String* name, Address entry_point) { |
} |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
static const char* ComputeMarker(Code* code) { |
switch (code->kind()) { |
case Code::FUNCTION: return code->optimizable() ? "~" : ""; |
@@ -716,6 +717,7 @@ static const char* ComputeMarker(Code* code) { |
default: return ""; |
} |
} |
+#endif |
void Logger::CodeCreateEvent(LogEventsAndTags tag, |
@@ -1577,13 +1579,17 @@ bool Logger::Setup() { |
void Logger::EnsureTickerStarted() { |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
ASSERT(ticker_ != NULL); |
if (!ticker_->IsActive()) ticker_->Start(); |
+#endif |
} |
void Logger::EnsureTickerStopped() { |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
if (ticker_ != NULL && ticker_->IsActive()) ticker_->Stop(); |
+#endif |
} |