Adding instrumentation to locate the source of jankiness.
commita985fc4d71b45bbfc7475b4b4ea184bf48bc14ac
authorvadimt <vadimt@chromium.org>
Tue, 14 Oct 2014 00:05:40 +0000 (13 17:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Oct 2014 00:06:09 +0000 (14 00:06 +0000)
tree185c8081569b7d07ddecd1c0ab9c8f47fd3c0a45
parentf9bde8e4cc8a9fed1457f7146230d22fc12c4aab
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.
Landing as TBR since this is a mechanical, safe and temporary change.

This CL instruments callbacks invoked from the last "PostOrRunCallback" call in "SSLClientSocketNSS::Core::DoReadCallback".

BUG=418183
TBR=asanka@chromium.org, zea@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#299397}
google_apis/gcm/base/socket_stream.cc
net/spdy/spdy_session.cc