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

Unified Diff: base/trace_event/common/proto/events_chunk.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/trace_event/common/proto/event_args_test.proto ('k') | base/trace_event/trace_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/common/proto/events_chunk.proto
diff --git a/base/trace_event/common/proto/events_chunk.proto b/base/trace_event/common/proto/events_chunk.proto
new file mode 100644
index 0000000000000000000000000000000000000000..978c90c96b74724ebb09a1fd4ac8acab04806e5e
--- /dev/null
+++ b/base/trace_event/common/proto/events_chunk.proto
@@ -0,0 +1,24 @@
+syntax = "proto2";
+option optimize_for = LITE_RUNTIME;
+
+package tracing;
+
+message EventsChunk {
+ // Chunks produced by the same trace writer have the same stream_id.
+ // This is to look up the next chunk for a given thread.
+ required uint32 stream_id = 1;
+
+ // A monotonic counter within stream_id. To order chunks within the stream.
+ required uint32 seq_id_in_stream = 2;
+
+ // Each event is a byte sequence that encapsulates the bytes for a single
+ // Event (see event.proto) or an incomplete portion of it.
+ // Why this isn't just a "repeated Events" field? An Event can spawn across
+ // several chunks. In this case the reader has to first glue the byte
+ // sequences together and then process the event.
+ repeated bytes events = 3;
+ optional bool first_event_continues_from_prev_chunk = 4;
+ optional bool last_event_continues_on_next_chunk = 5;
+
+ required uint32 num_events = 6; // TODO here for streaming: fixed?
+}
« no previous file with comments | « base/trace_event/common/proto/event_args_test.proto ('k') | base/trace_event/trace_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698