koute / not-perf

A sampling CPU profiler for Linux
Apache License 2.0
868 stars 40 forks source link

Chromium trace output does not work #22

Open bwesen opened 3 years ago

bwesen commented 3 years ago

When parsing something into the chromium trace format, the JSON that is output is broken, it has a missing field and each element in the array starts with a , which is illegal json format (and the chrome tracing load complains):

[,{"name": "0x0000000000431FD7 [main]","ph": "B","ts": 3627138130963.042,"pid": 10357,"tid": 10357}

This after: # ./nperf trace-events -o main_prof.trace --granularity line main_prof