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

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

Issue 2687393004: Gather stability prefs into managing objects. (Closed)
Patch Set: Keep MetricsLog::RegisterPrefs Created 3 years, 10 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
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 #include "components/metrics/stability_pref_names.h"
Alexei Svitkine (slow) 2017/02/17 16:02:23 Why is this needed?
Steven Holte 2017/02/17 20:21:32 Mostly I just felt it kept prefs organized. I'll
Alexei Svitkine (slow) 2017/02/17 20:33:44 Sorry, I meant the include shouldn't be needed sin
6 7
7 namespace metrics { 8 namespace metrics {
8 namespace prefs { 9 namespace prefs {
9 10
10 // Set once, to the current epoch time, on the first run of chrome on this 11 // Set once, to the current epoch time, on the first run of chrome on this
11 // machine. Attached to metrics reports forever thereafter. 12 // machine. Attached to metrics reports forever thereafter.
12 const char kInstallDate[] = "uninstall_metrics.installation_date2"; 13 const char kInstallDate[] = "uninstall_metrics.installation_date2";
13 14
14 // The metrics client GUID. 15 // The metrics client GUID.
15 // Note: The name client_id2 is a result of creating 16 // Note: The name client_id2 is a result of creating
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 "user_experience_metrics.client_id_timestamp"; 60 "user_experience_metrics.client_id_timestamp";
60 61
61 // The metrics client session ID. 62 // The metrics client session ID.
62 const char kMetricsSessionID[] = "user_experience_metrics.session_id"; 63 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
63 64
64 // The prefix of the last-seen timestamp for persistent histogram files. 65 // The prefix of the last-seen timestamp for persistent histogram files.
65 // Values are named for the files themselves. 66 // Values are named for the files themselves.
66 const char kMetricsLastSeenPrefix[] = 67 const char kMetricsLastSeenPrefix[] =
67 "user_experience_metrics.last_seen."; 68 "user_experience_metrics.last_seen.";
68 69
69 // Number of times the browser has been able to register crash reporting.
70 const char kStabilityBreakpadRegistrationSuccess[] =
71 "user_experience_metrics.stability.breakpad_registration_ok";
72
73 // Number of times the browser has failed to register crash reporting.
74 const char kStabilityBreakpadRegistrationFail[] =
75 "user_experience_metrics.stability.breakpad_registration_fail";
76
77 // Total number of child process crashes (other than renderer / extension
78 // renderer ones, and plugin children, which are counted separately) since the
79 // last report.
80 const char kStabilityChildProcessCrashCount[] =
81 "user_experience_metrics.stability.child_process_crash_count";
82
83 // Number of times the application exited uncleanly since the last report.
84 const char kStabilityCrashCount[] =
85 "user_experience_metrics.stability.crash_count";
86
87 // Number of times the initial stability log upload was deferred to the next
88 // startup.
89 const char kStabilityDeferredCount[] =
90 "user_experience_metrics.stability.deferred_count";
91
92 // Number of times stability data was discarded. This is accumulated since the
93 // last report, even across versions.
94 const char kStabilityDiscardCount[] =
95 "user_experience_metrics.stability.discard_count";
96
97 // Number of times the browser has been run under a debugger.
98 const char kStabilityDebuggerPresent[] =
99 "user_experience_metrics.stability.debugger_present";
100
101 // Number of times the browser has not been run under a debugger.
102 const char kStabilityDebuggerNotPresent[] =
103 "user_experience_metrics.stability.debugger_not_present";
104
105 // An enum value to indicate the execution phase the browser was in.
106 const char kStabilityExecutionPhase[] =
107 "user_experience_metrics.stability.execution_phase";
108
109 // True if the previous run of the program exited cleanly.
110 const char kStabilityExitedCleanly[] =
111 "user_experience_metrics.stability.exited_cleanly";
112
113 // Number of times an extension renderer process crashed since the last report.
114 const char kStabilityExtensionRendererCrashCount[] =
115 "user_experience_metrics.stability.extension_renderer_crash_count";
116
117 // Number of times an extension renderer process failed to launch since the last
118 // report.
119 const char kStabilityExtensionRendererFailedLaunchCount[] =
120 "user_experience_metrics.stability.extension_renderer_failed_launch_count";
121
122 // Number of times an extension renderer process successfully launched since the
123 // last report.
124 const char kStabilityExtensionRendererLaunchCount[] =
125 "user_experience_metrics.stability.extension_renderer_launch_count";
126
127 // Number of times the session end did not complete.
128 const char kStabilityIncompleteSessionEndCount[] =
129 "user_experience_metrics.stability.incomplete_session_end_count";
130
131 // Time when the app was last known to be running, in seconds since
132 // the epoch.
133 const char kStabilityLastTimestampSec[] =
134 "user_experience_metrics.stability.last_timestamp_sec";
135
136 // Number of times the application was launched since last report.
137 const char kStabilityLaunchCount[] =
138 "user_experience_metrics.stability.launch_count";
139
140 // Time when the app was last launched, in seconds since the epoch.
141 const char kStabilityLaunchTimeSec[] =
142 "user_experience_metrics.stability.launch_time_sec";
143
144 // Number of times a page load event occurred since the last report.
145 const char kStabilityPageLoadCount[] =
146 "user_experience_metrics.stability.page_load_count";
147
148 // Number of times a renderer process crashed since the last report.
149 const char kStabilityRendererCrashCount[] =
150 "user_experience_metrics.stability.renderer_crash_count";
151
152 // Number of times a renderer process failed to launch since the last report.
153 const char kStabilityRendererFailedLaunchCount[] =
154 "user_experience_metrics.stability.renderer_failed_launch_count";
155
156 // Number of times the renderer has become non-responsive since the last
157 // report.
158 const char kStabilityRendererHangCount[] =
159 "user_experience_metrics.stability.renderer_hang_count";
160
161 // Number of times a renderer process successfully launched since the last
162 // report.
163 const char kStabilityRendererLaunchCount[] =
164 "user_experience_metrics.stability.renderer_launch_count";
165
166 // Base64 encoded serialized UMA system profile proto from the previous session.
167 const char kStabilitySavedSystemProfile[] =
168 "user_experience_metrics.stability.saved_system_profile";
169
170 // SHA-1 hash of the serialized UMA system profile proto (hex encoded).
171 const char kStabilitySavedSystemProfileHash[] =
172 "user_experience_metrics.stability.saved_system_profile_hash";
173
174 // False if we received a session end and either we crashed during processing
175 // the session end or ran out of time and windows terminated us.
176 const char kStabilitySessionEndCompleted[] =
177 "user_experience_metrics.stability.session_end_completed";
178
179 // Build time, in seconds since an epoch, which is used to assure that stability
180 // metrics reported reflect stability of the same build.
181 const char kStabilityStatsBuildTime[] =
182 "user_experience_metrics.stability.stats_buildtime";
183
184 // Version string of previous run, which is used to assure that stability
185 // metrics reported under current version reflect stability of the same version.
186 const char kStabilityStatsVersion[] =
187 "user_experience_metrics.stability.stats_version";
188
189 // Number of times the version number stored in prefs did not match the
190 // serialized system profile version number.
191 const char kStabilityVersionMismatchCount[] =
192 "user_experience_metrics.stability.version_mismatch_count";
193
194 // The keys below are strictly increasing counters over the lifetime of 70 // The keys below are strictly increasing counters over the lifetime of
195 // a chrome installation. They are (optionally) sent up to the uninstall 71 // a chrome installation. They are (optionally) sent up to the uninstall
196 // survey in the event of uninstallation. 72 // survey in the event of uninstallation.
197 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; 73 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
198 const char kUninstallMetricsPageLoadCount[] = 74 const char kUninstallMetricsPageLoadCount[] =
199 "uninstall_metrics.page_load_count"; 75 "uninstall_metrics.page_load_count";
200 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; 76 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
201 77
202 // Dictionary for measuring cellular data used by UMA service during last 7 78 // Dictionary for measuring cellular data used by UMA service during last 7
203 // days. 79 // days.
204 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; 80 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause";
205 81
206 // Dictionary for measuring cellular data used by user including chrome services 82 // Dictionary for measuring cellular data used by user including chrome services
207 // per day. 83 // per day.
208 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; 84 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause";
209 85
210 } // namespace prefs 86 } // namespace prefs
211 } // namespace metrics 87 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698