Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 779 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 779 Bytes

Convert from .cpuprofile to Spall binary or Google trace format

You can use this two ways:

  • use this website, it's the wasm version of this repo
  • clone, compile the xform.c file like clang -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.