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

Unified Diff: ipc/ipc_message_templates.h

Issue 1833573002: Move TRACE_EVENT in IPC message dispatch to add message name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@only_thread_name
Patch Set: Remove patch deppendency. Created 4 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 | « ipc/ipc_channel_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_templates.h
diff --git a/ipc/ipc_message_templates.h b/ipc/ipc_message_templates.h
index ac627dd55a9c604ed36e9a21db6917dab535157e..f5c28cca4a68978b3b5794d12a9d5e7108726eee 100644
--- a/ipc/ipc_message_templates.h
+++ b/ipc/ipc_message_templates.h
@@ -11,6 +11,7 @@
#include <type_traits>
#include "base/logging.h"
+#include "base/trace_event/trace_event.h"
#include "base/tuple.h"
#include "build/build_config.h"
#include "ipc/ipc_message.h"
@@ -114,6 +115,7 @@ class MessageT<Meta, std::tuple<Ins...>, void> : public Message {
S* sender,
P* parameter,
Method func) {
+ TRACE_EVENT0("ipc", Meta::kName);
Param p;
if (Read(msg, &p)) {
DispatchToMethod(obj, func, parameter, p);
@@ -162,6 +164,7 @@ class MessageT<Meta, std::tuple<Ins...>, std::tuple<Outs...>>
S* sender,
P* parameter,
Method func) {
+ TRACE_EVENT0("ipc", Meta::kName);
SendParam send_params;
bool ok = ReadSendParam(msg, &send_params);
Message* reply = SyncMessage::GenerateReply(msg);
@@ -183,6 +186,7 @@ class MessageT<Meta, std::tuple<Ins...>, std::tuple<Outs...>>
T* obj,
P* parameter,
Method func) {
+ TRACE_EVENT0("ipc", Meta::kName);
SendParam send_params;
bool ok = ReadSendParam(msg, &send_params);
Message* reply = SyncMessage::GenerateReply(msg);
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698