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

Side by Side Diff: components/metrics/metrics_pref_names.cc

Issue 1366643002: Extract guts of ChromeStabilityMetricsProvider into helper class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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 | « components/metrics/metrics_pref_names.h ('k') | components/metrics/stability_metrics_helper.h » ('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 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const char kMetricsSessionID[] = "user_experience_metrics.session_id"; 52 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
53 53
54 // Number of times the browser has been able to register crash reporting. 54 // Number of times the browser has been able to register crash reporting.
55 const char kStabilityBreakpadRegistrationSuccess[] = 55 const char kStabilityBreakpadRegistrationSuccess[] =
56 "user_experience_metrics.stability.breakpad_registration_ok"; 56 "user_experience_metrics.stability.breakpad_registration_ok";
57 57
58 // Number of times the browser has failed to register crash reporting. 58 // Number of times the browser has failed to register crash reporting.
59 const char kStabilityBreakpadRegistrationFail[] = 59 const char kStabilityBreakpadRegistrationFail[] =
60 "user_experience_metrics.stability.breakpad_registration_fail"; 60 "user_experience_metrics.stability.breakpad_registration_fail";
61 61
62 // Total number of child process crashes (other than renderer / extension
63 // renderer ones, and plugin children, which are counted separately) since the
64 // last report.
65 const char kStabilityChildProcessCrashCount[] =
66 "user_experience_metrics.stability.child_process_crash_count";
67
62 // Number of times the application exited uncleanly since the last report. 68 // Number of times the application exited uncleanly since the last report.
63 const char kStabilityCrashCount[] = 69 const char kStabilityCrashCount[] =
64 "user_experience_metrics.stability.crash_count"; 70 "user_experience_metrics.stability.crash_count";
65 71
66 // Number of times the browser has been run under a debugger. 72 // Number of times the browser has been run under a debugger.
67 const char kStabilityDebuggerPresent[] = 73 const char kStabilityDebuggerPresent[] =
68 "user_experience_metrics.stability.debugger_present"; 74 "user_experience_metrics.stability.debugger_present";
69 75
70 // Number of times the browser has not been run under a debugger. 76 // Number of times the browser has not been run under a debugger.
71 const char kStabilityDebuggerNotPresent[] = 77 const char kStabilityDebuggerNotPresent[] =
72 "user_experience_metrics.stability.debugger_not_present"; 78 "user_experience_metrics.stability.debugger_not_present";
73 79
74 // An enum value to indicate the execution phase the browser was in. 80 // An enum value to indicate the execution phase the browser was in.
75 const char kStabilityExecutionPhase[] = 81 const char kStabilityExecutionPhase[] =
76 "user_experience_metrics.stability.execution_phase"; 82 "user_experience_metrics.stability.execution_phase";
77 83
78 // True if the previous run of the program exited cleanly. 84 // True if the previous run of the program exited cleanly.
79 const char kStabilityExitedCleanly[] = 85 const char kStabilityExitedCleanly[] =
80 "user_experience_metrics.stability.exited_cleanly"; 86 "user_experience_metrics.stability.exited_cleanly";
81 87
88 // Number of times an extension renderer process crashed since the last report.
89 const char kStabilityExtensionRendererCrashCount[] =
90 "user_experience_metrics.stability.extension_renderer_crash_count";
91
92 // Number of times an extension renderer process failed to launch since the last
93 // report.
94 const char kStabilityExtensionRendererFailedLaunchCount[] =
95 "user_experience_metrics.stability.extension_renderer_failed_launch_count";
96
82 // Number of times the session end did not complete. 97 // Number of times the session end did not complete.
83 const char kStabilityIncompleteSessionEndCount[] = 98 const char kStabilityIncompleteSessionEndCount[] =
84 "user_experience_metrics.stability.incomplete_session_end_count"; 99 "user_experience_metrics.stability.incomplete_session_end_count";
85 100
86 // Time when the app was last known to be running, in seconds since 101 // Time when the app was last known to be running, in seconds since
87 // the epoch. 102 // the epoch.
88 const char kStabilityLastTimestampSec[] = 103 const char kStabilityLastTimestampSec[] =
89 "user_experience_metrics.stability.last_timestamp_sec"; 104 "user_experience_metrics.stability.last_timestamp_sec";
90 105
91 // Number of times the application was launched since last report. 106 // Number of times the application was launched since last report.
92 const char kStabilityLaunchCount[] = 107 const char kStabilityLaunchCount[] =
93 "user_experience_metrics.stability.launch_count"; 108 "user_experience_metrics.stability.launch_count";
94 109
95 // Time when the app was last launched, in seconds since the epoch. 110 // Time when the app was last launched, in seconds since the epoch.
96 const char kStabilityLaunchTimeSec[] = 111 const char kStabilityLaunchTimeSec[] =
97 "user_experience_metrics.stability.launch_time_sec"; 112 "user_experience_metrics.stability.launch_time_sec";
98 113
114 // Number of times a page load event occurred since the last report.
115 const char kStabilityPageLoadCount[] =
116 "user_experience_metrics.stability.page_load_count";
117
118 // Number of times a renderer process crashed since the last report.
119 const char kStabilityRendererCrashCount[] =
120 "user_experience_metrics.stability.renderer_crash_count";
121
122 // Number of times a renderer process failed to launch since the last report.
123 const char kStabilityRendererFailedLaunchCount[] =
124 "user_experience_metrics.stability.renderer_failed_launch_count";
125
126 // Number of times the renderer has become non-responsive since the last
127 // report.
128 const char kStabilityRendererHangCount[] =
129 "user_experience_metrics.stability.renderer_hang_count";
130
99 // Base64 encoded serialized UMA system profile proto from the previous session. 131 // Base64 encoded serialized UMA system profile proto from the previous session.
100 const char kStabilitySavedSystemProfile[] = 132 const char kStabilitySavedSystemProfile[] =
101 "user_experience_metrics.stability.saved_system_profile"; 133 "user_experience_metrics.stability.saved_system_profile";
102 134
103 // SHA-1 hash of the serialized UMA system profile proto (hex encoded). 135 // SHA-1 hash of the serialized UMA system profile proto (hex encoded).
104 const char kStabilitySavedSystemProfileHash[] = 136 const char kStabilitySavedSystemProfileHash[] =
105 "user_experience_metrics.stability.saved_system_profile_hash"; 137 "user_experience_metrics.stability.saved_system_profile_hash";
106 138
107 // False if we received a session end and either we crashed during processing 139 // False if we received a session end and either we crashed during processing
108 // the session end or ran out of time and windows terminated us. 140 // the session end or ran out of time and windows terminated us.
109 const char kStabilitySessionEndCompleted[] = 141 const char kStabilitySessionEndCompleted[] =
110 "user_experience_metrics.stability.session_end_completed"; 142 "user_experience_metrics.stability.session_end_completed";
111 143
112 // Build time, in seconds since an epoch, which is used to assure that stability 144 // Build time, in seconds since an epoch, which is used to assure that stability
113 // metrics reported reflect stability of the same build. 145 // metrics reported reflect stability of the same build.
114 const char kStabilityStatsBuildTime[] = 146 const char kStabilityStatsBuildTime[] =
115 "user_experience_metrics.stability.stats_buildtime"; 147 "user_experience_metrics.stability.stats_buildtime";
116 148
117 // Version string of previous run, which is used to assure that stability 149 // Version string of previous run, which is used to assure that stability
118 // metrics reported under current version reflect stability of the same version. 150 // metrics reported under current version reflect stability of the same version.
119 const char kStabilityStatsVersion[] = 151 const char kStabilityStatsVersion[] =
120 "user_experience_metrics.stability.stats_version"; 152 "user_experience_metrics.stability.stats_version";
121 153
122 // The keys below are strictly increasing counters over the lifetime of 154 // The keys below are strictly increasing counters over the lifetime of
123 // a chrome installation. They are (optionally) sent up to the uninstall 155 // a chrome installation. They are (optionally) sent up to the uninstall
124 // survey in the event of uninstallation. 156 // survey in the event of uninstallation.
125 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; 157 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
158 const char kUninstallMetricsPageLoadCount[] =
159 "uninstall_metrics.page_load_count";
126 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; 160 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
127 161
128 } // namespace prefs 162 } // namespace prefs
129 } // namespace metrics 163 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/metrics_pref_names.h ('k') | components/metrics/stability_metrics_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698