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

Unified Diff: src/platform.h

Issue 113762: Implement resource-saving mode of Profiler. (Closed)
Patch Set: Patch set 2 was screwed, this is the good one. Created 11 years, 7 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/platform.h
diff --git a/src/platform.h b/src/platform.h
index e23abfc375de08380991ea1dee918b45298f3bf2..3c2318f64e7f1d61316e1f702c24074426ab6ad7 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -518,10 +518,11 @@ class Sampler {
// Is the sampler used for profiling.
inline bool IsProfiling() { return profiling_; }
- class PlatformData;
- protected:
+ // Whether the sampler is running (that is, consumes resources).
inline bool IsActive() { return active_; }
+ class PlatformData;
+
private:
int interval_;
bool profiling_;

Powered by Google App Engine
This is Rietveld 408576698