Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.6 KB

File metadata and controls

65 lines (44 loc) · 1.6 KB

strace-tui

A terminal user interface (TUI) for visualizing and exploring strace output.

strace-tui.mp4

Overview

Supported features:

  • Parses common strace output and flags (-tt -k -f -s 1024) (also provides JSON output of parsed traces).
  • Color-code syscall by type and error status.
  • Allow dynamically filtering and search syscalls.
  • Resolve strace stack-trace output (strace -k) to function names and source lines using addr2line.
  • Visualize multithreaded and multiprocess traces with a graph for forks and clones.
  • Search text in syscall arguments and results.

Missing features:

  • Filter traces by process or thread ID.
  • Copy syscall details to clipboard (specially because the TUI truncates a lot of info).
  • Export filtered traces to file.
  • Better handle gigantic Rust/C++ symbols (currently truncates middle of the symbol)

Installation

At the moment, the easiest way to install is via Cargo:

cargo install strace-tui

Can also be installed from source:

git clone https://github.com/Rodrigodd/strace-tui.git
cd strace-tui
cargo install --path .

Usage

Parse an existing strace file (TUI)

strace -o trace.txt -tt -k -f -s 1024 ls -la
strace-tui parse trace.txt

Run strace and visualize

strace-tui trace ls -la

License

Licensed under either of

at your option.