[TIP] Profiling deployed WSGI web apps
olemis at gmail.com
Wed May 13 08:36:04 PDT 2009
On Wed, May 13, 2009 at 10:11 AM, Marius Gedminas <marius at gedmin.as> wrote:
> On Tue, May 12, 2009 at 03:21:54PM -0500, Olemis Lang wrote:
>> On Tue, May 12, 2009 at 2:08 PM, Marius Gedminas <marius at gedmin.as> wrote:
>> > On Tue, May 12, 2009 at 01:07:27PM -0500, Olemis Lang wrote:
>> >> Please ... perhaps this is not related with writing functional tests
>> >> and so on, but is undoubtedly related to testing web apps ... thereby
>> >> IMHO is not OT to ask this here -CMIIW anyway- :
>> >> Q: How could I use some kind of profiling to discover those parts of a
>> >> deployed web app having poor performance in order to start further
>> >> analyses to find the root causes -the later feature possibly not
>> >> included- ? Is there any WSGI ( or Apache | mod_py-specific )
>> >> middleware -filters or whatever- helping with that kind of analysis ?
>> > http://pypi.python.org/pypi/keas.profile
>> > http://pypi.python.org/pypi/repoze.profile
>> Thnx very much !
>> However I just wanted to ask something simple before reading about and
>> trying'em in detail. Just to save some time ... you know ;o)
>> Q: Are they general purpose middleware or are tied to specific
>> frameworks (e.g. Zope) ? I mean, can I use them both to analyse any
>> WSGI wep app ?
> They're both very generic WSGI middleware. keas.profile profiles each
> request separately and appends the profile in a little yellow div at the
> bottom of each page. repoze.profile profiles all the requests and gives
> you only a summary profile at a specific URL. They both can be enabled
> rather easily in your paster INI file if you use PasteScript (or is it
> PasteDeploy?), and the PyPI pages show you how.
Thnx for your help ... and this is what makes wondering ... I want to
profile two things. One of them is a Trac instance where people create
*MANY* issues (mostly support tickets) each day. That's why I was
asking before: I never used PasteScript nor PasteDeploy for it and I
didnt know if this was specific to a framework -not employed by Trac-.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
More information about the testing-in-python