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

Issue 2897143003: Use NetworkTrafficAnnotation in URLRequestContext UMA logging (Closed)

Created:
3 years, 7 months ago by xunjieli
Modified:
3 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use NetworkTrafficAnnotation in URLRequestContext UMA logging This CL makes use of NetworkTrafficAnnotation that is associated with each URLRequest to log UMA histograms. When 'Net.URLRequestContext.OutstandingRequests' is logged, we additionally log what the URLRequest is created for. This hopefully can tell us why we have a large number of OutstandingRequests in the extreme scenarios. BUG=711721 Review-Url: https://codereview.chromium.org/2897143003 Cr-Commit-Position: refs/heads/master@{#474706} Committed: https://chromium.googlesource.com/chromium/src/+/669c310279272d3202f2784c4323b392a52498d3

Patch Set 1 : self #

Total comments: 4

Patch Set 2 : Use UMA_HISTOGRAM_SPARSE_SLOWLY #

Patch Set 3 : self #

Total comments: 4

Patch Set 4 : Address Alexei's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -0 lines) Patch
M net/url_request/url_request_context.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +141 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
xunjieli
Matt: what do you think about this approach? Ideally, we want to log how much ...
3 years, 7 months ago (2017-05-24 15:45:06 UTC) #6
mmenke
On 2017/05/24 15:45:06, xunjieli wrote: > Matt: what do you think about this approach? > ...
3 years, 7 months ago (2017-05-24 15:51:46 UTC) #7
mmenke
On 2017/05/24 15:51:46, mmenke wrote: > On 2017/05/24 15:45:06, xunjieli wrote: > > Matt: what ...
3 years, 7 months ago (2017-05-24 15:52:27 UTC) #8
xunjieli
On 2017/05/24 15:52:27, mmenke wrote: > On 2017/05/24 15:51:46, mmenke wrote: > > On 2017/05/24 ...
3 years, 7 months ago (2017-05-24 16:01:55 UTC) #9
mmenke
On 2017/05/24 16:01:55, xunjieli wrote: > On 2017/05/24 15:52:27, mmenke wrote: > > On 2017/05/24 ...
3 years, 7 months ago (2017-05-24 16:06:40 UTC) #10
mmenke
https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc File net/url_request/url_request_context.cc (right): https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc#newcode153 net/url_request/url_request_context.cc:153: std::numeric_limits<base::HistogramBase::Sample>::max() - 1); Erm...wait...is this right? SHould this be ...
3 years, 7 months ago (2017-05-24 16:07:52 UTC) #11
xunjieli
+ asvitkine@ Alexei, could you comment on the UMA question below. Thank you! https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc File ...
3 years, 7 months ago (2017-05-24 16:18:16 UTC) #13
Alexei Svitkine (slow)
https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc File net/url_request/url_request_context.cc (right): https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc#newcode153 net/url_request/url_request_context.cc:153: std::numeric_limits<base::HistogramBase::Sample>::max() - 1); On 2017/05/24 16:18:16, xunjieli wrote: > ...
3 years, 7 months ago (2017-05-24 17:13:29 UTC) #14
xunjieli
https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc File net/url_request/url_request_context.cc (right): https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc#newcode153 net/url_request/url_request_context.cc:153: std::numeric_limits<base::HistogramBase::Sample>::max() - 1); On 2017/05/24 17:13:29, Alexei Svitkine (slow) ...
3 years, 7 months ago (2017-05-24 17:23:02 UTC) #16
Ramin Halavati
On 2017/05/24 17:23:02, xunjieli wrote: > https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc > File net/url_request/url_request_context.cc (right): > > https://codereview.chromium.org/2897143003/diff/40001/net/url_request/url_request_context.cc#newcode153 > ...
3 years, 7 months ago (2017-05-25 06:11:39 UTC) #17
Alexei Svitkine (slow)
On 2017/05/25 06:11:39, Ramin Halavati wrote: > On 2017/05/24 17:23:02, xunjieli wrote: > > > ...
3 years, 7 months ago (2017-05-25 14:39:13 UTC) #18
xunjieli
> Please use UMA_HISTOGRAM_SPARSE_SLOWLY to log the histogram. Done. Thanks! PTAL. Ramin's CL has landed. ...
3 years, 7 months ago (2017-05-25 16:04:14 UTC) #20
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2897143003/diff/100001/tools/metrics/histograms/enums.xml File tools/metrics/histograms/enums.xml (right): https://codereview.chromium.org/2897143003/diff/100001/tools/metrics/histograms/enums.xml#newcode35492 tools/metrics/histograms/enums.xml:35492: +<enum name="URLRequestAnnotationType" type="int"> Please add a comment here ...
3 years, 7 months ago (2017-05-25 16:23:08 UTC) #21
xunjieli
Thanks! https://codereview.chromium.org/2897143003/diff/100001/tools/metrics/histograms/enums.xml File tools/metrics/histograms/enums.xml (right): https://codereview.chromium.org/2897143003/diff/100001/tools/metrics/histograms/enums.xml#newcode35492 tools/metrics/histograms/enums.xml:35492: +<enum name="URLRequestAnnotationType" type="int"> On 2017/05/25 16:23:08, Alexei Svitkine ...
3 years, 7 months ago (2017-05-25 16:55:37 UTC) #22
xunjieli
Matt, are you fine with me landing this now? Ramin is working on the validation ...
3 years, 7 months ago (2017-05-25 17:00:30 UTC) #26
mmenke
On 2017/05/25 17:00:30, xunjieli wrote: > Matt, are you fine with me landing this now? ...
3 years, 7 months ago (2017-05-25 17:15:19 UTC) #27
mmenke
On 2017/05/25 17:15:19, mmenke wrote: > On 2017/05/25 17:00:30, xunjieli wrote: > > Matt, are ...
3 years, 7 months ago (2017-05-25 17:16:26 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2897143003/120001
3 years, 7 months ago (2017-05-25 17:17:36 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 18:11:28 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/669c310279272d3202f2784c4323...

Powered by Google App Engine
This is Rietveld 408576698