OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/quic/quic_connection_logger.h" | 5 #include "net/quic/quic_connection_logger.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 dict->Set("received_packets", received); | 130 dict->Set("received_packets", received); |
131 for (TimeMap::const_iterator it = | 131 for (TimeMap::const_iterator it = |
132 frame->inter_arrival.received_packet_times.begin(); | 132 frame->inter_arrival.received_packet_times.begin(); |
133 it != frame->inter_arrival.received_packet_times.end(); ++it) { | 133 it != frame->inter_arrival.received_packet_times.end(); ++it) { |
134 string value = base::Uint64ToString(it->first) + "@" + | 134 string value = base::Uint64ToString(it->first) + "@" + |
135 base::Uint64ToString(it->second.ToDebuggingValue()); | 135 base::Uint64ToString(it->second.ToDebuggingValue()); |
136 received->AppendString(value); | 136 received->AppendString(value); |
137 } | 137 } |
138 break; | 138 break; |
139 } | 139 } |
140 case kFixRate: | |
141 dict->SetString("type", "FixRate"); | |
142 dict->SetInteger("bitrate_in_bytes_per_second", | |
143 frame->fix_rate.bitrate.ToBytesPerSecond()); | |
144 break; | |
145 case kTCP: | 140 case kTCP: |
146 dict->SetString("type", "TCP"); | 141 dict->SetString("type", "TCP"); |
147 dict->SetInteger("receive_window", frame->tcp.receive_window); | 142 dict->SetInteger("receive_window", frame->tcp.receive_window); |
148 break; | 143 break; |
149 } | 144 } |
150 | 145 |
151 return dict; | 146 return dict; |
152 } | 147 } |
153 | 148 |
154 base::Value* NetLogQuicRstStreamFrameCallback( | 149 base::Value* NetLogQuicRstStreamFrameCallback( |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 continue; | 819 continue; |
825 } | 820 } |
826 // Record some overlapping patterns, to get a better picture, since this is | 821 // Record some overlapping patterns, to get a better picture, since this is |
827 // not very expensive. | 822 // not very expensive. |
828 if (i % 3 == 0) | 823 if (i % 3 == 0) |
829 six_packet_histogram->Add(recent_6_mask); | 824 six_packet_histogram->Add(recent_6_mask); |
830 } | 825 } |
831 } | 826 } |
832 | 827 |
833 } // namespace net | 828 } // namespace net |
OLD | NEW |