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

Unified Diff: base/trace_event/common/proto/event.proto

Issue 1947373002: Tracing V2 prototype [NOT FOR REVIEW] Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WORKS Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/trace_event/common/proto/event_args_simple.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/common/proto/event.proto
diff --git a/base/trace_event/common/proto/event.proto b/base/trace_event/common/proto/event.proto
new file mode 100644
index 0000000000000000000000000000000000000000..abbea208ca050890078f2dd0b3db9c60d24e0ac3
--- /dev/null
+++ b/base/trace_event/common/proto/event.proto
@@ -0,0 +1,58 @@
+syntax = "proto2";
+option optimize_for = LITE_RUNTIME;
+
+import "event_args_simple.proto";
+import "event_args_test.proto";
+
+package tracing;
+
+message Event {
+ enum Type {
+ COMPLETE = 1;
+ DURATION_BEGIN = 2;
+ DURATION_END = 3;
+ };
+
+ required Type type = 1;
+
+ // Key of the category in the header dictionary (id -> string).
+ // This is an efficient (deduplicated) representation of the
+ // category strings (“v8”, “cc”, etc.)
+ optional uint32 category_id = 2;
+
+ // The same logic applies to name_id. The difference here is that
+ // in some rare cases (TRACE_STR_COPY) the name might be inlined
+ // in the event.
+ oneof name {
+ uint32 name_id = 3;
+ string name_str = 4;
+ }
+
+ // Override pid, only if different from the pid in the
+ // chunk header
+ optional uint32 process_id = 5;
+
+ // Override tid, only if different from the tid in the
+ // chunk header.
+ optional uint32 thread_id = 6;
+
+ // Omitted in most cases. Is used to disambiguate some events
+ // (e.g. counters). It is NOT required to be unique per trace,
+ // just unique per begin/end event pair.
+ optional uint64 id = 7;
+ optional string scope = 8;
+
+ // timestamp(NOW) - timestamp(chunk).
+ optional int64 timestamp = 9;
+ optional int64 thread_timestamp = 10;
+
+ // (thread) duration for COMPLETE (and similar) events.
+ optional int64 duration = 11;
+ optional int64 thread_duration = 12;
+
+ // All the possible event args type are listed here.
+ oneof args {
+ EventArgsSimple args_simple = 15;
+ EventArgsTest args_test = 16;
+ }
+}
« no previous file with comments | « base/BUILD.gn ('k') | base/trace_event/common/proto/event_args_simple.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698