I ended up adding
$appStartTime = microtime();
before the bootloader got intsantiated and put
global $appStartTime; @list( $startMilli, $startSeconds, $endMilli, $endSeconds) = explode(' ',$appStartTime . ' ' . microtime()); $generateTime = ($endSeconds+$endMilli)-($startSeconds+$startMilli); printf( '. Generated in %.3fs', $generateTime); if ($generateTime > 1) // one second { Zend_Registry::get( 'logger' )->warn( 'Long page load time of ' . $generateTime . ' on ' . Zend_Controller_Front::getInstance()->getRequest()->getRequestUri() ); }
at the end of my layout.phtml, as the last one before the closing body tag
source share