summaryrefslogtreecommitdiffstats
path: root/storage
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 /storage
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 'storage')
-rw-r--r--storage/browser/quota/quota_manager.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/browser/quota/quota_manager.cc b/storage/browser/quota/quota_manager.cc
index b715f6b..55f00a0 100644
--- a/storage/browser/quota/quota_manager.cc
+++ b/storage/browser/quota/quota_manager.cc
@@ -16,6 +16,7 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/metrics/histogram.h"
+#include "base/profiler/scoped_tracker.h"
#include "base/sequenced_task_runner.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
@@ -830,6 +831,10 @@ void QuotaManager::GetUsageAndQuotaForWebApps(
const GURL& origin,
StorageType type,
const GetUsageAndQuotaCallback& callback) {
+ // TODO(pkasting): Remove ScopedTracker below once crbug.com/477117 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "477117 QuotaManager::GetUsageAndQuotaForWebApps"));
if (type != kStorageTypeTemporary &&
type != kStorageTypePersistent &&
type != kStorageTypeSyncable) {