summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 21:00:02 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 21:00:02 +0000
commitb344394d96c3917f193c142d0c16fc846b224ccc (patch)
tree27c55fb12d0950d760dfbdae7e4c53c7f44072fe /net
parent5206a4d36498b8a4aa3b3ca33dc6f12dcb820fd3 (diff)
downloadchromium_src-b344394d96c3917f193c142d0c16fc846b224ccc.zip
chromium_src-b344394d96c3917f193c142d0c16fc846b224ccc.tar.gz
chromium_src-b344394d96c3917f193c142d0c16fc846b224ccc.tar.bz2
Add SDCH histogram to help detected delayed acks
SDCH might compress so well, that the return of the ack may come late, and a server may stall on a congestion window limitation. This set of histograms is intended to track that issue during SDCH experimentation. r=huanr Review URL: http://codereview.chromium.org/92139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/sdch_filter.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/base/sdch_filter.cc b/net/base/sdch_filter.cc
index 216e688..3ff78b5 100644
--- a/net/base/sdch_filter.cc
+++ b/net/base/sdch_filter.cc
@@ -112,6 +112,14 @@ SdchFilter::~SdchFilter() {
base::TimeDelta::FromMilliseconds(20),
base::TimeDelta::FromMinutes(10), 100);
if (read_times_.size() > 4) {
+ UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Decode_1st_To_2nd_b",
+ read_times_[1] - read_times_[0],
+ base::TimeDelta::FromMilliseconds(10),
+ base::TimeDelta::FromSeconds(3), 100);
+ UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Decode_2nd_To_3rd_b",
+ read_times_[2] - read_times_[1],
+ base::TimeDelta::FromMilliseconds(10),
+ base::TimeDelta::FromSeconds(3), 100);
UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Decode_3rd_To_4th_b",
read_times_[3] - read_times_[2],
base::TimeDelta::FromMilliseconds(10),
@@ -139,6 +147,14 @@ SdchFilter::~SdchFilter() {
base::TimeDelta::FromMilliseconds(20),
base::TimeDelta::FromMinutes(10), 100);
if (read_times_.size() > 4) {
+ UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Pass-through_1st_To_2nd_b",
+ read_times_[1] - read_times_[0],
+ base::TimeDelta::FromMilliseconds(10),
+ base::TimeDelta::FromSeconds(3), 100);
+ UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Pass-through_2nd_To_3rd_b",
+ read_times_[2] - read_times_[1],
+ base::TimeDelta::FromMilliseconds(10),
+ base::TimeDelta::FromSeconds(3), 100);
UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Pass-through_3rd_To_4th_b",
read_times_[3] - read_times_[2],
base::TimeDelta::FromMilliseconds(10),