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

Unified Diff: ash/periodic_metrics_recorder.h

Issue 26373009: ash:Shelf - Added UMA stats for ShelfAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/periodic_metrics_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/periodic_metrics_recorder.h
diff --git a/ash/periodic_metrics_recorder.h b/ash/periodic_metrics_recorder.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fe75ad7482cc5af440532310bd9822190fc2176
--- /dev/null
+++ b/ash/periodic_metrics_recorder.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_PERIODIC_METRICS_RECORDER_H_
+#define ASH_PERIODIC_METRICS_RECORDER_H_
+
+#include "base/timer/timer.h"
+
+namespace ash {
+
+// Periodic Metrics Recorder provides a repeating callback (RecordMetrics)
+// on a timer to allow recording of state data over time to the UMA records.
+// Any additional states (in ash) that require monitoring can be added to
+// this class.
+class PeriodicMetricsRecorder {
+ public:
+ PeriodicMetricsRecorder();
+ ~PeriodicMetricsRecorder();
+
+ private:
+ void RecordMetrics();
+
+ base::RepeatingTimer<PeriodicMetricsRecorder> timer_;
+};
+
+} // namespace ash
+
+#endif // ASH_PERIODIC_METRICS_RECORDER_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/periodic_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698