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

Unified Diff: ipc/ipc_message.h

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_win.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.h
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h
index 3c629603ce3e8c3b7662680a74018143a41227aa..1ae9e759729d5b1991a8954b54fb8056fb217a62 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -224,9 +224,13 @@ class IPC_EXPORT Message : public Pickle {
bool dont_log() const { return dont_log_; }
#endif
- // Called at various points between send and receive to track message.
- void TraceMessageStep() {
- TRACE_EVENT_ASYNC_STEP0("ipc", "IPC", header()->flags, "step");
+ // Called to trace when message is sent.
+ void TraceMessageBegin() {
+ TRACE_EVENT_FLOW_BEGIN0("ipc", "IPC", header()->flags);
+ }
+ // Called to trace when message is received.
+ void TraceMessageEnd() {
+ TRACE_EVENT_FLOW_END0("ipc", "IPC", header()->flags);
}
protected:
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698