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

Unified Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 1034043002: Add Plugin.PpapiSyncIPCTime metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bg_thread_pri
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698