Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: net/quic/quic_connection_logger.cc

Issue 1785853002: Remove is_fec_packet from TransmissionInfo and SerializedPacket. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116411121
Patch Set: Merge from 116555910 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <utility> 9 #include <utility>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 dict->SetString("delta_time_largest_observed_us", 116 dict->SetString("delta_time_largest_observed_us",
117 base::Int64ToString(frame->ack_delay_time.ToMicroseconds())); 117 base::Int64ToString(frame->ack_delay_time.ToMicroseconds()));
118 dict->SetInteger("entropy_hash", frame->entropy_hash); 118 dict->SetInteger("entropy_hash", frame->entropy_hash);
119 dict->SetBoolean("truncated", frame->is_truncated); 119 dict->SetBoolean("truncated", frame->is_truncated);
120 120
121 base::ListValue* missing = new base::ListValue(); 121 base::ListValue* missing = new base::ListValue();
122 dict->Set("missing_packets", missing); 122 dict->Set("missing_packets", missing);
123 for (QuicPacketNumber packet : frame->missing_packets) 123 for (QuicPacketNumber packet : frame->missing_packets)
124 missing->AppendString(base::Uint64ToString(packet)); 124 missing->AppendString(base::Uint64ToString(packet));
125 125
126 dict->SetString("latest_revived_packet",
127 base::Int64ToString(frame->latest_revived_packet));
128
129 base::ListValue* received = new base::ListValue(); 126 base::ListValue* received = new base::ListValue();
130 dict->Set("received_packet_times", received); 127 dict->Set("received_packet_times", received);
131 const PacketTimeVector& received_times = frame->received_packet_times; 128 const PacketTimeVector& received_times = frame->received_packet_times;
132 for (PacketTimeVector::const_iterator it = received_times.begin(); 129 for (PacketTimeVector::const_iterator it = received_times.begin();
133 it != received_times.end(); ++it) { 130 it != received_times.end(); ++it) {
134 base::DictionaryValue* info = new base::DictionaryValue(); 131 base::DictionaryValue* info = new base::DictionaryValue();
135 info->SetInteger("packet_number", static_cast<int>(it->first)); 132 info->SetInteger("packet_number", static_cast<int>(it->first));
136 info->SetString("received", 133 info->SetString("received",
137 base::Int64ToString(it->second.ToDebuggingValue())); 134 base::Int64ToString(it->second.ToDebuggingValue()));
138 received->Append(info); 135 received->Append(info);
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 continue; 860 continue;
864 } 861 }
865 // Record some overlapping patterns, to get a better picture, since this is 862 // Record some overlapping patterns, to get a better picture, since this is
866 // not very expensive. 863 // not very expensive.
867 if (i % 3 == 0) 864 if (i % 3 == 0)
868 six_packet_histogram->Add(recent_6_mask); 865 six_packet_histogram->Add(recent_6_mask);
869 } 866 }
870 } 867 }
871 868
872 } // namespace net 869 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698