#1405

RFC: stracy: experimental strace-to-tracy converter

Draftslompwants to merge intofrom

This (stracy) is an attempt to leverage Tracy GUI to visualize and gather statistics around strace logs. Currently, you'd first capture an strace log with:

strace -ttt -T -f [-k] -o strace.log <program>

and then convert it to a Tracy file with:

tracy-import-strace strace.log strace.tracy

There's quite a bit that could be explored further:

  • have a piped mode to consume strace output from stdin
  • have a "relay" mode where messages are wired to the server as it consumes the strace output/file
  • have a mode for stracy to run the strace command itself (via pipes)

Resolving callstack (-k) symbols is an issue when debug info for system binaries/libs is not be available.

Here's a screenshot zooming around a syscall for reference. Not super exciting, as I have not decided the best course of action regarding extending/merging common callstack frames, and have just been emitting empty-named zones when no symbol is present for the callstack trace:

Activity

2

This pull request is a draft

Merging is unavailable until it is marked ready for review.