Adding instrumentation to locate the source of jankiness.
commit3b6d4f8fc68682ba786a1a0c8fcb6b7005d7e8cf
authorpkasting <pkasting@chromium.org>
Fri, 6 Feb 2015 03:49:16 +0000 (5 19:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 6 Feb 2015 03:50:07 +0000 (6 03:50 +0000)
treedf5816b8bb5fed687cbdc8371932efc94b2989a3
parentdbec99efb805e22b77b5c2d18a2f21e405fbc5cf
Adding instrumentation to locate the source of jankiness.

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.
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.

BUG=455884,455942,455952
TEST=none
TBR=mmenke,michaeln,zea

Review URL: https://codereview.chromium.org/900793009

Cr-Commit-Position: refs/heads/master@{#314970}
19 files changed:
chrome/browser/net/pref_proxy_config_tracker_impl.cc
content/browser/appcache/appcache_url_request_job.cc
content/browser/loader/resource_dispatcher_host_impl.cc
content/browser/loader/resource_loader.cc
content/browser/service_worker/service_worker_read_from_cache_job.cc
content/browser/service_worker/service_worker_write_to_cache_job.cc
google_apis/gcm/engine/connection_factory_impl.cc
jingle/glue/proxy_resolving_client_socket.cc
net/http/http_proxy_client_socket_pool.cc
net/http/http_stream_factory_impl_job.cc
net/proxy/polling_proxy_config_service.cc
net/proxy/proxy_service.cc
net/socket/client_socket_pool_base.cc
net/socket/socks_client_socket_pool.cc
net/socket/ssl_client_socket_pool.cc
net/tools/net_watcher/net_watcher.cc
net/url_request/url_request.cc
net/url_request/url_request_ftp_job.cc
net/url_request/url_request_http_job.cc