Disable flaky tests
[chromium-blink-merge.git] / ash / periodic_metrics_recorder.h
blob9b081ab2aa2d3c072dbbfa326440eda2e4ff08c3
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_PERIODIC_METRICS_RECORDER_H_
6 #define ASH_PERIODIC_METRICS_RECORDER_H_
8 #include "base/timer/timer.h"
10 namespace ash {
12 // Periodic Metrics Recorder provides a repeating callback (RecordMetrics)
13 // on a timer to allow recording of state data over time to the UMA records.
14 // Any additional states (in ash) that require monitoring can be added to
15 // this class.
16 class PeriodicMetricsRecorder {
17 public:
18 PeriodicMetricsRecorder();
19 ~PeriodicMetricsRecorder();
21 private:
22 void RecordMetrics();
24 base::RepeatingTimer<PeriodicMetricsRecorder> timer_;
27 } // namespace ash
29 #endif // ASH_PERIODIC_METRICS_RECORDER_H_