Skip to content

RFC: stracy: experimental strace-to-tracy converter#1405

Draft
slomp wants to merge 2 commits into
masterfrom
slomp/stracy
Draft

RFC: stracy: experimental strace-to-tracy converter#1405
slomp wants to merge 2 commits into
masterfrom
slomp/stracy

Conversation

@slomp

@slomp slomp commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

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:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant