Chromium Code Reviews| Index: net/http/http_basic_stream.cc |
| =================================================================== |
| --- net/http/http_basic_stream.cc (revision 97414) |
| +++ net/http/http_basic_stream.cc (working copy) |
| @@ -142,27 +142,12 @@ |
| base::TimeDelta duration = base::Time::Now() - |
| response_->request_time; |
| double num_rtt = static_cast<double>(duration.InMilliseconds()) / rtt; |
| - int64 num_rtt_scaled = (4 * num_rtt); |
| - static const char* const kGroups[] = { |
| - "warmest_socket", "warm_socket", "last_accessed_socket" |
| - }; |
| - int bucket = (num_kb / 5) * 5; |
| - const std::string histogram(StringPrintf("Net.Num_RTT_vs_KB_%s_%dKB", |
| - kGroups[socket_reuse_policy], |
| - bucket)); |
| - base::Histogram* counter = base::Histogram::FactoryGet( |
| - histogram, 0, 1000, 2, base::Histogram::kUmaTargetedHistogramFlag); |
| - DCHECK_EQ(histogram, counter->histogram_name()); |
| - counter->Add(num_rtt_scaled); |
| - |
| VLOG(2) << StringPrintf("%s\nrtt = %f\tnum_rtt = %f\t" |
|
jar (doing other things)
2011/08/23 23:01:35
What does VLOG do?
IMO, this should all be debug
gagansingh
2011/08/24 00:03:29
This log was very helpful in the initial developme
|
| "num_kb = %" PRId64 "\t" |
| - "total bytes = %" PRId64 "\t" |
| - "histogram = %s", |
| + "total bytes = %" PRId64, |
| request_line_.data(), |
| - rtt, num_rtt, num_kb, total_bytes_read, |
| - histogram.data()); |
| + rtt, num_rtt, num_kb, total_bytes_read); |
| } |
| } |