Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25445

Re: Diagramming code

From Andrew Cooper <amc96@cam.ac.uk>
Newsgroups comp.lang.python
Subject Re: Diagramming code
References <jtvqkt$5ll$1@dont-email.me> <mailman.2188.1342471334.4697.python-list@python.org>
Message-ID <bw0Nr.6447$114.5073@fx26.am4> (permalink)
Organization virginmedia.com
Date 2012-07-16 23:24 +0100

Show all headers | View raw


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 ?
>>
>> Thanks
>>
>> hamilton
> 
> Sometimes to get some nice graphs I use gprof2dot
> (http://code.google.com/p/jrfonseca/wiki/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.

~Andrew

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Diagramming code hamilton <hamilton@nothere.com> - 2012-07-15 19:26 -0600
  Re: Diagramming code Chris Rebert <clp2@rebertia.com> - 2012-07-15 18:38 -0700
    Re: Diagramming code hamilton <hamilton@nothere.com> - 2012-07-15 19:57 -0600
      Re: Diagramming code Chris Rebert <clp2@rebertia.com> - 2012-07-15 19:13 -0700
      Re: Diagramming code Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-16 09:58 +0200
        Re: Diagramming code Joel Goldstick <joel.goldstick@gmail.com> - 2012-07-16 05:00 -0400
      RE: Diagramming code "Sells, Fred" <fred.sells@adventistcare.org> - 2012-07-16 13:02 -0400
        Re: Diagramming code hamilton <hamilton@nothere.com> - 2012-07-16 12:36 -0600
      Re: Diagramming code Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-16 13:51 -0400
    Re: Diagramming code 88888 Dihedral <dihedral88888@googlemail.com> - 2012-07-17 07:11 -0700
    Re: Diagramming code 88888 Dihedral <dihedral88888@googlemail.com> - 2012-07-17 07:11 -0700
  Re: Diagramming code Miki Tebeka <miki.tebeka@gmail.com> - 2012-07-16 12:47 -0700
  Re: Diagramming code Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-07-16 21:41 +0100
    Re: Diagramming code Andrew Cooper <amc96@cam.ac.uk> - 2012-07-16 23:24 +0100

csiph-web