OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/metrics/metrics_pref_names.h" | 5 #include "components/metrics/metrics_pref_names.h" |
6 | 6 |
7 namespace metrics { | 7 namespace metrics { |
8 namespace prefs { | 8 namespace prefs { |
9 | 9 |
10 // Set once, to the current epoch time, on the first run of chrome on this | 10 // Set once, to the current epoch time, on the first run of chrome on this |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Total number of child process crashes (other than renderer / extension | 79 // Total number of child process crashes (other than renderer / extension |
80 // renderer ones, and plugin children, which are counted separately) since the | 80 // renderer ones, and plugin children, which are counted separately) since the |
81 // last report. | 81 // last report. |
82 const char kStabilityChildProcessCrashCount[] = | 82 const char kStabilityChildProcessCrashCount[] = |
83 "user_experience_metrics.stability.child_process_crash_count"; | 83 "user_experience_metrics.stability.child_process_crash_count"; |
84 | 84 |
85 // Number of times the application exited uncleanly since the last report. | 85 // Number of times the application exited uncleanly since the last report. |
86 const char kStabilityCrashCount[] = | 86 const char kStabilityCrashCount[] = |
87 "user_experience_metrics.stability.crash_count"; | 87 "user_experience_metrics.stability.crash_count"; |
88 | 88 |
| 89 // Number of times the initial stability log upload was deferred to the next |
| 90 // startup. |
| 91 const char kStabilityDeferredCount[] = |
| 92 "user_experience_metrics.stability.deferred_count"; |
| 93 |
| 94 // Number of times stability data was discarded. This is accumulated since the |
| 95 // last report, even across versions. |
| 96 const char kStabilityDiscardCount[] = |
| 97 "user_experience_metrics.stability.discard_count"; |
| 98 |
89 // Number of times the browser has been run under a debugger. | 99 // Number of times the browser has been run under a debugger. |
90 const char kStabilityDebuggerPresent[] = | 100 const char kStabilityDebuggerPresent[] = |
91 "user_experience_metrics.stability.debugger_present"; | 101 "user_experience_metrics.stability.debugger_present"; |
92 | 102 |
93 // Number of times the browser has not been run under a debugger. | 103 // Number of times the browser has not been run under a debugger. |
94 const char kStabilityDebuggerNotPresent[] = | 104 const char kStabilityDebuggerNotPresent[] = |
95 "user_experience_metrics.stability.debugger_not_present"; | 105 "user_experience_metrics.stability.debugger_not_present"; |
96 | 106 |
97 // An enum value to indicate the execution phase the browser was in. | 107 // An enum value to indicate the execution phase the browser was in. |
98 const char kStabilityExecutionPhase[] = | 108 const char kStabilityExecutionPhase[] = |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Build time, in seconds since an epoch, which is used to assure that stability | 181 // Build time, in seconds since an epoch, which is used to assure that stability |
172 // metrics reported reflect stability of the same build. | 182 // metrics reported reflect stability of the same build. |
173 const char kStabilityStatsBuildTime[] = | 183 const char kStabilityStatsBuildTime[] = |
174 "user_experience_metrics.stability.stats_buildtime"; | 184 "user_experience_metrics.stability.stats_buildtime"; |
175 | 185 |
176 // Version string of previous run, which is used to assure that stability | 186 // Version string of previous run, which is used to assure that stability |
177 // metrics reported under current version reflect stability of the same version. | 187 // metrics reported under current version reflect stability of the same version. |
178 const char kStabilityStatsVersion[] = | 188 const char kStabilityStatsVersion[] = |
179 "user_experience_metrics.stability.stats_version"; | 189 "user_experience_metrics.stability.stats_version"; |
180 | 190 |
| 191 // Number of times the version number stored in prefs did not match the |
| 192 // serialized system profile version number. |
| 193 const char kStabilityVersionMismatchCount[] = |
| 194 "user_experience_metrics.stability.version_mismatch_count"; |
| 195 |
181 // The keys below are strictly increasing counters over the lifetime of | 196 // The keys below are strictly increasing counters over the lifetime of |
182 // a chrome installation. They are (optionally) sent up to the uninstall | 197 // a chrome installation. They are (optionally) sent up to the uninstall |
183 // survey in the event of uninstallation. | 198 // survey in the event of uninstallation. |
184 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; | 199 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; |
185 const char kUninstallMetricsPageLoadCount[] = | 200 const char kUninstallMetricsPageLoadCount[] = |
186 "uninstall_metrics.page_load_count"; | 201 "uninstall_metrics.page_load_count"; |
187 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; | 202 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; |
188 | 203 |
189 // Dictionary for measuring cellular data used by UMA service during last 7 | 204 // Dictionary for measuring cellular data used by UMA service during last 7 |
190 // days. | 205 // days. |
191 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; | 206 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; |
192 | 207 |
193 // Dictionary for measuring cellular data used by user including chrome services | 208 // Dictionary for measuring cellular data used by user including chrome services |
194 // per day. | 209 // per day. |
195 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; | 210 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; |
196 | 211 |
197 } // namespace prefs | 212 } // namespace prefs |
198 } // namespace metrics | 213 } // namespace metrics |
OLD | NEW |