diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-02 17:52:13 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-02 17:52:13 +0000 |
commit | b218f51179db2d13a2af31e073fad2ffe00d0bbf (patch) | |
tree | 0225a00df659b9058f36dded2cc3529ee252078d /net | |
parent | b4ebaad8df7d9c12d468a93c9795ec954dfb270d (diff) | |
download | chromium_src-b218f51179db2d13a2af31e073fad2ffe00d0bbf.zip chromium_src-b218f51179db2d13a2af31e073fad2ffe00d0bbf.tar.gz chromium_src-b218f51179db2d13a2af31e073fad2ffe00d0bbf.tar.bz2 |
Add one more histogram to SDCH decoder
r=mbelshe
Review URL: http://codereview.chromium.org/19542
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/sdch_filter.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/net/base/sdch_filter.cc b/net/base/sdch_filter.cc index 6c0343f..39a1fe3 100644 --- a/net/base/sdch_filter.cc +++ b/net/base/sdch_filter.cc @@ -61,11 +61,16 @@ SdchFilter::~SdchFilter() { read_times_.back() - read_times_[0], base::TimeDelta::FromMilliseconds(20), base::TimeDelta::FromMinutes(10), 100); - if (read_times_.size() > 3) + if (read_times_.size() > 3) { UMA_HISTOGRAM_CLIPPED_TIMES(L"Sdch.Network_Decode_3rd_To_4th", read_times_[3] - read_times_[2], base::TimeDelta::FromMilliseconds(10), base::TimeDelta::FromSeconds(3), 100); + UMA_HISTOGRAM_CLIPPED_TIMES(L"Sdch.Network_Decode_2nd_To_3rd", + read_times_[2] - read_times_[1], + base::TimeDelta::FromMilliseconds(10), + base::TimeDelta::FromSeconds(3), 100); + } UMA_HISTOGRAM_COUNTS_100(L"Sdch.Network_Decode_Reads", read_times_.size()); UMA_HISTOGRAM_COUNTS(L"Sdch.Network_Decode_Bytes_Read", output_bytes_); @@ -78,11 +83,16 @@ SdchFilter::~SdchFilter() { read_times_.back() - read_times_[0], base::TimeDelta::FromMilliseconds(20), base::TimeDelta::FromMinutes(10), 100); - if (read_times_.size() > 3) + if (read_times_.size() > 3) { UMA_HISTOGRAM_CLIPPED_TIMES(L"Sdch.Network_Pass-through_3rd_To_4th", read_times_[3] - read_times_[2], base::TimeDelta::FromMilliseconds(10), base::TimeDelta::FromSeconds(3), 100); + UMA_HISTOGRAM_CLIPPED_TIMES(L"Sdch.Network_Pass-through_2nd_To_3rd", + read_times_[2] - read_times_[1], + base::TimeDelta::FromMilliseconds(10), + base::TimeDelta::FromSeconds(3), 100); + } UMA_HISTOGRAM_COUNTS_100(L"Sdch.Network_Pass-through_Reads", read_times_.size()); } |