diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-25 07:00:12 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-25 07:00:12 +0000 |
commit | d15ffcd652cde29abeddd092029370be1d205f0b (patch) | |
tree | 9597cdddd279e01217a83e3e015137f2e4599ca5 /net/base/bandwidth_metrics.h | |
parent | a60c8aece36a887feb6508cd2fb2bc57a6d9dc88 (diff) | |
download | chromium_src-d15ffcd652cde29abeddd092029370be1d205f0b.zip chromium_src-d15ffcd652cde29abeddd092029370be1d205f0b.tar.gz chromium_src-d15ffcd652cde29abeddd092029370be1d205f0b.tar.bz2 |
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
Diffstat (limited to 'net/base/bandwidth_metrics.h')
-rw-r--r-- | net/base/bandwidth_metrics.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <list> +#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<int>(kbps); + UMA_HISTOGRAM_COUNTS_10000("Net.DownloadBandwidth", kbps_int); } } } |