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

Issue 2951643003: Add UMA that periodically logs number of outstanding requests (Closed)

Created:
3 years, 6 months ago by Kunihiko Sakamoto
Modified:
3 years, 5 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, rdsmith+watch_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA that periodically logs number of outstanding requests This adds UMA to track the peak number of outstanding requests in ResourceDispatcherHostImpl. The "MultiTabLoading" variant is logged only when there are outstanding requests from multiple processes. These metrics are logged periodically every 60 seconds. BUG=729951 Review-Url: https://codereview.chromium.org/2951643003 Cr-Commit-Position: refs/heads/master@{#481838} Committed: https://chromium.googlesource.com/chromium/src/+/aa00afae68c5ae7364b91fb1cfd2a4769bc9c863

Patch Set 1 #

Total comments: 10

Patch Set 2 : comments addressed #

Total comments: 6

Patch Set 3 : MultiTabLoading -> MultipleLoadingProcesses #

Patch Set 4 : per-tab stats #

Total comments: 8

Patch Set 5 : comments addressed #

Total comments: 4

Patch Set 6 : Msec -> Sec and style fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -3 lines) Patch
M content/browser/loader/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 6 chunks +36 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 11 chunks +80 lines, -3 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (25 generated)
Kunihiko Sakamoto
Toyoshima-san, would you take a first look?
3 years, 6 months ago (2017-06-20 05:02:44 UTC) #10
Takashi Toyoshima
https://codereview.chromium.org/2951643003/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2951643003/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1990 content/browser/loader/resource_dispatcher_host_impl.cc:1990: if (outstanding_requests_stats_map_.size() >= 2 && This will report if ...
3 years, 6 months ago (2017-06-20 07:39:22 UTC) #11
Kunihiko Sakamoto
https://codereview.chromium.org/2951643003/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2951643003/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1990 content/browser/loader/resource_dispatcher_host_impl.cc:1990: if (outstanding_requests_stats_map_.size() >= 2 && On 2017/06/20 07:39:21, Takashi ...
3 years, 6 months ago (2017-06-20 08:39:29 UTC) #12
Takashi Toyoshima
lgtm
3 years, 6 months ago (2017-06-20 13:21:13 UTC) #13
Kunihiko Sakamoto
+yhirano for resource_dispatcher_host_impl +isherman for histograms PTAL, thanks!
3 years, 6 months ago (2017-06-21 01:52:57 UTC) #15
Charlie Harrison
drive-by: Let me add Helen to cc who added Net.ResourceDispatcherHost.OutstandingRequests.* metrics which seem very similar ...
3 years, 6 months ago (2017-06-21 03:24:11 UTC) #17
Kunihiko Sakamoto
On 2017/06/21 03:24:11, on gerrit - ping aggressively wrote: > drive-by: Let me add Helen ...
3 years, 6 months ago (2017-06-21 03:53:09 UTC) #18
kinuko
https://codereview.chromium.org/2951643003/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2951643003/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2528 content/browser/loader/resource_dispatcher_host_impl.cc:2528: peak_outstanding_request_count_ = num_in_flight_requests_; Intuitively I feel this should be ...
3 years, 6 months ago (2017-06-21 04:00:10 UTC) #20
Kunihiko Sakamoto
https://codereview.chromium.org/2951643003/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2951643003/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2528 content/browser/loader/resource_dispatcher_host_impl.cc:2528: peak_outstanding_request_count_ = num_in_flight_requests_; On 2017/06/21 04:00:10, kinuko wrote: > ...
3 years, 6 months ago (2017-06-21 05:25:32 UTC) #21
kinuko
https://codereview.chromium.org/2951643003/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2951643003/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2528 content/browser/loader/resource_dispatcher_host_impl.cc:2528: peak_outstanding_request_count_ = num_in_flight_requests_; On 2017/06/21 05:25:32, Kunihiko Sakamoto wrote: ...
3 years, 6 months ago (2017-06-21 07:06:49 UTC) #22
Charlie Harrison
Please let's not use (render view) routing id, we're trying to rip it out of ...
3 years, 6 months ago (2017-06-21 17:44:02 UTC) #23
xunjieli
I am not sure how useful the peak stats will be, given that the upload ...
3 years, 6 months ago (2017-06-21 17:53:12 UTC) #24
kinuko
On 2017/06/21 17:44:02, Charlie Harrison wrote: > Please let's not use (render view) routing id, ...
3 years, 6 months ago (2017-06-22 01:35:00 UTC) #25
kinuko
On 2017/06/21 17:53:12, xunjieli wrote: > I am not sure how useful the peak stats ...
3 years, 6 months ago (2017-06-22 01:58:28 UTC) #26
Kunihiko Sakamoto
Thanks all for the suggestions and comments. As per kinuko's suggestion, changed to gather per-tab ...
3 years, 6 months ago (2017-06-22 08:28:21 UTC) #27
kinuko
Thanks! This looks good to me as far as the code is temporary (and it's ...
3 years, 6 months ago (2017-06-22 08:43:22 UTC) #28
Charlie Harrison
Generally looks good. Do you have a milestone for when this will be removed (a ...
3 years, 6 months ago (2017-06-22 12:33:47 UTC) #33
Ilya Sherman
Metrics LGTM, thanks.
3 years, 6 months ago (2017-06-22 21:32:39 UTC) #34
Kunihiko Sakamoto
On 2017/06/22 12:33:47, Charlie Harrison wrote: > Generally looks good. Do you have a milestone ...
3 years, 6 months ago (2017-06-23 04:22:07 UTC) #35
kinuko
lgtm, thanks! (And thanks for reviewing Charlie as well) https://codereview.chromium.org/2951643003/diff/140001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2951643003/diff/140001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode173 content/browser/loader/resource_dispatcher_host_impl.cc:173: ...
3 years, 6 months ago (2017-06-23 04:35:06 UTC) #36
Kunihiko Sakamoto
Thanks! CQ-ing, if you have additional comments, let me address in a follow-up CL. https://codereview.chromium.org/2951643003/diff/140001/content/browser/loader/resource_dispatcher_host_impl.cc ...
3 years, 6 months ago (2017-06-23 09:08:10 UTC) #41
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/2951643003/160001
3 years, 6 months ago (2017-06-23 09:08:34 UTC) #44
commit-bot: I haz the power
Committed patchset #6 (id:160001) as https://chromium.googlesource.com/chromium/src/+/aa00afae68c5ae7364b91fb1cfd2a4769bc9c863
3 years, 6 months ago (2017-06-23 09:42:43 UTC) #47
alexmos
3 years, 5 months ago (2017-06-30 17:27:23 UTC) #49
Message was sent while issue was closed.
https://codereview.chromium.org/2951643003/diff/160001/content/browser/loader...
File content/browser/loader/resource_dispatcher_host_impl.cc (right):

https://codereview.chromium.org/2951643003/diff/160001/content/browser/loader...
content/browser/loader/resource_dispatcher_host_impl.cc:373:
!SiteIsolationPolicy::AreIsolatedOriginsEnabled()) {
Just saw this CL, and this check seems problematic.  OOPIFs have already been
shipped and enabled by default for Isolate Extensions, so this isn't going to
avoid all OOPIF scenarios.  This also doesn't check for oopif-based webview
(features::kGuestViewCrossProcessFrames), which relies on some OOPIF plumbing
and is an experiment on canary/dev/beta and likely to ship in M61.  This will
also be problematic when we start baking certain OOPIF-enabled isolated origins
into Chrome, which will likely happen within a few weeks.

Powered by Google App Engine
This is Rietveld 408576698