| Index: src/log.cc
|
| ===================================================================
|
| --- src/log.cc (revision 6904)
|
| +++ src/log.cc (working copy)
|
| @@ -735,6 +735,7 @@
|
| }
|
|
|
|
|
| +#ifdef ENABLE_LOGGING_AND_PROFILING
|
| static const char* ComputeMarker(Code* code) {
|
| switch (code->kind()) {
|
| case Code::FUNCTION: return code->optimizable() ? "~" : "";
|
| @@ -742,6 +743,7 @@
|
| default: return "";
|
| }
|
| }
|
| +#endif
|
|
|
|
|
| void Logger::CodeCreateEvent(LogEventsAndTags tag,
|
| @@ -1554,13 +1556,17 @@
|
|
|
|
|
| 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
|
| }
|
|
|
|
|
|
|