diff options
author | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-21 18:33:30 +0000 |
---|---|---|
committer | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-21 18:33:30 +0000 |
commit | 0edf876ba2cbb70bad416c3e5c45372fe919c3d2 (patch) | |
tree | 1b498bd097dbabc591bf14e98171a1daf161ee9d /chrome/browser/metrics/metrics_log.h | |
parent | a6ef2fbc8a888d1b6278ca7b912861927581ba3e (diff) | |
download | chromium_src-0edf876ba2cbb70bad416c3e5c45372fe919c3d2.zip chromium_src-0edf876ba2cbb70bad416c3e5c45372fe919c3d2.tar.gz chromium_src-0edf876ba2cbb70bad416c3e5c45372fe919c3d2.tar.bz2 |
Small refactor to MetricsLog stability functionality.
This CL simplifies some MetricsLog APIs, consolidating
RecordEnvironment and RecordEnvironmentProto as well as
RecordIncrementalStabilityElements and WriteStabilityElement.
This reduces the MetricsLog API surface, simplifying things
for some upcoming changes I'm planning to make (recording
startup stability stats separately from startup histograms
and profiler data).
No changes to logic/functionality.
BUG=312733, 109818
TEST=Existing unit tests.
TBR=grt@chromium.org
Review URL: https://codereview.chromium.org/69603003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/metrics_log.h')
-rw-r--r-- | chrome/browser/metrics/metrics_log.h | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/chrome/browser/metrics/metrics_log.h b/chrome/browser/metrics/metrics_log.h index f00d49b..72eacb1 100644 --- a/chrome/browser/metrics/metrics_log.h +++ b/chrome/browser/metrics/metrics_log.h @@ -93,18 +93,6 @@ class MetricsLog : public MetricsLogBase { void RecordEnvironment( const std::vector<content::WebPluginInfo>& plugin_list, const GoogleUpdateMetrics& google_update_metrics, - const std::vector<chrome_variations::ActiveGroupId>& synthetic_trials, - base::TimeDelta incremental_uptime); - - // Records the current operating environment. Takes the list of installed - // plugins and Google Update statistics as parameters because those can't be - // obtained synchronously from the UI thread. This is exposed as a separate - // method from the |RecordEnvironment()| method above because we record the - // environment with *each* protobuf upload, but only with the initial XML - // upload. - void RecordEnvironmentProto( - const std::vector<content::WebPluginInfo>& plugin_list, - const GoogleUpdateMetrics& google_update_metrics, const std::vector<chrome_variations::ActiveGroupId>& synthetic_trials); // Records the input text, available choices, and selected entry when the @@ -117,15 +105,17 @@ class MetricsLog : public MetricsLogBase { const tracked_objects::ProcessDataSnapshot& process_data, int process_type); - // Record recent delta for critical stability metrics. We can't wait for a - // restart to gather these, as that delay biases our observation away from - // users that run happily for a looooong time. We send increments with each - // uma log upload, just as we send histogram data. Takes the list of - // installed plugins as a parameter because that can't be obtained + // Writes application stability metrics (as part of the profile log). Takes + // the list of installed plugins as a parameter because that can't be obtained // synchronously from the UI thread. - void RecordIncrementalStabilityElements( + // NOTE: Has the side-effect of clearing those counts. + // + // If |log_type| is INITIAL_LOG, records additional info such as number of + // incomplete shutdowns as well as extra breakpad and debugger stats. + void RecordStabilityMetrics( const std::vector<content::WebPluginInfo>& plugin_list, - base::TimeDelta incremental_uptime); + base::TimeDelta incremental_uptime, + LogType log_type); const base::TimeTicks& creation_time() const { return creation_time_; @@ -154,13 +144,6 @@ class MetricsLog : public MetricsLogBase { private: FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData); - // Writes application stability metrics (as part of the profile log). - // NOTE: Has the side-effect of clearing those counts. - void WriteStabilityElement( - const std::vector<content::WebPluginInfo>& plugin_list, - base::TimeDelta incremental_uptime, - PrefService* pref); - // Within stability group, write plugin crash stats. void WritePluginStabilityElements( const std::vector<content::WebPluginInfo>& plugin_list, |