A simple profiling tool for TAL expressions within page templates. This monkey-patches Zope 2's TAL machinery to time all the expressions, and provides a frontend to view both total rendering time of all page templates and the time each individual TAL expression takes. This makes bottlenecks in page templates easy to find.

Using PTProfiler

Note that this product requires some extra processing time for page templates, so isn't recommended for production sites.

To enable and view the results, place a PTProfiler Viewer object somewhere in the Zope tree, and press the Enable button. After some page templates are viewed, you will see a list of paths to each of those page templates (or, in the rare case the path isn't known, the id). When you click one of the items, you will see a list of all the expression calls in the template, ordered by total time spent on that expression.

PyPI logo PyPI

PTProfiler is also available on the Python Package Index:

Available releases

Release version Release date Release files
PTProfiler 1.4 May 29, 2009 1:02:30 PM Products.PTProfiler-1.4-py2.4.egg
PTProfiler 1.3 Nov 19, 2008 4:52:02 PM Products.PTProfiler-1.3-py2.4.egg
PTProfiler 1.2 Mar 28, 2007 5:50:12 PM PTProfiler-1.2.tgz
PTProfiler 1.1 Mar 9, 2007 12:57:23 PM PTProfiler-1.1.tgz
PTProfiler 1.0 Sep 11, 2006 10:50:29 AM PTProfiler-0.2.tar.gz
PTProfiler 1.0b Sep 11, 2006 10:48:50 AM PTProfiler-1.0b.tar.gz

License: New BSD