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

Unified Diff: net/url_request/url_request_context.cc

Issue 2897143003: Use NetworkTrafficAnnotation in URLRequestContext UMA logging (Closed)
Patch Set: Address Alexei's comments Created 3 years, 7 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 | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 1de1aa7922a69baf2f9d74445513dc52a3538a1f..ce0676e8316899bba1e496106c9a4fb799b870a5 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -127,6 +127,9 @@ void URLRequestContext::InsertURLRequest(const URLRequest* request) const {
largest_outstanding_requests_count_seen_ = url_requests_.size();
UMA_HISTOGRAM_COUNTS_1M("Net.URLRequestContext.OutstandingRequests",
largest_outstanding_requests_count_seen_);
+ UMA_HISTOGRAM_SPARSE_SLOWLY(
+ "Net.URLRequestContext.OutstandingRequests.Type",
+ request->traffic_annotation().unique_id_hash_code);
}
}
« no previous file with comments | « no previous file | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698