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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Eliminate unnecessary PostTask 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/blob_transport_controller.cc
diff --git a/content/child/blob_storage/blob_transport_controller.cc b/content/child/blob_storage/blob_transport_controller.cc
index 1b01792079edee0775759258403c09ecddfb653d..252b21bb211bde1d2cae37c71e07d7d44588d72b 100644
--- a/content/child/blob_storage/blob_transport_controller.cc
+++ b/content/child/blob_storage/blob_transport_controller.cc
@@ -181,8 +181,15 @@ void BlobTransportController::InitiateBlobTransfer(
base::Unretained(BlobTransportController::GetInstance()), uuid,
base::Passed(std::move(consolidation)),
base::Passed(std::move(main_runner))));
+
+ // Measure how much jank this synchronous IPC is introducing.
+ base::TimeTicks time_before = base::TimeTicks::Now();
Alexei Svitkine (slow) 2017/02/08 19:29:29 Nit: You can make this a bit simpler by using SCOP
+
sender->Send(
new BlobStorageMsg_RegisterBlob(uuid, content_type, "", descriptions));
+
+ base::TimeDelta time_delta = base::TimeTicks::Now() - time_before;
+ UMA_HISTOGRAM_TIMES("Storage.Blob.RegisterBlobTime", time_delta);
}
void BlobTransportController::OnMemoryRequest(

Powered by Google App Engine
This is Rietveld 408576698