Hello Florent, Florent Aide a écrit : > Hi remi, > ... > -------- > > in your kid template at the end of the kid file add this: > > -------- > This page took : > <span py:replace="render_elapsed(start)">elapsedtime</span> > second(s) to render. > -------- > This method would be a little less precise than the decorator one but > has the advantage of being able to easily display the info like the > PHP-based solutions do. > > the decorator adds 'elapsed_time' to the dict passed to @expose so the template can use it <span py:replace="elapsed_time"/> ... (or something that would test the availability of elapsed_time and display it if exists, all of this put in the footer portion of master.kid or equivalent...) So I don't really see the advantage ;-) > But my first option if I wanted to be more precise thant this would be > to look into the filter Robert talked about IMHO (In general Robert is > of really good advice). > Is it possible to get the information back in the page ? (sorry, I have never have a look to CP filters) > The technique described here will not take into account the cherrypy > routing process and what happens after kid has computed your template. > It will give you an idea of your code execution time + you kid (or > other...) template computation time. > > Regards, > > Florent AIDE. > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

