views:

30

answers:

1

I'm interested in the best/standard way to find the execution time of my Zend Framework app. Currently I'm starting the timer on the public/index.php then registering it in Zend_Registry, for a later call, which the layout then uses to calculate the total time.

Is there a better way to do this? I know this isn't even entirely accurate, as there is still (or at least, can be) some execution in the postDispatch() which will be ran after the view is rendered.

A: 

You might want to look into enabling a real code profiler like XHProf.

Bill Karwin
While that would be nice for some things, I don't really think it would be usable with outputting the execution time into the view.Correct me if I'm wrong, but this seems more like a profiler, instead of just showing execution time on the page.