Zend Framework application memory usage and processing time

it would be nice to display the memory usage in the current query at the bottom of the page.

How can I measure memory usage by zend app? also - is there a way to measure render time?

Any advice would be greatly appreciated :)

thanks!

+4
source share
1 answer

Something like that ...

In bootstrap:

Zend_Registry::set('startTime', microtime()); 

In the layout:

 $timeMs = microtime() - Zend_Registry::get('startTime'); $memory = memory_get_peak_usage(); echo sprintf("Eaten %s memory in %s", $memory, $timeMs); 
+5
source

Source: https://habr.com/ru/post/1342118/


All Articles