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

Unified Diff: net/http/http_basic_stream.cc

Issue 7714020: Removing old histograms for measuring RTT vs Kilobytes of data (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698