From d15ffcd652cde29abeddd092029370be1d205f0b Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Fri, 25 Dec 2009 07:00:12 +0000 Subject: Create histogram of download bandwidths. BUG=none TEST=none Review URL: http://codereview.chromium.org/516025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35270 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/bandwidth_metrics.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/base') diff --git a/net/base/bandwidth_metrics.h b/net/base/bandwidth_metrics.h index 078c22a..c290ca9 100644 --- a/net/base/bandwidth_metrics.h +++ b/net/base/bandwidth_metrics.h @@ -7,6 +7,7 @@ #include +#include "base/histogram.h" #include "base/logging.h" #include "base/time.h" @@ -93,6 +94,8 @@ class BandwidthMetrics { data_sum_ += kbps; LOG(INFO) << "Bandwidth: " << kbps << "Kbps (avg " << bandwidth() << "Kbps)"; + int kbps_int = static_cast(kbps); + UMA_HISTOGRAM_COUNTS_10000("Net.DownloadBandwidth", kbps_int); } } } -- cgit v1.1