Instrumenting callbacks to InFlightBackendIO.
commit6452bca69783b5041329a88a012762ebc10f7a9c
authorvadimt <vadimt@chromium.org>
Fri, 21 Nov 2014 21:16:39 +0000 (21 13:16 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Nov 2014 21:17:06 +0000 (21 21:17 +0000)
treefdaeb600c5358e6c8c59acd4698671c3d064ca46
parent4b9e0b4c46d1027361ec0dcbc81033dea7de3ce2
Instrumenting callbacks to InFlightBackendIO.

Earlier instrumentations showed that the jank for this bug comes from one of completion callbacks.

This code wraps passed callbacks with instrumentations, so that we know which operation's callback causes jank.

This CL reimplements callback wrapping, which was originally implemented in a wrong way.

BUG=422516

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

Cr-Commit-Position: refs/heads/master@{#305281}
base/profiler/scoped_tracker.cc
base/profiler/scoped_tracker.h
net/disk_cache/blockfile/in_flight_backend_io.cc