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

Side by Side Diff: ash/metrics/user_metrics_recorder.h

Issue 1133123003: Added metrics to track the time between task switches done via the shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added ASH_EXPORT to TaskSwitchTimeTracker. Created 5 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 unified diff | Download patch
« no previous file with comments | « ash/metrics/task_switch_time_tracker_unittest.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_METRICS_USER_METRICS_RECORDER_H_ 5 #ifndef ASH_METRICS_USER_METRICS_RECORDER_H_
6 #define ASH_METRICS_USER_METRICS_RECORDER_H_ 6 #define ASH_METRICS_USER_METRICS_RECORDER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/metrics/task_switch_metrics_recorder.h"
9 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
10 11
11 namespace ash { 12 namespace ash {
12 13
13 namespace test { 14 namespace test {
14 class UserMetricsRecorderTestAPI; 15 class UserMetricsRecorderTestAPI;
15 } 16 }
16 17
17 enum UserMetricsAction { 18 enum UserMetricsAction {
18 UMA_ACCEL_EXIT_FIRST_Q, 19 UMA_ACCEL_EXIT_FIRST_Q,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Returns true if the user's session is active and they are in a desktop 162 // Returns true if the user's session is active and they are in a desktop
162 // environment. 163 // environment.
163 bool IsUserInActiveDesktopEnvironment() const; 164 bool IsUserInActiveDesktopEnvironment() const;
164 165
165 // Starts the |timer_| and binds it to |RecordPeriodicMetrics|. 166 // Starts the |timer_| and binds it to |RecordPeriodicMetrics|.
166 void StartTimer(); 167 void StartTimer();
167 168
168 // The periodic timer that triggers metrics to be recorded. 169 // The periodic timer that triggers metrics to be recorded.
169 base::RepeatingTimer<UserMetricsRecorder> timer_; 170 base::RepeatingTimer<UserMetricsRecorder> timer_;
170 171
172 TaskSwitchMetricsRecorder task_switch_metrics_recorder_;
173
171 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder); 174 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder);
172 }; 175 };
173 176
174 } // namespace ash 177 } // namespace ash
175 178
176 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_ 179 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_
OLDNEW
« no previous file with comments | « ash/metrics/task_switch_time_tracker_unittest.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698