| 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 |
| 7 #include <stdint.h> |
| 8 |
| 6 #include <string> | 9 #include <string> |
| 7 #include <vector> | 10 #include <vector> |
| 8 | 11 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 11 #include "base/sync_socket.h" | 13 #include "base/sync_socket.h" |
| 12 #include "base/trace_event/memory_dump_request_args.h" | 14 #include "base/trace_event/memory_dump_request_args.h" |
| 13 #include "base/trace_event/trace_event_impl.h" | 15 #include "base/trace_event/trace_event_impl.h" |
| 14 #include "components/tracing/tracing_export.h" | 16 #include "components/tracing/tracing_export.h" |
| 15 #include "ipc/ipc_channel_handle.h" | 17 #include "ipc/ipc_channel_handle.h" |
| 16 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 17 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
| 18 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
| 19 | 21 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 base::trace_event::MemoryDumpLevelOfDetail::LAST) | 42 base::trace_event::MemoryDumpLevelOfDetail::LAST) |
| 41 | 43 |
| 42 IPC_ENUM_TRAITS_MAX_VALUE( | 44 IPC_ENUM_TRAITS_MAX_VALUE( |
| 43 base::trace_event::MemoryDumpType, | 45 base::trace_event::MemoryDumpType, |
| 44 static_cast<int>(base::trace_event::MemoryDumpType::LAST)) | 46 static_cast<int>(base::trace_event::MemoryDumpType::LAST)) |
| 45 | 47 |
| 46 // Sent to all child processes to enable trace event recording. | 48 // Sent to all child processes to enable trace event recording. |
| 47 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, | 49 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, |
| 48 std::string /* trace_config_str */, | 50 std::string /* trace_config_str */, |
| 49 base::TimeTicks /* browser_time */, | 51 base::TimeTicks /* browser_time */, |
| 50 uint64 /* Tracing process id (hash of child id) */) | 52 uint64_t /* Tracing process id (hash of child id) */) |
| 51 | 53 |
| 52 // Sent to all child processes to disable trace event recording. | 54 // Sent to all child processes to disable trace event recording. |
| 53 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) | 55 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) |
| 54 | 56 |
| 55 // Sent to all child processes to cancel trace event recording. | 57 // Sent to all child processes to cancel trace event recording. |
| 56 IPC_MESSAGE_CONTROL0(TracingMsg_CancelTracing) | 58 IPC_MESSAGE_CONTROL0(TracingMsg_CancelTracing) |
| 57 | 59 |
| 58 // Sent to all child processes to start monitoring. | 60 // Sent to all child processes to start monitoring. |
| 59 IPC_MESSAGE_CONTROL2(TracingMsg_StartMonitoring, | 61 IPC_MESSAGE_CONTROL2(TracingMsg_StartMonitoring, |
| 60 std::string /* trace_config_str */, | 62 std::string /* trace_config_str */, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 77 // Sent to all child processes to clear watch event. | 79 // Sent to all child processes to clear watch event. |
| 78 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) | 80 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) |
| 79 | 81 |
| 80 // Sent to all child processes to request a local (current process) memory dump. | 82 // Sent to all child processes to request a local (current process) memory dump. |
| 81 IPC_MESSAGE_CONTROL1(TracingMsg_ProcessMemoryDumpRequest, | 83 IPC_MESSAGE_CONTROL1(TracingMsg_ProcessMemoryDumpRequest, |
| 82 base::trace_event::MemoryDumpRequestArgs) | 84 base::trace_event::MemoryDumpRequestArgs) |
| 83 | 85 |
| 84 // Reply to TracingHostMsg_GlobalMemoryDumpRequest, sent by the browser process. | 86 // Reply to TracingHostMsg_GlobalMemoryDumpRequest, sent by the browser process. |
| 85 // This is to get the result of a global dump initiated by a child process. | 87 // This is to get the result of a global dump initiated by a child process. |
| 86 IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, | 88 IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, |
| 87 uint64 /* dump_guid */, | 89 uint64_t /* dump_guid */, |
| 88 bool /* success */) | 90 bool /* success */) |
| 89 | 91 |
| 90 IPC_MESSAGE_CONTROL4(TracingMsg_SetUMACallback, | 92 IPC_MESSAGE_CONTROL4(TracingMsg_SetUMACallback, |
| 91 std::string /* histogram_name */, | 93 std::string /* histogram_name */, |
| 92 base::HistogramBase::Sample /* histogram_lower_value */, | 94 base::HistogramBase::Sample /* histogram_lower_value */, |
| 93 base::HistogramBase::Sample /* histogram_uppwer_value */, | 95 base::HistogramBase::Sample /* histogram_uppwer_value */, |
| 94 bool /* repeat */) | 96 bool /* repeat */) |
| 95 | 97 |
| 96 IPC_MESSAGE_CONTROL1(TracingMsg_ClearUMACallback, | 98 IPC_MESSAGE_CONTROL1(TracingMsg_ClearUMACallback, |
| 97 std::string /* histogram_name */) | 99 std::string /* histogram_name */) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 122 IPC_MESSAGE_CONTROL1( | 124 IPC_MESSAGE_CONTROL1( |
| 123 TracingHostMsg_TraceLogStatusReply, | 125 TracingHostMsg_TraceLogStatusReply, |
| 124 base::trace_event::TraceLogStatus /*status of the trace log*/) | 126 base::trace_event::TraceLogStatus /*status of the trace log*/) |
| 125 | 127 |
| 126 // Sent to the browser to initiate a global memory dump from a child process. | 128 // Sent to the browser to initiate a global memory dump from a child process. |
| 127 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, | 129 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, |
| 128 base::trace_event::MemoryDumpRequestArgs) | 130 base::trace_event::MemoryDumpRequestArgs) |
| 129 | 131 |
| 130 // Reply to TracingMsg_ProcessMemoryDumpRequest. | 132 // Reply to TracingMsg_ProcessMemoryDumpRequest. |
| 131 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, | 133 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, |
| 132 uint64 /* dump_guid */, | 134 uint64_t /* dump_guid */, |
| 133 bool /* success */) | 135 bool /* success */) |
| 134 | 136 |
| 135 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, | 137 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, |
| 136 std::string /* name */) | 138 std::string /* name */) |
| 137 | 139 |
| 138 IPC_MESSAGE_CONTROL0(TracingHostMsg_AbortBackgroundTrace) | 140 IPC_MESSAGE_CONTROL0(TracingHostMsg_AbortBackgroundTrace) |
| OLD | NEW |