amc96 at cam.ac.uk
Tue Jul 17 00:24:08 CEST 2012
On 16/07/2012 21:41, Andrea Crotti wrote:
> On 07/16/2012 02:26 AM, hamilton wrote:
>> Is there any software to help understand python code ?
> Sometimes to get some nice graphs I use gprof2dot
> or doxygen (http://www.stack.nl/~dimitri/doxygen/)
> gprof2dot analyses the output of the profiling that you get running the
> code through the python profiler,
> doing for example:
> python -m cProfile -o $STATS $FNAME $@
> $GPROF2DOT -f pstats $STATS | dot -T$TYPE -o $OUT
> doxygen is more useful for C++ but it's also able to infer a few things
> (without running) from a python project..
+1 for doxygen.
Combined with http://code.foosel.org/doxypy , it is a fully featured
solution. I use it for all my projects, python and otherwise.
More information about the Python-list