diff options
Diffstat (limited to 'scripts/maint/display_callgraph.py')
-rwxr-xr-x | scripts/maint/display_callgraph.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/maint/display_callgraph.py b/scripts/maint/display_callgraph.py new file mode 100755 index 0000000000..4e4ea637ff --- /dev/null +++ b/scripts/maint/display_callgraph.py @@ -0,0 +1,9 @@ +#!/usr/bin/python + +import cPickle + +callgraph = cPickle.load(open("callgraph.cp")) +closure = cPickle.load(open("callgraph_closure.cp")) + +for n_reachable, fn in sorted(list((len(r), fn) for fn, r in closure.iteritems())): + print "%s can reach %s other functions." %(fn, n_reachable) |