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

Side by Side Diff: components/tracing/tracing_messages.h

Issue 12302036: Add a mode flag to the tracing framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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/debug/trace_event.h"
10 #include "base/sync_socket.h" 11 #include "base/sync_socket.h"
11 #include "ipc/ipc_channel_handle.h" 12 #include "ipc/ipc_channel_handle.h"
12 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
13 #include "ipc/ipc_message_utils.h" 14 #include "ipc/ipc_message_utils.h"
14 #include "ipc/ipc_platform_file.h" 15 #include "ipc/ipc_platform_file.h"
15 16
16 #define IPC_MESSAGE_START TracingMsgStart 17 #define IPC_MESSAGE_START TracingMsgStart
17 18
18 // Sent to all child processes to enable trace event recording. 19 // Sent to all child processes to enable trace event recording.
19 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, 20 IPC_MESSAGE_CONTROL4(TracingMsg_BeginTracing,
20 std::vector<std::string> /* included_categories */, 21 std::vector<std::string> /* included_categories */,
21 std::vector<std::string> /* excluded_categories */, 22 std::vector<std::string> /* excluded_categories */,
22 base::TimeTicks /* browser_time */) 23 base::TimeTicks /* browser_time */,
24 int /* base::debug::TraceMode */)
23 25
24 // Sent to all child processes to disable trace event recording. 26 // Sent to all child processes to disable trace event recording.
25 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) 27 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing)
26 28
27 // Sent to all child processes to get trace buffer fullness. 29 // Sent to all child processes to get trace buffer fullness.
28 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull) 30 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull)
29 31
30 // Sent to all child processes to set watch event. 32 // Sent to all child processes to set watch event.
31 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, 33 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent,
32 std::string /* category_name */, 34 std::string /* category_name */,
(...skipping 14 matching lines...) Expand all
47 int /* base::debug::TraceLog::Notification */) 49 int /* base::debug::TraceLog::Notification */)
48 50
49 // Child processes send trace data back in JSON chunks. 51 // Child processes send trace data back in JSON chunks.
50 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, 52 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected,
51 std::string /*json trace data*/) 53 std::string /*json trace data*/)
52 54
53 // Reply to TracingMsg_GetTraceBufferPercentFull. 55 // Reply to TracingMsg_GetTraceBufferPercentFull.
54 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply, 56 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply,
55 float /*trace buffer percent full*/) 57 float /*trace buffer percent full*/)
56 58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698