I have a small personal site that runs on django, it's not a
money-maker, and doesn't get a lot of traffic. I'm not so much a
web-developer as I am an all-around programming enthusiast. I would like
to find out how much memory a certain page or template/view is using. I
know how much the apache process is using, and I know there are ways to
profile python applications, I just don't know exactly where to go to
get a nice picture and breakdown of what my django apps/pages are using.
I've tried django-profiling-dashboard, but there were a couple issues I
had to deal with and now I don't think I'm getting an accurate picture.
What I mean is, I'm running Django 1.6 and Python 3.3, and
profiling-dashboard had a small error with that setup. It was using the
old django.conf.urls.default. I fixed that easily by patching it myself,
only to find out that one of its dependencies (django-query-exchange)
had the same error, plus more errors related to Django >= 1.5 and Python
> 2.7. I hacked around those too, and got the dashboard running, but
its kinda buggy (I haven't put a lot of time into it, as I wanted to ask
some pros first). It gives me a profile that says '15Mb total', which I
don't think is true. I think it's giving me a profile for only part of
my site, but I wouldn't know which part. On my dev machine I have 2
apache processes that report ~8000 with the `ps` command fresh, and
~45000 each when I connect locally and the landing page is served.
(thats with DEBUG==True, and debug-toolbar and all)
Does anyone know how to get a memory-profile/breakdown on a Django
1.6/Python 3.3 site? Any help would be much appreciated. All of this
doubles as a learning experience, and none of it is critical, so any and
all ideas are welcome. Maybe even just a link to some reading material?
--
- Christopher Welborn <cjwelb...@live.com>
http://welbornprod.com
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/l88uvt%2451j%241%40ger.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.