Do you know an integrated tool that will generate the call graph of a function from Python sources? I need one that is consistent and can run on Windows OS.
views:
514answers:
2
+3
A:
You could try with PyCallGraph
From its documentation:
Python Call Graph works with Linux, Windows and Mac OS X.
Otherwise, you can directly do it on your own, using the traceback module:
import traceback
traceback.print_stack()
Roberto Liffredo
2009-07-10 07:16:55
This can help but I'm looking for a somewhat graphical code navigation/inspection.
cmdev
2009-07-10 07:18:28
I think PyCallGraph might just do the job.
cmdev
2009-07-10 07:24:46
Thanks for the tool.
cmdev
2009-07-10 07:27:36
+3
A:
What about pycallgraph, it's a Python module that creates call graphs for Python programs. It works on windows.
Just download graphviz and pycallgraph, pycallgraphs's source tarball has some examples.
Hope this helps
sunqiang
2009-07-10 07:20:30