Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.03 KB

File metadata and controls

51 lines (33 loc) · 1.03 KB

ps2gv: Process Tree to Graph Visualiser

This cli tool is inspired by Brendan Gregg's Colony Graphs scripts, this capture a snapshop of your system processes and their parent and child relationships.

The tool supports these usage patterns:

  • Default config and ps command, output ptree.svg
./ps2gv
  • Custom config location
./ps2gv -c ~/myconfig.conf
  • Process single file
./ps2gv foo
  • Process multiple files with default config
./ps2gv foo bar baz
  • Process files with custom config
./ps2gv -c settings.conf log1.txt log2.txt

The utility script ps-snapshot.sh can be use to create the input files:

bash ps-snapshot.sh > ps-snapshot.trace

tl;dr

Usage: ./ps2gv [-c config_file] [input_files...]

References