summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-02 02:10:15 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-02 02:10:15 +0000
commitdd8d12a86e01b35b76f4add67cf5e222a475662b (patch)
treed8ea7db76f247fbc5d415be7ac08ab1e99cdfc30
parent0d6ec3a7c816498626f48b4f3f8491f9658a8e2e (diff)
downloadchromium_src-dd8d12a86e01b35b76f4add67cf5e222a475662b.zip
chromium_src-dd8d12a86e01b35b76f4add67cf5e222a475662b.tar.gz
chromium_src-dd8d12a86e01b35b76f4add67cf5e222a475662b.tar.bz2
Add local histogram to see what UMA pageloads are
This adds a histogram that gets a sample each time the UMA pageload counter is incremented. The result is that any time you refresh: about:histograms/Chrome.UmaPageloadCounter You'll see how many pageloads have taken place during the session. Be warned: Each refresh of that histogram page will also add 1 to the tally ;-). If you want to use this patch in a personal build, be sure to modify browser_main.cc so that metrics->Start() is called (even if this is not an official build). Review URL: http://codereview.chromium.org/7792070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99289 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/metrics/metrics_service.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index d2852dd..797675e 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -1460,6 +1460,7 @@ void MetricsService::IncrementLongPrefsValue(const char* path) {
}
void MetricsService::LogLoadStarted() {
+ HISTOGRAM_ENUMERATION("Chrome.UmaPageloadCounter", 1, 2);
IncrementPrefValue(prefs::kStabilityPageLoadCount);
IncrementLongPrefsValue(prefs::kUninstallMetricsPageLoadCount);
// We need to save the prefs, as page load count is a critical stat, and it