Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
One common need for web developers is to profile their PHP applications to make sure that everything is properly set up performance-wise. The usual way to go about this is to record the time in various portions of code, and then calculate how long each section is taking, and then take measures to improve the performance.
However, when doing this benchmarking work manually by timing each section of the PHP code, the template parsing and compilation steps will not be taken into account. One of the workarounds is to create a postfilter plug-in that simply records the time when Smarty finishes the compilation of