How do I set up code profiling my application?

11 views
Skip to first unread message

snew...@gmail.com

unread,
Feb 9, 2007, 10:38:00 AM2/9/07
to Django developers
I'd like to do some code profiling of my application/projects, and I'm
confused about how to go about it. I found a wiki entry that
references hotshot, but I'm not sure where to go from here.

http://code.djangoproject.com/wiki/ProfilingDjango

yary

unread,
Feb 10, 2007, 7:01:23 PM2/10/07
to Django developers
I remember seeing a nice writeup on using nose with django, which is
both a test runner and a code coverage tool. I can't find it at the
moment, but there's these:

http://code.google.com/p/nose-django/
http://code.djangoproject.com/wiki/CookBookTestingTools
http://blogs.translucentcode.org/mick/2006/02/08/testing-django-nose-and-pytest/

rikl...@gmail.com

unread,
Feb 10, 2007, 7:15:45 PM2/10/07
to Django developers

Malcolm Tredinnick

unread,
Feb 10, 2007, 7:55:55 PM2/10/07
to django-d...@googlegroups.com
On Sun, 2007-02-11 at 00:15 +0000, rikl...@gmail.com wrote:
> check this article: http://www.rkblog.rk.edu.pl/w/p/django-profiling-hotshot-and-kcachegrind/

For anybody like me who hadn't heard of this nifty hotshot2callgraph
tool: turns out it is part of the kdesdk package (on Linux distros). You
don't get that goodness as part of just having valgrind and callgrind
installed (I love valgrind -- having extra uses for callgrind and
alleyoop is nice to see).

Thanks for pointing out that trick in the article; will make get a quick
overview of hotshot output easier.

Regards,
Malcolm

rikl...@gmail.com

unread,
Feb 11, 2007, 6:10:07 AM2/11/07
to Django developers
note that KDE4 will be ported to windows an mac, so there are big
chances for Kcachegrind on those platforms. And I've seen somewhere a
python script for converting hotshot logs do kcachegrind (and
wingrind ? :))

Jay Parlar

unread,
Feb 11, 2007, 5:32:17 PM2/11/07
to django-d...@googlegroups.com


Maybe this is what you're looking for? http://zilbo.com/@perfmon It's
Ian Holsman's Django performance monitor. He used to be *very* active
in the Django community. Don't know whether or not he's kept it up to
date, but it can't hurt to ask.

Jay P.

Reply all
Reply to author
Forward
0 new messages