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

Issue 2579933002: Add logging for ResourceScheduler events. (Closed)

Created:
4 years ago by Randy Smith (Not in Mondays)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, eroman, darin-cc_chromium.org, arv+watch_chromium.org, loading-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add logging for ResourceScheduler events. Specifically, log the ResourceScheduler throttling a request, and starting a throttled requests. This CL also includes modifying some aspects of URLRequest logging: * Log priority and url at URLRequest creation time (so if the ResourceScheduler blocks it, there will be some identifier for the request). * Remove priority from URLRequest::StartJob logging (redundant with logging in the constructor and SetPriority method). * Always log SetPriority (it's relevant to the ResourceScheduler even if there's no job attached to the URLRequest). BUG=None R=mmenke@chromium.org R=csharrison@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/37a0ddea749eae80bad9b2e10fd94bc3af8000a2 Cr-Commit-Position: refs/heads/master@{#441259}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Incorporated Matt's comments. #

Patch Set 3 : Remove redudant event and tweak URLRequest blocked logging. #

Patch Set 4 : Change 'delegate_info' to 'delegate_blocked_by'. #

Patch Set 5 : Sync'd to p440510 #

Patch Set 6 : Get rid of auto-reset of triggers #

Total comments: 3

Patch Set 7 : DCHECK to make sure that all async starts have defined triggers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -27 lines) Patch
M chrome/browser/resources/net_internals/source_entry.js View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 9 chunks +54 lines, -9 lines 0 comments Download
M net/log/net_log_event_type_list.h View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M net/url_request/url_request.cc View 1 2 3 5 chunks +11 lines, -10 lines 0 comments Download
M net/url_request/url_request_netlog_params.h View 1 chunk +6 lines, -1 line 0 comments Download
M net/url_request/url_request_netlog_params.cc View 1 chunk +10 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (28 generated)
Randy Smith (Not in Mondays)
Charles, Matt: PTAL? Charles: content/browser/loader/resource_scheduler.cc, net/log/net_log_event_type_list.h (and more generally, the value and depth of the ...
4 years ago (2016-12-15 23:38:08 UTC) #6
Randy Smith (Not in Mondays)
On 2016/12/15 23:38:08, Randy Smith - Not in Mondays wrote: > Charles, Matt: PTAL? > ...
4 years ago (2016-12-16 00:14:31 UTC) #7
mmenke
On 2016/12/16 00:14:31, Randy Smith - Not in Mondays wrote: > On 2016/12/15 23:38:08, Randy ...
4 years ago (2016-12-16 03:54:33 UTC) #8
mmenke
On 2016/12/16 03:54:33, mmenke (Out Dec 17 to Jan 2) wrote: > On 2016/12/16 00:14:31, ...
4 years ago (2016-12-16 03:54:55 UTC) #9
mmenke
https://codereview.chromium.org/2579933002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2579933002/diff/1/content/browser/loader/resource_scheduler.cc#newcode78 content/browser/loader/resource_scheduler.cc:78: return "HTTPS proxy detected"; Note that we support non-SPDY ...
4 years ago (2016-12-16 16:46:46 UTC) #12
Randy Smith (Not in Mondays)
Comments incorporated; PTAL? I didn't like the fact that in the net-internals output the "delegate_info" ...
4 years ago (2016-12-20 16:54:17 UTC) #23
mmenke
Going to defer to Charlie for the rest of the review because I'm laz...erm...because he's ...
3 years, 11 months ago (2017-01-03 20:32:29 UTC) #24
Charlie Harrison
LGTM, though I'll have another look if you decide to remove the AutoReset. https://codereview.chromium.org/2579933002/diff/1/content/browser/loader/resource_scheduler.cc File ...
3 years, 11 months ago (2017-01-03 21:22:49 UTC) #25
mmenke
https://codereview.chromium.org/2579933002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2579933002/diff/1/content/browser/loader/resource_scheduler.cc#newcode134 content/browser/loader/resource_scheduler.cc:134: using ScopedTrigger = ScopedSetter<RequestStartTrigger>; On 2017/01/03 21:22:49, Charlie Harrison ...
3 years, 11 months ago (2017-01-03 21:24:44 UTC) #26
Randy Smith (Not in Mondays)
Object in future was smaller than it appeared :-}. Charles, PTAL? https://codereview.chromium.org/2579933002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): ...
3 years, 11 months ago (2017-01-03 22:19:29 UTC) #27
mmenke
It's...it's the most beauteous CL I've ever seen. *sniff*. :) LGTM https://codereview.chromium.org/2579933002/diff/100001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): ...
3 years, 11 months ago (2017-01-03 22:24:18 UTC) #30
Charlie Harrison
still LGTM yeah that wasn't so bad https://codereview.chromium.org/2579933002/diff/100001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2579933002/diff/100001/content/browser/loader/resource_scheduler.cc#newcode601 content/browser/loader/resource_scheduler.cc:601: if (start_mode ...
3 years, 11 months ago (2017-01-03 22:26:47 UTC) #31
Randy Smith (Not in Mondays)
Thanks for the reviews! https://codereview.chromium.org/2579933002/diff/100001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2579933002/diff/100001/content/browser/loader/resource_scheduler.cc#newcode601 content/browser/loader/resource_scheduler.cc:601: if (start_mode == START_ASYNC) { ...
3 years, 11 months ago (2017-01-03 22:37:09 UTC) #34
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/2579933002/120001
3 years, 11 months ago (2017-01-04 00:07:21 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
3 years, 11 months ago (2017-01-04 00:13:13 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 00:16:50 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/37a0ddea749eae80bad9b2e10fd94bc3af8000a2
Cr-Commit-Position: refs/heads/master@{#441259}

Powered by Google App Engine
This is Rietveld 408576698