Descriptiontracing v2: Introduce TraceBufferReader to read-back the trace buffer
This CL introduces the core building blocks to read-back the
proto-encoded trace buffer. This will serve two purposes:
1. Build the table of interned strings. We use interned strings (see
event.proto) to avoid doing full string copies for each event when
those strings are long lived. The interned string table will be
attached at trace finalization time via metadata events by upcoming
CLs.
2. Build the base::Value(s) that can be converted to JSON which matches
the current trace event format. This is to support JSON output in the
interim stage of Tracing V2 (protobuf inside, JSON outside).
BUG=643674
Patch Set 1 #Patch Set 2 : some fixes + moar tests #
Total comments: 29
Patch Set 3 : oysteine + kraynov review #Patch Set 4 : DISALLOW_COPY_AND_ASSIGN + cctype for isalnum #
Total comments: 3
Depends on Patchset: Messages
Total messages: 28 (17 generated)
|