You can use this two ways:
- use this website, it's the wasm version of this repo
- clone, compile the
xform.c
file likeclang -O2 xform.c -o xform
and use like./xform <cpuprofile files to convert>
or./xform <directory with .cpuprofile files>
- You can pass
-d
as an argument in the CLI to remove converted.cpuprofile
files. - By default it generates Spall binary format, pass
-gtrace
to switch to the GTrace format.
Running it generates a file at the same path with the extension replaced by either
.spall
if using Spall binary format_gtrace.json
if using GTrace
This was written for use with spall.