OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
12 #include "base/trace_event/memory_dump_request_args.h" | 12 #include "base/trace_event/memory_dump_request_args.h" |
13 #include "base/trace_event/trace_event_impl.h" | 13 #include "base/trace_event/trace_event_impl.h" |
14 #include "ipc/ipc_channel_handle.h" | 14 #include "ipc/ipc_channel_handle.h" |
15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
16 #include "ipc/ipc_message_utils.h" | 16 #include "ipc/ipc_message_utils.h" |
17 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_platform_file.h" |
18 | 18 |
19 #define IPC_MESSAGE_START TracingMsgStart | 19 #define IPC_MESSAGE_START TracingMsgStart |
20 | 20 |
21 IPC_STRUCT_TRAITS_BEGIN(base::trace_event::TraceLogStatus) | 21 IPC_STRUCT_TRAITS_BEGIN(base::trace_event::TraceLogStatus) |
22 IPC_STRUCT_TRAITS_MEMBER(event_capacity) | 22 IPC_STRUCT_TRAITS_MEMBER(event_capacity) |
23 IPC_STRUCT_TRAITS_MEMBER(event_count) | 23 IPC_STRUCT_TRAITS_MEMBER(event_count) |
24 IPC_STRUCT_TRAITS_END() | 24 IPC_STRUCT_TRAITS_END() |
25 | 25 |
26 IPC_STRUCT_TRAITS_BEGIN(base::trace_event::MemoryDumpRequestArgs) | 26 IPC_STRUCT_TRAITS_BEGIN(base::trace_event::MemoryDumpRequestArgs) |
27 IPC_STRUCT_TRAITS_MEMBER(dump_guid) | 27 IPC_STRUCT_TRAITS_MEMBER(dump_guid) |
28 IPC_STRUCT_TRAITS_MEMBER(dump_type) | 28 IPC_STRUCT_TRAITS_MEMBER(dump_type) |
| 29 IPC_STRUCT_TRAITS_MEMBER(dump_args) |
29 IPC_STRUCT_TRAITS_END() | 30 IPC_STRUCT_TRAITS_END() |
30 | 31 |
| 32 IPC_STRUCT_TRAITS_BEGIN(base::trace_event::MemoryDumpArgs) |
| 33 IPC_STRUCT_TRAITS_MEMBER(level_of_detail) |
| 34 IPC_STRUCT_TRAITS_END() |
| 35 |
| 36 IPC_ENUM_TRAITS_MAX_VALUE( |
| 37 base::trace_event::MemoryDumpArgs::LevelOfDetail, |
| 38 base::trace_event::MemoryDumpArgs::LevelOfDetail::LAST) |
| 39 |
31 IPC_ENUM_TRAITS_MAX_VALUE( | 40 IPC_ENUM_TRAITS_MAX_VALUE( |
32 base::trace_event::MemoryDumpType, | 41 base::trace_event::MemoryDumpType, |
33 static_cast<int>(base::trace_event::MemoryDumpType::LAST)) | 42 static_cast<int>(base::trace_event::MemoryDumpType::LAST)) |
34 | 43 |
35 // Sent to all child processes to enable trace event recording. | 44 // Sent to all child processes to enable trace event recording. |
36 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, | 45 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, |
37 std::string /* trace_config_str */, | 46 std::string /* trace_config_str */, |
38 base::TraceTicks /* browser_time */, | 47 base::TraceTicks /* browser_time */, |
39 uint64 /* Tracing process id (hash of child id) */) | 48 uint64 /* Tracing process id (hash of child id) */) |
40 | 49 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, | 123 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, |
115 base::trace_event::MemoryDumpRequestArgs) | 124 base::trace_event::MemoryDumpRequestArgs) |
116 | 125 |
117 // Reply to TracingMsg_ProcessMemoryDumpRequest. | 126 // Reply to TracingMsg_ProcessMemoryDumpRequest. |
118 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, | 127 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, |
119 uint64 /* dump_guid */, | 128 uint64 /* dump_guid */, |
120 bool /* success */) | 129 bool /* success */) |
121 | 130 |
122 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, | 131 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, |
123 std::string /* name */) | 132 std::string /* name */) |
OLD | NEW |