| 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 #include <utility> | 9 #include <utility> | 
| 10 | 10 | 
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|