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

Issue 732633002: Adding instrumentation to locate the source of jankiness. (Closed)

Created:
6 years, 1 month ago by vadimt
Modified:
6 years, 1 month ago
CC:
chromium-reviews, asanka, cbentzel+watch_chromium.org, chromoting-reviews_chromium.org, tzik, benjhayden+dwatch_chromium.org, serviceworker-reviews, jam, jsbell+serviceworker_chromium.org, nhiroki, shishir+watch_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding instrumentation to locate the source of jankiness. Please see the bug for the context. Prior instrumentations showed: The jank happens in more than 1 place: URLRequest::Delegate::OnResponseStarted 34.3 jph NetworkDelegate::OnRawBytesRead 16.4 jph URLRequest::Delegate::OnReadCompleted 7.62 jph ... (the list continues, but further jankiness numbers are quite low) 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 TBR=jianli,danakj,jhawkins Committed: https://crrev.com/81ef0df2b58b26110066d43ea6a55f9f23926aea Cr-Commit-Position: refs/heads/master@{#304653}

Patch Set 1 #

Patch Set 2 : jamiewalch@ comments #

Patch Set 3 : vitalbuka@ comments #

Total comments: 6

Patch Set 4 : mmenke@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -7 lines) Patch
M chrome/browser/download/download_resource_throttle.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetcher.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/appcache/appcache_update_job.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/fileapi/mock_url_request_delegate.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/loader/power_save_block_resource_throttle.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 11 chunks +63 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M net/url_request/sdch_dictionary_fetcher.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M net/websockets/websocket_stream.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M storage/browser/fileapi/file_writer_delegate.cc View 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
vadimt
mmenke, please review chrome/browser/net, content/browser/loader and net/ vitalybuka, cloud print jamiewalch, remoting danakj, storage/ nick, ...
6 years, 1 month ago (2014-11-14 16:47:32 UTC) #2
Jamie
Nothing in remoting/ gets compiled into Chrome, so I don't think you need the changes ...
6 years, 1 month ago (2014-11-14 18:26:45 UTC) #3
vadimt
Done
6 years, 1 month ago (2014-11-14 19:12:20 UTC) #4
Vitaly Buka (NO REVIEWS)
cloud print lgtm
6 years, 1 month ago (2014-11-14 22:18:51 UTC) #6
Vitaly Buka (NO REVIEWS)
On 2014/11/14 22:18:51, Vitaly Buka wrote: > cloud print lgtm Actually cloud print change is ...
6 years, 1 month ago (2014-11-14 22:24:02 UTC) #7
vadimt
Thanks; reverted the file.
6 years, 1 month ago (2014-11-14 22:35:31 UTC) #8
michaeln
browser/appcache + browser/service_worker lgtm
6 years, 1 month ago (2014-11-15 00:52:21 UTC) #10
Paweł Hajdan Jr.
resource_throttle LGTM
6 years, 1 month ago (2014-11-17 10:36:58 UTC) #11
mmenke
You've missed a whole bunch of throttles and ResourceHandlers. Is this deliberate? https://codereview.chromium.org/732633002/diff/40001/chrome/browser/net/connection_tester.cc File chrome/browser/net/connection_tester.cc ...
6 years, 1 month ago (2014-11-17 15:38:16 UTC) #12
ncarter (slow)
task_manager lgtm
6 years, 1 month ago (2014-11-18 01:08:24 UTC) #13
vadimt
mmenke@: Yes. What you see is a combination of 2 kinds of changes: 1. Changes ...
6 years, 1 month ago (2014-11-18 01:14:27 UTC) #14
mmenke
LGTM
6 years, 1 month ago (2014-11-18 15:15:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/732633002/60001
6 years, 1 month ago (2014-11-18 18:48:56 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-18 19:42:46 UTC) #18
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 19:44:19 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/81ef0df2b58b26110066d43ea6a55f9f23926aea
Cr-Commit-Position: refs/heads/master@{#304653}

Powered by Google App Engine
This is Rietveld 408576698