Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2203)

Unified Diff: content/child/blob_storage/webblobregistry_impl.cc

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/blob_storage/webblobregistry_impl.cc
diff --git a/content/child/blob_storage/webblobregistry_impl.cc b/content/child/blob_storage/webblobregistry_impl.cc
index a1ef5bec59a67a9dac487332357d30ed32c6d922..5032ed19446c6116fb48c6f6f4f487d922779a9e 100644
--- a/content/child/blob_storage/webblobregistry_impl.cc
+++ b/content/child/blob_storage/webblobregistry_impl.cc
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/shared_memory.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/histogram_macros.h"
#include "base/numerics/safe_conversions.h"
#include "base/trace_event/trace_event.h"
#include "content/child/blob_storage/blob_consolidation.h"
@@ -111,6 +112,9 @@ void WebBlobRegistryImpl::removeBlobDataRef(const WebString& uuid) {
void WebBlobRegistryImpl::registerPublicBlobURL(const WebURL& url,
const WebString& uuid) {
+ // Measure how much jank the following synchronous IPC introduces.
+ SCOPED_UMA_HISTOGRAM_TIMER("Storage.Blob.RegisterPublicURLTime");
+
sender_->Send(new BlobHostMsg_RegisterPublicURL(url, uuid.utf8()));
}

Powered by Google App Engine
This is Rietveld 408576698