Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(951)

Unified Diff: src/log.cc

Issue 1635005: Allow new CPU profiling subsystem to coexist nicely with the old one. (Closed)
Patch Set: Fix TickSampleEvent Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index 34c9633ef4b700a1bdcb24e894e1df43c5bb1a43..e1ebc87c65f6c2526373bda52edb5b3004c20304 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -181,8 +181,6 @@ void StackTracer::Trace(TickSample* sample) {
// Ticker used to provide ticks to the profiler and the sliding state
// window.
//
-#ifndef ENABLE_CPP_PROFILES_PROCESSOR
-
class Ticker: public Sampler {
public:
explicit Ticker(int interval):
@@ -224,8 +222,6 @@ class Ticker: public Sampler {
Profiler* profiler_;
};
-#endif // ENABLE_CPP_PROFILES_PROCESSOR
-
//
// SlidingStateWindow implementation.
@@ -1508,11 +1504,6 @@ bool Logger::Setup() {
}
}
-#ifdef ENABLE_CPP_PROFILES_PROCESSOR
- // Disable old logging, as we are using the same '--prof' flag.
- logging_nesting_ = 0;
-#endif
-
LogMessageBuilder::set_write_failure_handler(StopLoggingAndProfiling);
return true;
« src/cpu-profiler-inl.h ('K') | « src/log.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698