| 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 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 std::string /* trace_config_str */, | 50 std::string /* trace_config_str */, |
| 51 base::TimeTicks /* browser_time */, | 51 base::TimeTicks /* browser_time */, |
| 52 uint64_t /* Tracing process id (hash of child id) */) | 52 uint64_t /* Tracing process id (hash of child id) */) |
| 53 | 53 |
| 54 // Sent to all child processes to disable trace event recording. | 54 // Sent to all child processes to disable trace event recording. |
| 55 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) | 55 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) |
| 56 | 56 |
| 57 // Sent to all child processes to cancel trace event recording. | 57 // Sent to all child processes to cancel trace event recording. |
| 58 IPC_MESSAGE_CONTROL0(TracingMsg_CancelTracing) | 58 IPC_MESSAGE_CONTROL0(TracingMsg_CancelTracing) |
| 59 | 59 |
| 60 // Sent to all child processes to start monitoring. | |
| 61 IPC_MESSAGE_CONTROL2(TracingMsg_StartMonitoring, | |
| 62 std::string /* trace_config_str */, | |
| 63 base::TimeTicks /* browser_time */) | |
| 64 | |
| 65 // Sent to all child processes to stop monitoring. | |
| 66 IPC_MESSAGE_CONTROL0(TracingMsg_StopMonitoring) | |
| 67 | |
| 68 // Sent to all child processes to capture the current monitorint snapshot. | |
| 69 IPC_MESSAGE_CONTROL0(TracingMsg_CaptureMonitoringSnapshot) | |
| 70 | |
| 71 // Sent to all child processes to get trace buffer fullness. | 60 // Sent to all child processes to get trace buffer fullness. |
| 72 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceLogStatus) | 61 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceLogStatus) |
| 73 | 62 |
| 74 // Sent to all child processes to set watch event. | 63 // Sent to all child processes to set watch event. |
| 75 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, | 64 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, |
| 76 std::string /* category_name */, | 65 std::string /* category_name */, |
| 77 std::string /* event_name */) | 66 std::string /* event_name */) |
| 78 | 67 |
| 79 // Sent to all child processes to clear watch event. | 68 // Sent to all child processes to clear watch event. |
| 80 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) | 69 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 101 // Sent everytime when a watch event is matched. | 90 // Sent everytime when a watch event is matched. |
| 102 IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched) | 91 IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched) |
| 103 | 92 |
| 104 // Notify the browser that this child process supports tracing. | 93 // Notify the browser that this child process supports tracing. |
| 105 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) | 94 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) |
| 106 | 95 |
| 107 // Reply from child processes acking TracingMsg_EndTracing. | 96 // Reply from child processes acking TracingMsg_EndTracing. |
| 108 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, | 97 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, |
| 109 std::vector<std::string> /* known_categories */) | 98 std::vector<std::string> /* known_categories */) |
| 110 | 99 |
| 111 // Reply from child processes acking TracingMsg_CaptureMonitoringSnapshot. | |
| 112 IPC_MESSAGE_CONTROL0(TracingHostMsg_CaptureMonitoringSnapshotAck) | |
| 113 | |
| 114 // Child processes send back trace data in JSON chunks. | 100 // Child processes send back trace data in JSON chunks. |
| 115 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, | 101 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, |
| 116 std::string /*json trace data*/) | 102 std::string /*json trace data*/) |
| 117 | 103 |
| 118 // Child processes send back trace data of the current monitoring | |
| 119 // in JSON chunks. | |
| 120 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, | |
| 121 std::string /*json trace data*/) | |
| 122 | |
| 123 // Reply to TracingMsg_GetTraceLogStatus. | 104 // Reply to TracingMsg_GetTraceLogStatus. |
| 124 IPC_MESSAGE_CONTROL1( | 105 IPC_MESSAGE_CONTROL1( |
| 125 TracingHostMsg_TraceLogStatusReply, | 106 TracingHostMsg_TraceLogStatusReply, |
| 126 base::trace_event::TraceLogStatus /*status of the trace log*/) | 107 base::trace_event::TraceLogStatus /*status of the trace log*/) |
| 127 | 108 |
| 128 // Sent to the browser to initiate a global memory dump from a child process. | 109 // Sent to the browser to initiate a global memory dump from a child process. |
| 129 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, | 110 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, |
| 130 base::trace_event::MemoryDumpRequestArgs) | 111 base::trace_event::MemoryDumpRequestArgs) |
| 131 | 112 |
| 132 // Reply to TracingMsg_ProcessMemoryDumpRequest. | 113 // Reply to TracingMsg_ProcessMemoryDumpRequest. |
| 133 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, | 114 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, |
| 134 uint64_t /* dump_guid */, | 115 uint64_t /* dump_guid */, |
| 135 bool /* success */) | 116 bool /* success */) |
| 136 | 117 |
| 137 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, | 118 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, |
| 138 std::string /* name */) | 119 std::string /* name */) |
| 139 | 120 |
| 140 IPC_MESSAGE_CONTROL0(TracingHostMsg_AbortBackgroundTrace) | 121 IPC_MESSAGE_CONTROL0(TracingHostMsg_AbortBackgroundTrace) |
| OLD | NEW |