Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: net/base/sdch_filter.cc

Issue 19542: Add one more histogram to SDCH decoder (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_filter.cc
===================================================================
--- net/base/sdch_filter.cc (revision 9035)
+++ net/base/sdch_filter.cc (working copy)
@@ -61,11 +61,16 @@
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 @@
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());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698