Commit Graph

6 Commits

Author SHA1 Message Date
ejrh00
7e46ad2ee0 A few small improvements. The biggest of which is running the analysis twice: this means forward references have a chance of being picked up (e.g. if a method uses the method defined immediately after it, it will be able to find it from the previous parse). 2012-02-20 03:40:07 +00:00
ejrh00
0e73a114e4 Massive changes to take more guesses about which exact node is being used where, rather than lumping them all together.
Made some improvements to the pyan.py script -- it now creates distinct nodes for each object encountered, e.g. Message.send and Socket.send are no longer considered the same thing. It tries to infer which is being used in each particular instance; if it can't do that, it will add use-edges to every possible match. E.g.: x = Message(); x.send() is clearly a reference to Message.send. This is all very heuristical; so can't be relied upon as proper static analysis. But it cleans up the call graphs quite a bit.

Some outstanding mis-guesses exist.
2012-01-11 04:18:49 +00:00
edmund
56de729064 Add command line parsing with options for dot and tgf output. 2012-01-09 05:38:54 +00:00
edmund
09c591609e Support From nodes which apparently are distinct from Import nodes. 2011-12-24 02:49:09 +00:00
edmund
669da13fc3 Write a program for generating call graphs from Python sources. 2011-12-22 07:10:39 +00:00
edmund
137eecff65 Import image viewer and xmlgrep. 2011-09-08 08:52:54 +00:00