summaryrefslogtreecommitdiffstats
path: root/net/spdy
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 19:31:59 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 19:31:59 +0000
commita6187e1d45fd2aa30294c87ac0f305301f85eba3 (patch)
treeed5a1f06787c69deb414753c8cad1de8f3958464 /net/spdy
parent755367dc7b66d20a8c9dc599992fcda2a1ff87ee (diff)
downloadchromium_src-a6187e1d45fd2aa30294c87ac0f305301f85eba3.zip
chromium_src-a6187e1d45fd2aa30294c87ac0f305301f85eba3.tar.gz
chromium_src-a6187e1d45fd2aa30294c87ac0f305301f85eba3.tar.bz2
Add histograms to track stalled spdy streams.
BUG=none TEST=none Review URL: http://codereview.chromium.org/5556008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r--net/spdy/spdy_session.cc7
-rw-r--r--net/spdy/spdy_session.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index a134b98..a788d13 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -248,6 +248,7 @@ SpdySession::SpdySession(const HostPortProxyPair& host_port_proxy_pair,
frames_received_(0),
sent_settings_(false),
received_settings_(false),
+ stalled_streams_(0),
initial_send_window_size_(spdy::kSpdyStreamInitialWindowSize),
initial_recv_window_size_(spdy::kSpdyStreamInitialWindowSize),
net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SPDY_SESSION)) {
@@ -346,6 +347,7 @@ int SpdySession::CreateStream(
return CreateStreamImpl(url, priority, spdy_stream, stream_net_log);
}
+ stalled_streams_++;
net_log().AddEvent(NetLog::TYPE_SPDY_SESSION_STALLED_MAX_STREAMS, NULL);
create_stream_queues_[priority].push(
PendingCreateStream(url, priority, spdy_stream,
@@ -1375,6 +1377,11 @@ void SpdySession::RecordHistograms() {
sent_settings_ ? 1 : 0, 2);
UMA_HISTOGRAM_ENUMERATION("Net.SpdySettingsReceived",
received_settings_ ? 1 : 0, 2);
+ UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamStallsPerSession",
+ stalled_streams_,
+ 0, 300, 50);
+ UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionsWithStalls",
+ stalled_streams_ > 0 ? 1 : 0, 2);
if (received_settings_) {
// Enumerate the saved settings, and set histograms for it.
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 210e9af..f8fa92a 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -411,6 +411,7 @@ class SpdySession : public base::RefCounted<SpdySession>,
bool sent_settings_; // Did this session send settings when it started.
bool received_settings_; // Did this session receive at least one settings
// frame.
+ int stalled_streams_; // Count of streams that were ever stalled.
// Initial send window size for the session; can be changed by an
// arriving SETTINGS frame; newly created streams use this value for the