Commit 25872fa6 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink Committed by Commit Bot

blink::BlobDataHandle should be thread safe, so use thread safe histogram.

Bug: 780126
Change-Id: I22a0ca4cc6d856cb30cdc767d5135c21ccb4da90
Reviewed-on: https://chromium-review.googlesource.com/747123
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: default avatarDaniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512931}
parent 825338de
...@@ -400,7 +400,8 @@ BlobDataHandle::BlobDataHandle(const String& uuid, ...@@ -400,7 +400,8 @@ BlobDataHandle::BlobDataHandle(const String& uuid,
size_(size), size_(size),
is_single_unknown_size_file_(false) { is_single_unknown_size_file_(false) {
if (RuntimeEnabledFeatures::MojoBlobsEnabled()) { if (RuntimeEnabledFeatures::MojoBlobsEnabled()) {
SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Storage.Blob.GetBlobFromUUIDTime"); SCOPED_BLINK_UMA_HISTOGRAM_TIMER_THREAD_SAFE(
"Storage.Blob.GetBlobFromUUIDTime");
// TODO(mek): Going through InterfaceProvider to get a BlobRegistryPtr // TODO(mek): Going through InterfaceProvider to get a BlobRegistryPtr
// ends up going through the main thread. Ideally workers wouldn't need // ends up going through the main thread. Ideally workers wouldn't need
// to do that. // to do that.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment