daneads / pycallgraph2

pycallgraph2 is a maintained fork of pycallgraph, a Python module that creates call graphs for Python programs.
GNU General Public License v2.0
219 stars 34 forks source link

Excluding modules #37

Open ahallin opened 1 year ago

ahallin commented 1 year ago

I want to exclude modules like torch from being included in the analysis. In the original pycallgraph there was a flag -e/--exclude that you could use to exclude modules. This does not work in pycallgraph2 though. Is there a different way to do this?