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

Issue 2704243003: Do not schedule to load pending startable request on RemoveRequest (Closed)

Created:
3 years, 10 months ago by Charlie Harrison
Modified:
3 years, 9 months ago
Reviewers:
kinuko, Steven Holte
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not schedule to load pending startable request on RemoveRequest This may be causing too many tasks to be posted in some situations. To ease understanding, this patch also adds two trace events to the relevant methods. BUG=690290 Review-Url: https://codereview.chromium.org/2704243003 Cr-Commit-Position: refs/heads/master@{#453459} Committed: https://chromium.googlesource.com/chromium/src/+/a17c6984f4b9369e8ce061018d31e4ecf64f7fdf

Patch Set 1 #

Patch Set 2 : add trace events #

Patch Set 3 : add histogram #

Total comments: 3

Patch Set 4 : just count scans #

Total comments: 1

Patch Set 5 : remove unused code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -10 lines) Patch
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 6 chunks +20 lines, -10 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
Charlie Harrison
kinuko: PTAL?
3 years, 10 months ago (2017-02-21 15:08:01 UTC) #8
kinuko
Could help me understand-- so RemoveRequest is called when request's done or when it's cancelled, ...
3 years, 10 months ago (2017-02-22 01:55:31 UTC) #9
Charlie Harrison
On 2017/02/22 01:55:31, kinuko wrote: > Could help me understand-- so RemoveRequest is called when ...
3 years, 10 months ago (2017-02-22 02:05:25 UTC) #10
kinuko
On 2017/02/22 02:05:25, Charlie Harrison wrote: > On 2017/02/22 01:55:31, kinuko wrote: > > Could ...
3 years, 10 months ago (2017-02-22 03:01:53 UTC) #11
kinuko
On 2017/02/22 03:01:53, kinuko wrote: > On 2017/02/22 02:05:25, Charlie Harrison wrote: > > On ...
3 years, 10 months ago (2017-02-22 05:32:40 UTC) #12
Charlie Harrison
On 2017/02/22 05:32:40, kinuko wrote: > On 2017/02/22 03:01:53, kinuko wrote: > > On 2017/02/22 ...
3 years, 10 months ago (2017-02-22 13:03:50 UTC) #13
kinuko
On 2017/02/22 13:03:50, Charlie Harrison wrote: > On 2017/02/22 05:32:40, kinuko wrote: > > On ...
3 years, 10 months ago (2017-02-23 02:50:30 UTC) #14
Charlie Harrison
Hey kinuko@, this has changed a bit since you last reviewed, since I added a ...
3 years, 10 months ago (2017-02-23 17:40:27 UTC) #17
kinuko
(Sorry for high review latency) https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc#newcode778 content/browser/loader/resource_scheduler.cc:778: num_skipped_request_scans_for_delayed_start_ += pending_requests_.size(); Why ...
3 years, 10 months ago (2017-02-24 01:38:28 UTC) #20
kinuko
https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc#newcode778 content/browser/loader/resource_scheduler.cc:778: num_skipped_request_scans_for_delayed_start_ += pending_requests_.size(); On 2017/02/24 01:38:28, kinuko wrote: > ...
3 years, 10 months ago (2017-02-24 01:55:45 UTC) #21
Charlie Harrison
https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc#newcode778 content/browser/loader/resource_scheduler.cc:778: num_skipped_request_scans_for_delayed_start_ += pending_requests_.size(); On 2017/02/24 01:55:45, kinuko wrote: > ...
3 years, 10 months ago (2017-02-24 02:02:00 UTC) #22
kinuko
On 2017/02/24 02:02:00, Charlie Harrison wrote: > https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc > File content/browser/loader/resource_scheduler.cc (right): > > https://codereview.chromium.org/2704243003/diff/40001/content/browser/loader/resource_scheduler.cc#newcode778 ...
3 years, 10 months ago (2017-02-24 02:47:24 UTC) #23
Charlie Harrison
I've changed it to just count the number of skipped scans, PTAL?
3 years, 10 months ago (2017-02-24 21:25:54 UTC) #25
kinuko
Thanks! lgtm https://codereview.chromium.org/2704243003/diff/60001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2704243003/diff/60001/content/browser/loader/resource_scheduler.cc#newcode186 content/browser/loader/resource_scheduler.cc:186: size_t size() { return queue_.size(); } Not ...
3 years, 10 months ago (2017-02-25 02:28:47 UTC) #29
Charlie Harrison
Thanks kinuko. +holte for a new histogram.
3 years, 9 months ago (2017-02-26 22:37:53 UTC) #31
Steven Holte
lgtm
3 years, 9 months ago (2017-02-28 00:37:20 UTC) #32
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/2704243003/80001
3 years, 9 months ago (2017-02-28 00:40:00 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 02:19:08 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a17c6984f4b9369e8ce061018d31...

Powered by Google App Engine
This is Rietveld 408576698