summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-09 23:12:02 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-09 23:12:02 +0000
commit714a345b6f5752f64f728b79909ae9e70f4fb4cb (patch)
tree5436d1c33ce5ed93de7122c5c29489e9a9f8a6ca /net
parent8ab5ff73e639f5478a6562c84f6a8619b9a8378c (diff)
downloadchromium_src-714a345b6f5752f64f728b79909ae9e70f4fb4cb.zip
chromium_src-714a345b6f5752f64f728b79909ae9e70f4fb4cb.tar.gz
chromium_src-714a345b6f5752f64f728b79909ae9e70f4fb4cb.tar.bz2
Add histogram to analyze sent cwnd settings for spdy.
BUG=none TEST=na Review URL: http://codereview.chromium.org/5740001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/spdy/spdy_session.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index ba6e735..d96c784 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -1329,6 +1329,20 @@ void SpdySession::SendSettings() {
return;
HandleSettings(settings);
+ // Record Histogram Data
+ for (spdy::SpdySettings::const_iterator i = settings.begin(),
+ end = settings.end(); i != end; ++i) {
+ const uint32 id = i->first.id();
+ const uint32 val = i->second;
+ switch (id) {
+ case spdy::SETTINGS_CURRENT_CWND:
+ UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdySettingsCwndSent",
+ val,
+ 1, 200, 100);
+ break;
+ }
+ }
+
net_log_.AddEvent(
NetLog::TYPE_SPDY_SESSION_SEND_SETTINGS,
make_scoped_refptr(new NetLogSpdySettingsParameter(settings)));