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

Unified Diff: ipc/ipc_channel_reader.cc

Issue 10913242: Trace PostTasks from post to run (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 years, 3 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') | ipc/ipc_channel_win.cc » ('j') | 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 8e8b6a65c4c9112469a79e78175dc6dc92183fd3..2f291a93cfe63cd5f5e80209acb60899487d50d8 100644
--- a/ipc/ipc_channel_reader.cc
+++ b/ipc/ipc_channel_reader.cc
@@ -4,6 +4,9 @@
#include "ipc/ipc_channel_reader.h"
+#include "ipc/ipc_logging.h"
+#include "ipc/ipc_message_macros.h"
+
namespace IPC {
namespace internal {
@@ -69,7 +72,17 @@ bool ChannelReader::DispatchInputData(const char* input_data,
if (!WillDispatchInputMessage(&m))
return false;
- m.TraceMessageStep();
+#ifdef IPC_MESSAGE_LOG_ENABLED
+ Logging* logger = Logging::GetInstance();
+ std::string name;
+ logger->GetMessageText(m.type(), &name, &m, NULL);
+ TRACE_EVENT1("ipc", "ChannelReader::DispatchInputData", "name", name);
+#else
+ TRACE_EVENT2("ipc", "ChannelReader::DispatchInputData",
+ "class", IPC_MESSAGE_ID_CLASS(m.type()),
+ "line", IPC_MESSAGE_ID_LINE(m.type()));
+#endif
+ m.TraceMessageEnd();
if (IsHelloMessage(m))
HandleHelloMessage(m);
else
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698