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

Side by Side Diff: components/metrics/stability_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 2017 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/stability_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
11 // machine. Attached to metrics reports forever thereafter.
12 const char kInstallDate[] = "uninstall_metrics.installation_date2";
13
14 // The metrics client GUID.
15 // Note: The name client_id2 is a result of creating
16 // new prefs to do a one-time reset of the previous values.
17 const char kMetricsClientID[] = "user_experience_metrics.client_id2";
18
19 // An enum value indicating the default value of the enable metrics reporting
20 // checkbox shown during first-run. If it's opt-in, then the checkbox defaulted
21 // to unchecked, if it's opt-out, then it defaulted to checked. This value is
22 // only recorded during first-run, so older clients will not set it. The enum
23 // used for the value is metrics::MetricsServiceClient::EnableMetricsDefault.
24 const char kMetricsDefaultOptIn[] = "user_experience_metrics.default_opt_in";
25
26 // Array of dictionaries that are each UMA logs that were supposed to be sent in
27 // the first minute of a browser session. These logs include things like crash
28 // count info, etc.
29 const char kMetricsInitialLogs[] = "user_experience_metrics.initial_logs2";
30
31 // The metrics entropy source.
32 // Note: The name low_entropy_source2 is a result of creating
33 // new prefs to do a one-time reset of the previous values.
34 const char kMetricsLowEntropySource[] =
35 "user_experience_metrics.low_entropy_source2";
36
37 // A machine ID used to detect when underlying hardware changes. It is only
38 // stored locally and never transmitted in metrics reports.
39 const char kMetricsMachineId[] = "user_experience_metrics.machine_id";
40
41 // Array of dictionaries that are each UMA logs that were not sent because the
42 // browser terminated before these accumulated metrics could be sent. These
43 // logs typically include histograms and memory reports, as well as ongoing
44 // user activities.
45 const char kMetricsOngoingLogs[] = "user_experience_metrics.ongoing_logs2";
46
47 // Boolean that indicates a cloned install has been detected and the metrics
48 // client id and low entropy source should be reset.
49 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids";
50
51 // Boolean that specifies whether or not crash reporting and metrics reporting
52 // are sent over the network for analysis.
53 const char kMetricsReportingEnabled[] =
54 "user_experience_metrics.reporting_enabled";
55
56 // Date/time when the user opted in to UMA and generated the client id most
57 // recently (local machine time, stored as a 64-bit time_t value).
58 const char kMetricsReportingEnabledTimestamp[] =
59 "user_experience_metrics.client_id_timestamp";
60
61 // The metrics client session ID.
62 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
63
64 // The prefix of the last-seen timestamp for persistent histogram files.
65 // Values are named for the files themselves.
66 const char kMetricsLastSeenPrefix[] =
67 "user_experience_metrics.last_seen.";
68
69 // Number of times the browser has been able to register crash reporting. 10 // Number of times the browser has been able to register crash reporting.
70 const char kStabilityBreakpadRegistrationSuccess[] = 11 const char kStabilityBreakpadRegistrationSuccess[] =
71 "user_experience_metrics.stability.breakpad_registration_ok"; 12 "user_experience_metrics.stability.breakpad_registration_ok";
72 13
73 // Number of times the browser has failed to register crash reporting. 14 // Number of times the browser has failed to register crash reporting.
74 const char kStabilityBreakpadRegistrationFail[] = 15 const char kStabilityBreakpadRegistrationFail[] =
75 "user_experience_metrics.stability.breakpad_registration_fail"; 16 "user_experience_metrics.stability.breakpad_registration_fail";
76 17
77 // Total number of child process crashes (other than renderer / extension 18 // Total number of child process crashes (other than renderer / extension
78 // renderer ones, and plugin children, which are counted separately) since the 19 // renderer ones, and plugin children, which are counted separately) since the
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 62
122 // Number of times an extension renderer process successfully launched since the 63 // Number of times an extension renderer process successfully launched since the
123 // last report. 64 // last report.
124 const char kStabilityExtensionRendererLaunchCount[] = 65 const char kStabilityExtensionRendererLaunchCount[] =
125 "user_experience_metrics.stability.extension_renderer_launch_count"; 66 "user_experience_metrics.stability.extension_renderer_launch_count";
126 67
127 // Number of times the session end did not complete. 68 // Number of times the session end did not complete.
128 const char kStabilityIncompleteSessionEndCount[] = 69 const char kStabilityIncompleteSessionEndCount[] =
129 "user_experience_metrics.stability.incomplete_session_end_count"; 70 "user_experience_metrics.stability.incomplete_session_end_count";
130 71
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. 72 // Number of times the application was launched since last report.
137 const char kStabilityLaunchCount[] = 73 const char kStabilityLaunchCount[] =
138 "user_experience_metrics.stability.launch_count"; 74 "user_experience_metrics.stability.launch_count";
139 75
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. 76 // Number of times a page load event occurred since the last report.
145 const char kStabilityPageLoadCount[] = 77 const char kStabilityPageLoadCount[] =
146 "user_experience_metrics.stability.page_load_count"; 78 "user_experience_metrics.stability.page_load_count";
147 79
148 // Number of times a renderer process crashed since the last report. 80 // Number of times a renderer process crashed since the last report.
149 const char kStabilityRendererCrashCount[] = 81 const char kStabilityRendererCrashCount[] =
150 "user_experience_metrics.stability.renderer_crash_count"; 82 "user_experience_metrics.stability.renderer_crash_count";
151 83
152 // Number of times a renderer process failed to launch since the last report. 84 // Number of times a renderer process failed to launch since the last report.
153 const char kStabilityRendererFailedLaunchCount[] = 85 const char kStabilityRendererFailedLaunchCount[] =
(...skipping 30 matching lines...) Expand all
184 // Version string of previous run, which is used to assure that stability 116 // Version string of previous run, which is used to assure that stability
185 // metrics reported under current version reflect stability of the same version. 117 // metrics reported under current version reflect stability of the same version.
186 const char kStabilityStatsVersion[] = 118 const char kStabilityStatsVersion[] =
187 "user_experience_metrics.stability.stats_version"; 119 "user_experience_metrics.stability.stats_version";
188 120
189 // Number of times the version number stored in prefs did not match the 121 // Number of times the version number stored in prefs did not match the
190 // serialized system profile version number. 122 // serialized system profile version number.
191 const char kStabilityVersionMismatchCount[] = 123 const char kStabilityVersionMismatchCount[] =
192 "user_experience_metrics.stability.version_mismatch_count"; 124 "user_experience_metrics.stability.version_mismatch_count";
193 125
194 // The keys below are strictly increasing counters over the lifetime of
195 // a chrome installation. They are (optionally) sent up to the uninstall
196 // survey in the event of uninstallation.
197 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
198 const char kUninstallMetricsPageLoadCount[] =
199 "uninstall_metrics.page_load_count";
200 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
201
202 // Dictionary for measuring cellular data used by UMA service during last 7
203 // days.
204 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause";
205
206 // Dictionary for measuring cellular data used by user including chrome services
207 // per day.
208 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause";
209
210 } // namespace prefs 126 } // namespace prefs
211 } // namespace metrics 127 } // namespace metrics
OLDNEW
« components/metrics/stability_metrics_provider.h ('K') | « components/metrics/stability_pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698