summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorpkasting <pkasting@chromium.org>2015-04-14 23:10:09 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-15 06:11:19 +0000
commit2053ce2c28a91cb33b8f84302670eb954cc57f5d (patch)
tree1a0aa9c202e6ba29842e87e6c3ebed07c12259a8 /net/disk_cache
parenta081e5ee1ef555ecd92d5a7e850d7f0aab95d011 (diff)
downloadchromium_src-2053ce2c28a91cb33b8f84302670eb954cc57f5d.zip
chromium_src-2053ce2c28a91cb33b8f84302670eb954cc57f5d.tar.gz
chromium_src-2053ce2c28a91cb33b8f84302670eb954cc57f5d.tar.bz2
Add instrumentation for various functions janky on the Mac IO thread.
Ultimately these will be split into more fine-grained bugs. BUG=477117 TEST=none TBR=darin,blundell,rogerta,cbentzel Review URL: https://codereview.chromium.org/1082383003 Cr-Commit-Position: refs/heads/master@{#325189}
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/blockfile/in_flight_io.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/disk_cache/blockfile/in_flight_io.cc b/net/disk_cache/blockfile/in_flight_io.cc
index 9ada7c5..d5f172b 100644
--- a/net/disk_cache/blockfile/in_flight_io.cc
+++ b/net/disk_cache/blockfile/in_flight_io.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
+#include "base/profiler/scoped_tracker.h"
#include "base/single_thread_task_runner.h"
#include "base/task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -20,6 +21,9 @@ BackgroundIO::BackgroundIO(InFlightIO* controller)
// Runs on the primary thread.
void BackgroundIO::OnIOSignalled() {
+ // TODO(pkasting): Remove ScopedTracker below once crbug.com/477117 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION("477117 BackgroundIO::OnIOSignalled"));
if (controller_)
controller_->InvokeCallback(this, false);
}