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

Write out the PID #256

Open cgaebel opened 2 years ago

cgaebel commented 2 years ago

If magic-trace wrote out the PID of the process it was attached to when it attached, users could copy+paste that the next time they invoke magic-trace. I already do that with the symbol after using -trigger ?, and it'd be useful to do it for PID as well.