Git Product home page Git Product logo

visual-strace's Introduction

visual-strace

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.

How to read the graph

  • 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 successful execve

Some quick examples

libtool --help

visual strace

bash -c '
  echo Hello | wc -c | read nb_letters
  echo "$nb_letters"
'

visual strace

zsh -c '
  echo Hello | wc -c | read nb_letters
  echo "$nb_letters"
'

visual strace

ldd /bin/bash

visual strace

env PAGER=cat man man

visual strace

sh -c '
  echo int main\; | gcc -x c -
  ./a.out
'

visual strace

Notes/Bugs

  • 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.

visual-strace's People

Contributors

lhoursquentin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.