OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file defines a set of user experience metrics data recorded by | 5 // This file defines a set of user experience metrics data recorded by |
6 // the MetricsService. This is the unit of data that is sent to the server. | 6 // the MetricsService. This is the unit of data that is sent to the server. |
7 | 7 |
8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // is determined by the pref value. | 65 // is determined by the pref value. |
66 void RecordEnvironment( | 66 void RecordEnvironment( |
67 const std::vector<metrics::MetricsProvider*>& metrics_providers, | 67 const std::vector<metrics::MetricsProvider*>& metrics_providers, |
68 const std::vector<variations::ActiveGroupId>& synthetic_trials); | 68 const std::vector<variations::ActiveGroupId>& synthetic_trials); |
69 | 69 |
70 // Loads the environment proto that was saved by the last RecordEnvironment() | 70 // Loads the environment proto that was saved by the last RecordEnvironment() |
71 // call from prefs and clears the pref value. Returns true on success or false | 71 // call from prefs and clears the pref value. Returns true on success or false |
72 // if there was no saved environment in prefs or it could not be decoded. | 72 // if there was no saved environment in prefs or it could not be decoded. |
73 bool LoadSavedEnvironmentFromPrefs(); | 73 bool LoadSavedEnvironmentFromPrefs(); |
74 | 74 |
75 // Records the passed profiled data, which should be a snapshot of the | |
76 // browser's profiled performance during startup for a single process. | |
77 void RecordProfilerData( | |
78 const tracked_objects::ProcessDataSnapshot& process_data, | |
79 int process_type); | |
80 | |
81 // Writes application stability metrics, including stability metrics provided | 75 // Writes application stability metrics, including stability metrics provided |
82 // by the specified set of |metrics_providers|. The system profile portion of | 76 // by the specified set of |metrics_providers|. The system profile portion of |
83 // the log must have already been filled in by a call to RecordEnvironment() | 77 // the log must have already been filled in by a call to RecordEnvironment() |
84 // or LoadSavedEnvironmentFromPrefs(). | 78 // or LoadSavedEnvironmentFromPrefs(). |
85 // NOTE: Has the side-effect of clearing the stability prefs.. | 79 // NOTE: Has the side-effect of clearing the stability prefs.. |
86 // | 80 // |
87 // If this log is of type INITIAL_STABILITY_LOG, records additional info such | 81 // If this log is of type INITIAL_STABILITY_LOG, records additional info such |
88 // as number of incomplete shutdowns as well as extra breakpad and debugger | 82 // as number of incomplete shutdowns as well as extra breakpad and debugger |
89 // stats. | 83 // stats. |
90 void RecordStabilityMetrics( | 84 void RecordStabilityMetrics( |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 130 |
137 // The time when the current log was created. | 131 // The time when the current log was created. |
138 const base::TimeTicks creation_time_; | 132 const base::TimeTicks creation_time_; |
139 | 133 |
140 PrefService* local_state_; | 134 PrefService* local_state_; |
141 | 135 |
142 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 136 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
143 }; | 137 }; |
144 | 138 |
145 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 139 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
OLD | NEW |