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

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

Issue 2358223002: Add log date to the metrics log (Closed)
Patch Set: add deprectaed comments Created 4 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/persisted_logs.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 // Array of strings that are each UMA logs that were supposed to be sent in the
11 // first minute of a browser session. These logs include things like crash count
12 // info, etc.
13 // Deprecated by kMetricsInitialLogs.
14 const char kDeprecatedMetricsInitialLogs[] =
15 "user_experience_metrics.initial_logs_list";
16
17 // Array of strings that are each UMA logs that were not sent because the
18 // browser terminated before these accumulated metrics could be sent. These
19 // logs typically include histograms and memory reports, as well as ongoing
20 // user activities.
21 // Deprecated by kMetricsOngoingLogs.
22 const char kDeprecatedMetricsOngoingLogs[] =
23 "user_experience_metrics.ongoing_logs_list";
24
10 // Set once, to the current epoch time, on the first run of chrome on this 25 // Set once, to the current epoch time, on the first run of chrome on this
11 // machine. Attached to metrics reports forever thereafter. 26 // machine. Attached to metrics reports forever thereafter.
12 const char kInstallDate[] = "uninstall_metrics.installation_date2"; 27 const char kInstallDate[] = "uninstall_metrics.installation_date2";
13 28
14 // The metrics client GUID. 29 // The metrics client GUID.
15 // Note: The name client_id2 is a result of creating 30 // Note: The name client_id2 is a result of creating
16 // new prefs to do a one-time reset of the previous values. 31 // new prefs to do a one-time reset of the previous values.
17 const char kMetricsClientID[] = "user_experience_metrics.client_id2"; 32 const char kMetricsClientID[] = "user_experience_metrics.client_id2";
18 33
19 // An enum value indicating the default value of the enable metrics reporting 34 // 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 35 // 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 36 // 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 37 // only recorded during first-run, so older clients will not set it. The enum
23 // used for the value is metrics::MetricsServiceClient::EnableMetricsDefault. 38 // used for the value is metrics::MetricsServiceClient::EnableMetricsDefault.
24 const char kMetricsDefaultOptIn[] = "user_experience_metrics.default_opt_in"; 39 const char kMetricsDefaultOptIn[] = "user_experience_metrics.default_opt_in";
25 40
26 // Array of strings that are each UMA logs that were supposed to be sent in the 41 // Array of dictionaries that are each UMA logs that were supposed to be sent in
27 // first minute of a browser session. These logs include things like crash count 42 // the first minute of a browser session. These logs include things like crash
28 // info, etc. 43 // count info, etc.
29 const char kMetricsInitialLogs[] = 44 const char kMetricsInitialLogs[] = "user_experience_metrics.initial_logs2";
30 "user_experience_metrics.initial_logs_list";
31 45
32 // The metrics entropy source. 46 // The metrics entropy source.
33 // Note: The name low_entropy_source2 is a result of creating 47 // Note: The name low_entropy_source2 is a result of creating
34 // new prefs to do a one-time reset of the previous values. 48 // new prefs to do a one-time reset of the previous values.
35 const char kMetricsLowEntropySource[] = 49 const char kMetricsLowEntropySource[] =
36 "user_experience_metrics.low_entropy_source2"; 50 "user_experience_metrics.low_entropy_source2";
37 51
38 // A machine ID used to detect when underlying hardware changes. It is only 52 // A machine ID used to detect when underlying hardware changes. It is only
39 // stored locally and never transmitted in metrics reports. 53 // stored locally and never transmitted in metrics reports.
40 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; 54 const char kMetricsMachineId[] = "user_experience_metrics.machine_id";
41 55
42 // Array of strings that are each UMA logs that were not sent because the 56 // Array of dictionaries that are each UMA logs that were not sent because the
43 // browser terminated before these accumulated metrics could be sent. These 57 // browser terminated before these accumulated metrics could be sent. These
44 // logs typically include histograms and memory reports, as well as ongoing 58 // logs typically include histograms and memory reports, as well as ongoing
45 // user activities. 59 // user activities.
46 const char kMetricsOngoingLogs[] = 60 const char kMetricsOngoingLogs[] = "user_experience_metrics.ongoing_logs2";
47 "user_experience_metrics.ongoing_logs_list";
48 61
49 // Boolean that indicates a cloned install has been detected and the metrics 62 // Boolean that indicates a cloned install has been detected and the metrics
50 // client id and low entropy source should be reset. 63 // client id and low entropy source should be reset.
51 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; 64 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids";
52 65
53 // Boolean that specifies whether or not crash reporting and metrics reporting 66 // Boolean that specifies whether or not crash reporting and metrics reporting
54 // are sent over the network for analysis. 67 // are sent over the network for analysis.
55 const char kMetricsReportingEnabled[] = 68 const char kMetricsReportingEnabled[] =
56 "user_experience_metrics.reporting_enabled"; 69 "user_experience_metrics.reporting_enabled";
57 70
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Dictionary for measuring cellular data used by UMA service during last 7 217 // Dictionary for measuring cellular data used by UMA service during last 7
205 // days. 218 // days.
206 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; 219 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause";
207 220
208 // Dictionary for measuring cellular data used by user including chrome services 221 // Dictionary for measuring cellular data used by user including chrome services
209 // per day. 222 // per day.
210 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; 223 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause";
211 224
212 } // namespace prefs 225 } // namespace prefs
213 } // namespace metrics 226 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/metrics_pref_names.h ('k') | components/metrics/persisted_logs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698