Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Importing adds a whole lot of nodes #160

Open
asl97 opened this issue Aug 19, 2016 · 2 comments
Open

Importing adds a whole lot of nodes #160

asl97 opened this issue Aug 19, 2016 · 2 comments

Comments

@asl97
Copy link

asl97 commented Aug 19, 2016

Importing anything that hasn't been imported before (ie: not in sys.modules, eg: the html module*) seem to add a whole lot of nodes.

I had to manually whitelist names for it to produce what I expected.

Manually whitelisting is troublesome to say the least.

* on my system, it wasn't imported when I start a python shell


empty1.py

import empty2

def hello():
    pass

empty2.hello()

hello()

empty2.py

def hello():
    pass

pycallgraph graphviz -- /tmp/junk/empty1.py:
pycallgraph bad

pycallgraph -i '__main__' -i 'hello' -i '<module>' -i 'empty2*' graphviz -- /tmp/junk/empty1.py
pycallgraph

@ice1x
Copy link

ice1x commented Mar 5, 2019

Same for me

@ice1x
Copy link

ice1x commented Mar 5, 2019

-e/--exclude option doesn't work at all for me.
I still see these unknown/unnamed nodes
(CentOS 7)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants