This script draws processes/threads tree from strace output.
Work with strace v5.15 and above. Set of arguments to right parse output further:
strace -o <strace_output_file> -ttt -Y -f -e trace=execve,clone,exit <command>
./strace-visualizer.py -i <strace_output_file> [-o <image.png>]
- Install python3 and python3-pip in your system.
- Install virtualenv package also:
pip3 install virtualenv
source ~/.profile
(note for Ubuntu 21.10)
Installation package virtualenv withsudo apt install python3-virtualenv
was cause of error:
"ModuleNotFoundError: No module named 'virtualenv'"
- Create virtualenv project:
virtualenv -p python3 <dir_name>
source <dir_name>/bin/activate
- Install the python-requirements:
pip3 install Pillow
- python3
- python3-pip
Activation python virtual environment must be performed before running script:
source <virtualenv_dir>/bin/activate
./strace-visualizer.py -i <strace_output> [-o <image.png>]
Type deactivate
if you need to exit from virtualenv