OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/spdy/spdy_session.h" | 5 #include "net/spdy/spdy_session.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 2957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2968 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) { | 2968 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) { |
2969 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration, | 2969 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration, |
2970 base::TimeDelta::FromMilliseconds(1), | 2970 base::TimeDelta::FromMilliseconds(1), |
2971 base::TimeDelta::FromMinutes(10), 100); | 2971 base::TimeDelta::FromMinutes(10), 100); |
2972 } | 2972 } |
2973 | 2973 |
2974 void SpdySession::RecordProtocolErrorHistogram( | 2974 void SpdySession::RecordProtocolErrorHistogram( |
2975 SpdyProtocolErrorDetails details) { | 2975 SpdyProtocolErrorDetails details) { |
2976 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details, | 2976 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details, |
2977 NUM_SPDY_PROTOCOL_ERROR_DETAILS); | 2977 NUM_SPDY_PROTOCOL_ERROR_DETAILS); |
2978 if (EndsWith(host_port_pair().host(), "google.com", false)) { | 2978 if (base::EndsWith(host_port_pair().host(), "google.com", false)) { |
2979 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details, | 2979 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details, |
2980 NUM_SPDY_PROTOCOL_ERROR_DETAILS); | 2980 NUM_SPDY_PROTOCOL_ERROR_DETAILS); |
2981 } | 2981 } |
2982 } | 2982 } |
2983 | 2983 |
2984 void SpdySession::RecordHistograms() { | 2984 void SpdySession::RecordHistograms() { |
2985 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", | 2985 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", |
2986 streams_initiated_count_, | 2986 streams_initiated_count_, |
2987 0, 300, 50); | 2987 0, 300, 50); |
2988 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession", | 2988 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession", |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3257 if (!queue->empty()) { | 3257 if (!queue->empty()) { |
3258 SpdyStreamId stream_id = queue->front(); | 3258 SpdyStreamId stream_id = queue->front(); |
3259 queue->pop_front(); | 3259 queue->pop_front(); |
3260 return stream_id; | 3260 return stream_id; |
3261 } | 3261 } |
3262 } | 3262 } |
3263 return 0; | 3263 return 0; |
3264 } | 3264 } |
3265 | 3265 |
3266 } // namespace net | 3266 } // namespace net |
OLD | NEW |