[Silva-general] PTProfiler 1.2 Released, Updated for Five and Zope 2.10
Kit BLAKE
kitblake at infrae.com
Thu Mar 29 18:32:08 CEST 2007
Hi Jon,
Then I don't understand which template you're profiling. In the first
result set you sent I see a call to a Silva logo (silva_32.png) and
other metadata that I know are not in your site layout.
Also, that listing is not errors, it's calls. The two calls to:
python: error_type == 'NotFound'
are conditions in the s_e_m.
Try clearing PTProfiler and then hit a normal public page in your site.
Then you'll see a bunch of expressions from the layout that should look
familiar, because you coded them :-)
Kit
Jonathan Bowlas wrote:
> Hi Kit,
>
> No this installation isn't using a default Silva layout, I've made a UCL
> branded SilvaLayout skin.
>
> There's no mention of these errors in either the error_log or the event.log.
>
> I just noticed that deleting the layout_macro.html from my silva root
> reduces the number of errors to the 8, see attached.
>
> Cheers
>
> Jon
>
> -----Original Message-----
> From: Kit BLAKE [mailto:kitblake at infrae.com]
> Sent: 29 March 2007 16:01
> To: j.bowlas at ucl.ac.uk
> Cc: 'silva-general'; ccaadgi at ucl.ac.uk
> Subject: Re: [Silva-general] PTProfiler 1.2 Released, Updated for Five and
> Zope 2.10
>
> Hi Jon,
>> I've installed this product on our development server which works well,
> but
>> we seem to be getting a considerable number of calls to
>> standard_error_message, the profiled results for this can be seen in the
>> attached document (see standard_error_message.xls)
>>
>> Apologies for a lack of knowledge here but is there any chance someone
> could
>> explain what's going on (i.e. why so any calls to s_e_m)? But more
>> importantly should we be concerned? And what can be done to resolve this?
>
> The PTProfiler result you sent looks like it's from a default Silva
> installation on your dev server. By default I mean without your site's
> layout. Is that the case?
>
> Can you look in the error_log and find tracebacks for those errors? They
> should be showing up with urls and tracebacks.
>
> About the PTProfiler result you sent: if you have your s_e_m setup as it
> is in a delivered Silva, it calls a macro in the layout_macro.html (the
> nearest one in the hierarchy, but hopefully there's just one in your
> site). So most of the calls are actually not in the s_e_m template, but
> in the layout_macro. However in the one you sent, it looks to me like
> it's calling the default (delivered) layout_macro, and that doesn't tell
> me much. Except I wonder what the python: error_type != 'NotFound' is.
>
> Kit
>
--
Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051
Hoevestraat 10 · 3033 GC · Rotterdam + The Netherlands
Contact = http://xri.net/=kitblake
More information about the Silva-general
mailing list