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

Unified Diff: ipc/ipc_channel_reader.cc

Issue 1239593002: Implement a new flow event API that allows binding flow events and regular events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement binding flow events to slices for PostTasks. Created 5 years, 5 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
« content/child/blink_platform_impl.cc ('K') | « ipc/ipc_channel_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_reader.cc
diff --git a/ipc/ipc_channel_reader.cc b/ipc/ipc_channel_reader.cc
index f41a0d7737e4656cd279db0de8ef83c2b9e9fbaa..4627463d9e50ccb02e3c0f6c8407bd608a76651c 100644
--- a/ipc/ipc_channel_reader.cc
+++ b/ipc/ipc_channel_reader.cc
@@ -82,12 +82,13 @@ bool ChannelReader::DispatchInputData(const char* input_data,
#ifdef IPC_MESSAGE_LOG_ENABLED
std::string name;
Logging::GetInstance()->GetMessageText(m.type(), &name, &m, NULL);
- TRACE_EVENT1("ipc,toplevel", "ChannelReader::DispatchInputData",
- "name", name);
+ TRACE_EVENT_WITH_FLOW1("ipc,toplevel", "ChannelReader::DispatchInputData",
+ m.flags(), TRACE_EVENT_FLAG_FLOW_IN, "name", name);
#else
- TRACE_EVENT2("ipc,toplevel", "ChannelReader::DispatchInputData",
- "class", IPC_MESSAGE_ID_CLASS(m.type()),
- "line", IPC_MESSAGE_ID_LINE(m.type()));
+ TRACE_EVENT_WITH_FLOW2("ipc,toplevel", "ChannelReader::DispatchInputData",
+ m.flags(), TRACE_EVENT_FLAG_FLOW_IN, "class",
+ IPC_MESSAGE_ID_CLASS(m.type()), "line",
+ IPC_MESSAGE_ID_LINE(m.type()));
#endif
m.TraceMessageEnd();
if (IsInternalMessage(m))
« content/child/blink_platform_impl.cc ('K') | « ipc/ipc_channel_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698