In browser client side visual strace (Linux only) representation, showing forks, execves, pipes and exit status based on a strace run.
Graph building and representation is done with cytoscape.js.
To try it out: https://lhoursquentin.github.io/visual-strace/.
Or clone the repo and open index.html
in your browser.
- Grey arrows represent parent/children process relationships via
fork
(or similar) syscalls - Orange arrows represent read and write syscalls, the origin process is the writer and the destination process is the reader
- Green dots are processes that ended with a zero exit code
- Red dots are processes that ended with a non-zero exit code, which is specified between parentheses
- Purple dots are processes that ended due to a signal, which is specified between parentheses
- Labels are either set with the process ID returned by a
fork
(or similar) syscall or with the basename of binary of a successfulexecve
libtool --help
bash -c '
echo Hello | wc -c | read nb_letters
echo "$nb_letters"
'
zsh -c '
echo Hello | wc -c | read nb_letters
echo "$nb_letters"
'
ldd /bin/bash
env PAGER=cat man man
sh -c '
echo int main\; | gcc -x c -
./a.out
'
- poor performance & display on mobile devices
- poor performance when dealing with more than a hundred of processes
- generated URLs might go over 8000 chars for big traces which will be rejected by some servers (current workaround for this issue is to paste the URL in the strace text area, or spin the project locally)
- socket reading/writing is not supported (yet)
- only time ratios are kept in the generated URLs, real time taken for each call is lost
- expect bugs, feel free to open issues, contributions are accepted but beware current code is a mess
- URL generator is not very efficient, trying to find some time to write a v2 but I'll still keep the URLs generated by previous versions functional.