On Wednesday, October 23, 2013 10:14:30 AM UTC-5, Anand wrote:
>
> On Wed, Oct 23, 2013 at 1:47 AM, Megha Vishwanath
> <[email protected]<javascript:>
> > wrote:
>
>> Anand, Jeffrey,
>>
>> This is how i'm trying to use the web.profiler. Is this right? And if
>> yes, where do I see the profile? I have a log file in the app and the
>> apache log file, both of which didn't really have any indicators.
>>
>> import web.utils
>> ...
>>
>> application = web.application(urls,globals(),web.profiler).wsgifunc()
>>
>
> IIRC, it comes on the web page.
>
>
It does display on the bottom of the web page however I don't think your
syntax is quite right. web.profiler is a middleware so it should be passed
to run (and potentially wsgifunc, can't confirm since I can't test
wsgifunc). This should work though:
application = web.application(urls,globals())
if __name__ == "__main__":
application.run(web.profiler)
and in theory, this should work:
application = web.application(urls,globals()).wsgifunc(web.profiler)
Jeff
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.