Re: [PyOpenGL-Users] Rolling spectrogram with pyopengl
Brought to you by:
mcfletch
From: Timothée L. <tim...@lp...> - 2009-12-15 14:10:52
|
Silverstein a écrit : > >> Thanks for your comment. I understand your idea about the FFT. However >> in my case profiling tells that drawing is the bottleneck, not >> processing. To give you a more precise idea, here is the result >> of cProfile on my application: >> http://imgur.com/deMyT.png >> >> > Can you say a bit about what tool you are using to do the profiling > and where I can get it? It looks very useful. > > Herc > Hi Herc, The profile itself is obtained with a standard python profiling module, called cProfile. My main script is called "friture.py", so I run the following command : python -m cProfile -o output.pstats ./friture.py Then, I get profile statistics in the "output.pstats" file, which is then transformed by a script called "gprof2dot.py" to a ".dot" file that can be processed by Graphviz, which finally gives the output png : ./gprof2dot.py -f pstats output.pstats -n 0.1 -e 0.02| dot -Tpng -o output2.png "dot" is part of Graphviz (www.graphviz.org), and "gprof2dot.py" can be found here: http://code.google.com/p/jrfonseca/wiki/Gprof2Dot Best regards, Timothée |