Skip to content

Generates an image of the process hierarchy of your Linux system.

License

Notifications You must be signed in to change notification settings

smithandrewl/py_process_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py_process_graph

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.

Example

Alt text


How to Get Started!

1. Open your terminal

2. Clone the project on your machine.

git clone https://github.com/smithandrewl/py_process_graph.git

3. Go to your project directory

cd py_process_graph

4. Make sure you have all the dependencies installed.

  • To install networkx library

      pip install networkx
    
  • To install matplotlib library

      pip install matplotlib
    

5. Now execute the code

python process_graph.py

6. checkout the process_graph_<timestamp>.png file in your project directory for output

Releases

No releases published

Packages

No packages published

Languages