diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 19:35:15 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 19:35:15 +0000 |
commit | 19b385e252fe40c8972d8c472510f77ca1d4dc72 (patch) | |
tree | 3d0b11ad9b437f2ce78aba475b9e07c9df991a8a /ppapi/proxy/plugin_dispatcher.cc | |
parent | 4449a40cf2ae89a81de9ef539b0c1d4422a4e1ca (diff) | |
download | chromium_src-19b385e252fe40c8972d8c472510f77ca1d4dc72.zip chromium_src-19b385e252fe40c8972d8c472510f77ca1d4dc72.tar.gz chromium_src-19b385e252fe40c8972d8c472510f77ca1d4dc72.tar.bz2 |
Instrument Pepper IPCs with the tracing stuff
BUG=none
TEST=about:gpu with Pepper Flash
Review URL: http://codereview.chromium.org/6913019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/plugin_dispatcher.cc')
-rw-r--r-- | ppapi/proxy/plugin_dispatcher.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc index f4dc945..26a35e3 100644 --- a/ppapi/proxy/plugin_dispatcher.cc +++ b/ppapi/proxy/plugin_dispatcher.cc @@ -10,6 +10,7 @@ #include "base/logging.h" #include "ipc/ipc_message.h" #include "ipc/ipc_sync_channel.h" +#include "gpu/common/gpu_trace_event.h" #include "ppapi/c/pp_errors.h" #include "ppapi/proxy/interface_proxy.h" #include "ppapi/proxy/plugin_message_filter.h" @@ -85,6 +86,9 @@ bool PluginDispatcher::IsPlugin() const { } bool PluginDispatcher::Send(IPC::Message* msg) { + GPU_TRACE_EVENT2("ppapi proxy", "PluginDispatcher::Send", + "Class", IPC_MESSAGE_ID_CLASS(msg->type()), + "Line", IPC_MESSAGE_ID_LINE(msg->type())); // We always want plugin->renderer messages to arrive in-order. If some sync // and some async messages are send in response to a synchronous // renderer->plugin call, the sync reply will be processed before the async @@ -97,6 +101,9 @@ bool PluginDispatcher::Send(IPC::Message* msg) { } bool PluginDispatcher::OnMessageReceived(const IPC::Message& msg) { + GPU_TRACE_EVENT2("ppapi proxy", "PluginDispatcher::OnMessageReceived", + "Class", IPC_MESSAGE_ID_CLASS(msg.type()), + "Line", IPC_MESSAGE_ID_LINE(msg.type())); // Handle common control messages. if (Dispatcher::OnMessageReceived(msg)) return true; |