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 2950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2961 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) { | 2961 void SpdySession::RecordPingRTTHistogram(base::TimeDelta duration) { |
2962 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration, | 2962 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyPing.RTT", duration, |
2963 base::TimeDelta::FromMilliseconds(1), | 2963 base::TimeDelta::FromMilliseconds(1), |
2964 base::TimeDelta::FromMinutes(10), 100); | 2964 base::TimeDelta::FromMinutes(10), 100); |
2965 } | 2965 } |
2966 | 2966 |
2967 void SpdySession::RecordProtocolErrorHistogram( | 2967 void SpdySession::RecordProtocolErrorHistogram( |
2968 SpdyProtocolErrorDetails details) { | 2968 SpdyProtocolErrorDetails details) { |
2969 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details, | 2969 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails2", details, |
2970 NUM_SPDY_PROTOCOL_ERROR_DETAILS); | 2970 NUM_SPDY_PROTOCOL_ERROR_DETAILS); |
2971 if (EndsWith(host_port_pair().host(), "google.com", false)) { | 2971 if (base::EndsWith(host_port_pair().host(), "google.com", |
| 2972 base::CompareCase::SENSITIVE)) { |
2972 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details, | 2973 UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionErrorDetails_Google2", details, |
2973 NUM_SPDY_PROTOCOL_ERROR_DETAILS); | 2974 NUM_SPDY_PROTOCOL_ERROR_DETAILS); |
2974 } | 2975 } |
2975 } | 2976 } |
2976 | 2977 |
2977 void SpdySession::RecordHistograms() { | 2978 void SpdySession::RecordHistograms() { |
2978 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", | 2979 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", |
2979 streams_initiated_count_, | 2980 streams_initiated_count_, |
2980 0, 300, 50); | 2981 0, 300, 50); |
2981 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession", | 2982 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPushedPerSession", |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3250 if (!queue->empty()) { | 3251 if (!queue->empty()) { |
3251 SpdyStreamId stream_id = queue->front(); | 3252 SpdyStreamId stream_id = queue->front(); |
3252 queue->pop_front(); | 3253 queue->pop_front(); |
3253 return stream_id; | 3254 return stream_id; |
3254 } | 3255 } |
3255 } | 3256 } |
3256 return 0; | 3257 return 0; |
3257 } | 3258 } |
3258 | 3259 |
3259 } // namespace net | 3260 } // namespace net |
OLD | NEW |