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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add metrics and support for non-ASCII text messages to Java endpoints Created 3 years, 11 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..9aae4f10fa679381000b7b0f746e9f609eaeb585 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,7 +112,13 @@ void WebBlobRegistryImpl::removeBlobDataRef(const WebString& uuid) {
void WebBlobRegistryImpl::registerPublicBlobURL(const WebURL& url,
const WebString& uuid) {
+ // Measure how much jank this synchronous IPC is introducing.
+ base::TimeTicks time_before = base::TimeTicks::Now();
+
sender_->Send(new BlobHostMsg_RegisterPublicURL(url, uuid.utf8()));
+
+ base::TimeDelta time_delta = base::TimeTicks::Now() - time_before;
+ UMA_HISTOGRAM_TIMES("Storage.Blob.RegisterPublicURLTime", time_delta);
}
void WebBlobRegistryImpl::revokePublicBlobURL(const WebURL& url) {

Powered by Google App Engine
This is Rietveld 408576698