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

Issue 696483002: Instrumenting URLRequestJob::NotifyHeadersComplete to locate the source of jankiness (Closed)

Created:
6 years, 1 month ago by vadimt
Modified:
6 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Instrumenting URLRequestJob::NotifyHeadersComplete to locate the source of jankiness Previous instrumentations showed that URLRequestJob::NotifyHeadersComplete alone is responsible for ~57.1 janks per hour in IO thread. I need to instrument the code inside it to find out which part causes jank. This is a mechanical change that adds instrumentation required to locate the source of jankiness (i.e. a long-running fragment of code executed as a part of the task that causes jank) in the code. See the bug for details on what kind of jank we are after. A number of similar CLs were landed, and none of them caused issues. They've helped to find and fix janky code. The code of the instrumentation is highly optimized and is not expected to affect performance. The code simply creates a diagnostic task which is identical to ones created by PostTask or IPC message handlers. The task gets created only in developer build and in Canary channel. BUG=423948 Committed: https://crrev.com/844c155753d7e42619a437ef6f3036aaf466e140 Cr-Commit-Position: refs/heads/master@{#302694}

Patch Set 1 #

Total comments: 5

Patch Set 2 : mmenke@ comments #

Patch Set 3 : More review comments. #

Patch Set 4 : Indent fix #

Total comments: 6

Patch Set 5 : More mmenke@ comments. #

Total comments: 8

Patch Set 6 : mark@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -6 lines) Patch
M base/profiler/scoped_tracker.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 14 chunks +80 lines, -0 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 7 chunks +44 lines, -5 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 3 4 5 chunks +53 lines, -1 line 0 comments Download

Messages

Total messages: 23 (4 generated)
vadimt
asanka@, please provide OWNER's approval
6 years, 1 month ago (2014-10-30 19:31:01 UTC) #2
asanka
Tossing at Matt FHI. My guess is that the jank comes from the delegates, rather ...
6 years, 1 month ago (2014-10-31 04:32:30 UTC) #4
mmenke
https://codereview.chromium.org/696483002/diff/1/net/url_request/url_request_job.cc File net/url_request/url_request_job.cc (right): https://codereview.chromium.org/696483002/diff/1/net/url_request/url_request_job.cc#newcode331 net/url_request/url_request_job.cc:331: tracked_objects::ScopedTracker tracking_profile1( Could we get some docs on this ...
6 years, 1 month ago (2014-10-31 16:52:15 UTC) #5
asanka
+1 to Matt's concerns. Are you also instrumenting the common URLRequest::Delegates? In particular I don't ...
6 years, 1 month ago (2014-10-31 18:01:41 UTC) #6
mmenke
On 2014/10/31 18:01:41, asanka wrote: > +1 to Matt's concerns. Are you also instrumenting the ...
6 years, 1 month ago (2014-10-31 18:21:26 UTC) #7
mmenke
On 2014/10/31 18:21:26, mmenke wrote: > On 2014/10/31 18:01:41, asanka wrote: > > +1 to ...
6 years, 1 month ago (2014-10-31 18:23:55 UTC) #8
vadimt
I added some changes (it took 3 patches). I instrumented calls to virtual calls of ...
6 years, 1 month ago (2014-10-31 23:38:33 UTC) #9
mmenke
https://codereview.chromium.org/696483002/diff/60001/base/profiler/scoped_tracker.h File base/profiler/scoped_tracker.h (right): https://codereview.chromium.org/696483002/diff/60001/base/profiler/scoped_tracker.h#newcode29 base/profiler/scoped_tracker.h:29: // tasks. Ahh...This is the important detail I was ...
6 years, 1 month ago (2014-11-03 16:19:15 UTC) #10
vadimt
Addressed comments + rebase. https://codereview.chromium.org/696483002/diff/60001/net/url_request/url_request_job.cc File net/url_request/url_request_job.cc (right): https://codereview.chromium.org/696483002/diff/60001/net/url_request/url_request_job.cc#newcode330 net/url_request/url_request_job.cc:330: // TODO(vadimt): Remove ScopedTracker below ...
6 years, 1 month ago (2014-11-04 01:04:23 UTC) #11
mmenke
LGTM https://codereview.chromium.org/696483002/diff/60001/net/url_request/url_request_job.cc File net/url_request/url_request_job.cc (right): https://codereview.chromium.org/696483002/diff/60001/net/url_request/url_request_job.cc#newcode330 net/url_request/url_request_job.cc:330: // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is ...
6 years, 1 month ago (2014-11-04 19:50:13 UTC) #12
vadimt
mark@, please review changes in base/
6 years, 1 month ago (2014-11-04 20:06:20 UTC) #13
vadimt
mark@chromium.org: Please review changes in base
6 years, 1 month ago (2014-11-04 20:08:08 UTC) #15
vadimt
mark@chromium.org: Please review changes in base
6 years, 1 month ago (2014-11-04 20:08:10 UTC) #16
Mark Mentovai
https://codereview.chromium.org/696483002/diff/80001/base/profiler/scoped_tracker.h File base/profiler/scoped_tracker.h (right): https://codereview.chromium.org/696483002/diff/80001/base/profiler/scoped_tracker.h#newcode26 base/profiler/scoped_tracker.h:26: // 2. That task extends from the object's constructor ...
6 years, 1 month ago (2014-11-04 20:53:42 UTC) #17
vadimt
https://codereview.chromium.org/696483002/diff/80001/base/profiler/scoped_tracker.h File base/profiler/scoped_tracker.h (right): https://codereview.chromium.org/696483002/diff/80001/base/profiler/scoped_tracker.h#newcode26 base/profiler/scoped_tracker.h:26: // 2. That task extends from the object's constructor ...
6 years, 1 month ago (2014-11-04 21:11:14 UTC) #18
Mark Mentovai
LGTM in base.
6 years, 1 month ago (2014-11-04 21:19:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696483002/100001
6 years, 1 month ago (2014-11-04 21:25:42 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-04 22:56:12 UTC) #22
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 22:56:50 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/844c155753d7e42619a437ef6f3036aaf466e140
Cr-Commit-Position: refs/heads/master@{#302694}

Powered by Google App Engine
This is Rietveld 408576698