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

Side by Side Diff: components/tracing/proto/event.proto

Issue 2164013002: [OBSOLETE] tracing v2: introduce TraceBufferWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proto_handle
Patch Set: . Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 syntax = "proto2";
6 option optimize_for = LITE_RUNTIME;
7
8 import "event_args_for_testing.proto";
9
10 package tracing.proto;
11
12 message Event {
13 enum Type {
14 COMPLETE = 1;
15 DURATION_BEGIN = 2;
16 DURATION_END = 3;
17 };
18
19 optional Type type = 1;
20
21 // Key of the category in the header dictionary (id -> string).
22 // This is an efficient (deduplicated) representation of the
23 // category strings (“v8”, “cc”, etc.)
24 optional uint32 category_id = 2;
25
26 // The same logic applies to name_id. The difference here is that
27 // in some rare cases (TRACE_STR_COPY) the name might be inlined
28 // in the event.
29 oneof name {
30 uint32 name_id = 3;
31 string name_str = 4;
32 }
33
34 // Override pid, only if different from the pid in the
35 // chunk header
36 optional uint32 process_id = 5;
37
38 // Override tid, only if different from the tid in the
39 // chunk header.
40 optional uint32 thread_id = 6;
41
42 // Omitted in most cases. Is used to disambiguate some events
43 // (e.g. counters). It is NOT required to be unique per trace,
44 // just unique per begin/end event pair.
45 optional uint64 id = 7;
46 optional string scope = 8;
47
48 // timestamp(NOW) - timestamp(chunk).
49 optional uint64 timestamp = 9;
50 optional uint64 thread_timestamp = 10;
51
52 // (thread) duration for COMPLETE (and similar) events.
53 optional uint64 duration = 11;
54 optional uint64 thread_duration = 12;
55
56 // All the possible event args type are listed here.
57 oneof args {
58 /*EventArgsSimple args_simple = 15;*/
59 tracing.proto.EventArgsForTesting args_for_testing = 16383;
60 }
61 }
OLDNEW
« no previous file with comments | « components/tracing/core/trace_ring_buffer_unittest.cc ('k') | components/tracing/proto/event_args_for_testing.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698