| 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 stability data upload were deferred. |
| 90 const char kStabilityDeferredCount[] = |
| 91 "user_experience_metrics.stability.deferred_count"; |
| 92 |
| 93 // Number of times stability data was discarded. This is accumulated since the |
| 94 // last report, even across versions. |
| 95 const char kStabilityDiscardCount[] = |
| 96 "user_experience_metrics.stability.discard_count"; |
| 97 |
| 89 // Number of times the browser has been run under a debugger. | 98 // Number of times the browser has been run under a debugger. |
| 90 const char kStabilityDebuggerPresent[] = | 99 const char kStabilityDebuggerPresent[] = |
| 91 "user_experience_metrics.stability.debugger_present"; | 100 "user_experience_metrics.stability.debugger_present"; |
| 92 | 101 |
| 93 // Number of times the browser has not been run under a debugger. | 102 // Number of times the browser has not been run under a debugger. |
| 94 const char kStabilityDebuggerNotPresent[] = | 103 const char kStabilityDebuggerNotPresent[] = |
| 95 "user_experience_metrics.stability.debugger_not_present"; | 104 "user_experience_metrics.stability.debugger_not_present"; |
| 96 | 105 |
| 97 // An enum value to indicate the execution phase the browser was in. | 106 // An enum value to indicate the execution phase the browser was in. |
| 98 const char kStabilityExecutionPhase[] = | 107 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 | 180 // Build time, in seconds since an epoch, which is used to assure that stability |
| 172 // metrics reported reflect stability of the same build. | 181 // metrics reported reflect stability of the same build. |
| 173 const char kStabilityStatsBuildTime[] = | 182 const char kStabilityStatsBuildTime[] = |
| 174 "user_experience_metrics.stability.stats_buildtime"; | 183 "user_experience_metrics.stability.stats_buildtime"; |
| 175 | 184 |
| 176 // Version string of previous run, which is used to assure that stability | 185 // Version string of previous run, which is used to assure that stability |
| 177 // metrics reported under current version reflect stability of the same version. | 186 // metrics reported under current version reflect stability of the same version. |
| 178 const char kStabilityStatsVersion[] = | 187 const char kStabilityStatsVersion[] = |
| 179 "user_experience_metrics.stability.stats_version"; | 188 "user_experience_metrics.stability.stats_version"; |
| 180 | 189 |
| 190 // The number of times the prefs version value did not match the serialized |
| 191 // system profile version value. |
| 192 const char kStabilityVersionMismatchCount[] = |
| 193 "user_experience_metrics.stability.version_mismatch_count"; |
| 194 |
| 181 // The keys below are strictly increasing counters over the lifetime of | 195 // The keys below are strictly increasing counters over the lifetime of |
| 182 // a chrome installation. They are (optionally) sent up to the uninstall | 196 // a chrome installation. They are (optionally) sent up to the uninstall |
| 183 // survey in the event of uninstallation. | 197 // survey in the event of uninstallation. |
| 184 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; | 198 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; |
| 185 const char kUninstallMetricsPageLoadCount[] = | 199 const char kUninstallMetricsPageLoadCount[] = |
| 186 "uninstall_metrics.page_load_count"; | 200 "uninstall_metrics.page_load_count"; |
| 187 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; | 201 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; |
| 188 | 202 |
| 189 // Dictionary for measuring cellular data used by UMA service during last 7 | 203 // Dictionary for measuring cellular data used by UMA service during last 7 |
| 190 // days. | 204 // days. |
| 191 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; | 205 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; |
| 192 | 206 |
| 193 // Dictionary for measuring cellular data used by user including chrome services | 207 // Dictionary for measuring cellular data used by user including chrome services |
| 194 // per day. | 208 // per day. |
| 195 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; | 209 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; |
| 196 | 210 |
| 197 } // namespace prefs | 211 } // namespace prefs |
| 198 } // namespace metrics | 212 } // namespace metrics |
| OLD | NEW |