catapult-project / catapult

Deprecated Catapult GitHub. Please instead use http://crbug.com "Speed>Benchmarks" component for bugs and https://chromium.googlesource.com/catapult for downloading and editing source code..
https://chromium.googlesource.com/catapult
BSD 3-Clause "New" or "Revised" License
1.93k stars 563 forks source link

Request: trace-events in line-delimited json #4326

Open jasnell opened 6 years ago

jasnell commented 6 years ago

Currently the v8 trace events format uses a root object with a traceEvents property whose value is an array... e.g.

{
  "traceEvents": [
     { "pid": "..." },
     { "pid": "..." }
  ]
}

While this is ok for relatively simple traces, when the trace file becomes rather large, it becomes more difficult to work with the json object.

It would be helpful from An-Ability-To-Process-Events-As-A-Stream point of view to support new-line delimited JSON as an alternative.

e.g.

{ "pid": "..." }
{ "pid": "..." }