janestreet / magic-trace

magic-trace collects and displays high-resolution traces of what a process is doing
https://magic-trace.org
MIT License
4.58k stars 87 forks source link

Add separate events output in sexp or binio format #253

Closed Istlemin closed 2 years ago

Istlemin commented 2 years ago

This feature adds the argument -events-output=FILENAME and -callstacks.

Magic trace will dump all events to the events-output file, either in sexp or binio format depending on the suffix.

If the flag -callstacks is set, for every event the current callstack will also be dumped, using a compression algorithm to reduce size.

cgaebel commented 2 years ago

Would you please rebase this onto the latest master before I take a look? It looks like this PR is based on code from March.

cgaebel commented 2 years ago

LGTM. Would you please squash your changes into a single commit before I merge this?

cgaebel commented 2 years ago

Thank you!