diff options
Diffstat (limited to 'net/spdy/spdy_session.cc')
-rw-r--r-- | net/spdy/spdy_session.cc | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index a3f8ff3..58e4af7 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -15,7 +15,6 @@ #include "base/metrics/field_trial.h" #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" -#include "base/metrics/stats_counters.h" #include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" @@ -718,9 +717,6 @@ void SpdySession::InitializeWithSocket( // requires re-working CreateFakeSpdySession(), though. DCHECK(connection->socket()); - base::StatsCounter spdy_sessions("spdy.sessions"); - spdy_sessions.Increment(); - connection_ = connection.Pass(); is_secure_ = is_secure; certificate_error_code_ = certificate_error_code; @@ -1084,8 +1080,6 @@ scoped_ptr<SpdyFrame> SpdySession::CreateSynStream( syn_frame.reset(buffered_spdy_framer_->SerializeFrame(headers)); } - base::StatsCounter spdy_requests("spdy.requests"); - spdy_requests.Increment(); streams_initiated_count_++; if (net_log().IsLogging()) { @@ -1780,13 +1774,9 @@ void SpdySession::LogAbandonedActiveStream(ActiveStreamMap::const_iterator it, DCHECK_GT(it->first, 0u); LogAbandonedStream(it->second.stream, status); ++streams_abandoned_count_; - base::StatsCounter abandoned_streams("spdy.abandoned_streams"); - abandoned_streams.Increment(); if (it->second.stream->type() == SPDY_PUSH_STREAM && unclaimed_pushed_streams_.find(it->second.stream->url()) != unclaimed_pushed_streams_.end()) { - base::StatsCounter abandoned_push_streams("spdy.abandoned_push_streams"); - abandoned_push_streams.Increment(); } } @@ -1974,8 +1964,6 @@ void SpdySession::DeleteStream(scoped_ptr<SpdyStream> stream, int status) { } base::WeakPtr<SpdyStream> SpdySession::GetActivePushStream(const GURL& url) { - base::StatsCounter used_push_streams("spdy.claimed_push_streams"); - PushedStreamMap::iterator unclaimed_it = unclaimed_pushed_streams_.find(url); if (unclaimed_it == unclaimed_pushed_streams_.end()) return base::WeakPtr<SpdyStream>(); @@ -1992,7 +1980,6 @@ base::WeakPtr<SpdyStream> SpdySession::GetActivePushStream(const GURL& url) { net_log_.AddEvent(NetLog::TYPE_SPDY_STREAM_ADOPTED_PUSH_STREAM, base::Bind(&NetLogSpdyAdoptedPushStreamCallback, active_it->second.stream->stream_id(), &url)); - used_push_streams.Increment(); return active_it->second.stream->GetWeakPtr(); } @@ -2267,14 +2254,9 @@ void SpdySession::OnSynStream(SpdyStreamId stream_id, return; } - if (OnInitialResponseHeadersReceived(response_headers, - response_time, - recv_first_byte_time, - active_it->second.stream) != OK) - return; - - base::StatsCounter push_requests("spdy.pushed_streams"); - push_requests.Increment(); + OnInitialResponseHeadersReceived(response_headers, response_time, + recv_first_byte_time, + active_it->second.stream); } void SpdySession::DeleteExpiredPushedStreams() { @@ -2770,9 +2752,6 @@ void SpdySession::OnPushPromise(SpdyStreamId stream_id, // TODO(baranovich): pass parent stream id priority? if (!TryCreatePushStream(promised_stream_id, stream_id, 0, headers)) return; - - base::StatsCounter push_requests("spdy.pushed_streams"); - push_requests.Increment(); } void SpdySession::SendStreamWindowUpdate(SpdyStreamId stream_id, |