A simple script to create a graph of Linux processes. This works by parsing the /proc filesystem to get pairs of child and parent processes. These are then fed into the NetworkX graph library and rendered using matplotlib.
git clone https://github.com/smithandrewl/py_process_graph.git
cd py_process_graph
-
To install networkx library
pip install networkx
-
To install matplotlib library
pip install matplotlib
python process_graph.py