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

Side by Side Diff: ipc/ipc_message_utils.h

Issue 159511: posix: cut down on IPC logging spew a bit (Closed)
Patch Set: more Created 11 years, 4 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 unified diff | Download patch
« no previous file with comments | « ipc/ipc_logging.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_IPC_MESSAGE_UTILS_H_ 5 #ifndef IPC_IPC_MESSAGE_UTILS_H_
6 #define IPC_IPC_MESSAGE_UTILS_H_ 6 #define IPC_IPC_MESSAGE_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 } 746 }
747 static void Log(const param_type& p, std::wstring* l) { 747 static void Log(const param_type& p, std::wstring* l) {
748 l->append(L"<XFORM>"); 748 l->append(L"<XFORM>");
749 } 749 }
750 }; 750 };
751 #endif // defined(OS_WIN) 751 #endif // defined(OS_WIN)
752 752
753 struct LogData { 753 struct LogData {
754 std::string channel; 754 std::string channel;
755 int32 routing_id; 755 int32 routing_id;
756 uint16 type; 756 uint16 type; // "User-defined" message type, from ipc_message.h.
757 std::wstring flags; 757 std::wstring flags;
758 int64 sent; // Time that the message was sent (i.e. at Send()). 758 int64 sent; // Time that the message was sent (i.e. at Send()).
759 int64 receive; // Time before it was dispatched (i.e. before calling 759 int64 receive; // Time before it was dispatched (i.e. before calling
760 // OnMessageReceived). 760 // OnMessageReceived).
761 int64 dispatch; // Time after it was dispatched (i.e. after calling 761 int64 dispatch; // Time after it was dispatched (i.e. after calling
762 // OnMessageReceived). 762 // OnMessageReceived).
763 std::wstring message_name; 763 std::wstring message_name;
764 std::wstring params; 764 std::wstring params;
765 }; 765 };
766 766
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 ReplyParam p(a, b, c, d, e); 1233 ReplyParam p(a, b, c, d, e);
1234 WriteParam(reply, p); 1234 WriteParam(reply, p);
1235 } 1235 }
1236 }; 1236 };
1237 1237
1238 //----------------------------------------------------------------------------- 1238 //-----------------------------------------------------------------------------
1239 1239
1240 } // namespace IPC 1240 } // namespace IPC
1241 1241
1242 #endif // IPC_IPC_MESSAGE_UTILS_H_ 1242 #endif // IPC_IPC_MESSAGE_UTILS_H_
OLDNEW
« no previous file with comments | « ipc/ipc_logging.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698