Index: ppapi/proxy/plugin_dispatcher.cc |
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc |
index 0f15645e6b7b77b9b46c5ba30e5afcdffcc170d7..91ac68268ccd01c026398cd759d62dfe2f846ff0 100644 |
--- a/ppapi/proxy/plugin_dispatcher.cc |
+++ b/ppapi/proxy/plugin_dispatcher.cc |
@@ -9,6 +9,7 @@ |
#include "base/compiler_specific.h" |
#include "base/logging.h" |
#include "base/message_loop/message_loop.h" |
+#include "base/metrics/histogram_macros.h" |
#include "base/trace_event/trace_event.h" |
#include "ipc/ipc_message.h" |
#include "ipc/ipc_sync_channel.h" |
@@ -206,6 +207,7 @@ bool PluginDispatcher::Send(IPC::Message* msg) { |
if (msg->is_sync()) { |
// Synchronous messages might be re-entrant, so we need to drop the lock. |
ProxyAutoUnlock unlock; |
+ SCOPED_UMA_HISTOGRAM_TIMER("Plugin.PpapiSyncIPCTime"); |
bbudge
2015/03/25 22:28:14
There are about a dozen usages of this in Chromium
gab
2015/03/25 22:45:57
Mark will know better than I, but FWIU, this is a
Mark P
2015/03/25 22:56:56
Yes, it should be as fast as doing the local varia
bbudge
2015/03/25 23:24:19
It's hard to tell looking at the macro definition,
gab
2015/03/26 00:07:58
But it's a static instantiation so it only happens
|
return SendMessage(msg); |
} |
return SendMessage(msg); |