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
pscommand, outputptree.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.txtThe utility script ps-snapshot.sh can be use to create the input files:
bash ps-snapshot.sh > ps-snapshot.traceUsage: ./ps2gv [-c config_file] [input_files...]