Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.



Measures the time it takes to process a block of template code.


{debug-timing-point [ id=id ]}


id string An identification string for the timing point. No.


This mechanism starts a timer, executes the template code that is encapsulated by "{debug-timing-point...}" and "{/debug-timing-point}", finally it stops the timer. It can be used to figure out how much time it takes to process a block of template code and/or to isolate debug messages that are generated between the timing points. The measurements will show up in the debug message. The optional "id" parameter can be used to assign an identification string to the block.


Example 1

{debug-timing-point id='test'}
{def $nodes=fetch( 'content', 'tree', hash( 'parent_node_id', 2 ) )}
{foreach( $nodes as $node )}

This example demonstrates how the "debug-timing-point" mechanism can be used to measure the amount of time it takes to fetch and print the names of all nodes that are below node number 2.

Balazs Halasy (21/03/2005 10:20 am)

Julia Shymova (11/09/2007 12:41 pm)

Balazs Halasy, Julia Shymova


There are no comments.