RobertP Posted February 13, 2012 Share Posted February 13, 2012 i am currently bench-marking my application. i am trying to see where i might have some heavily codded areas. echo PHP_EOL.'<!-- '.PHP_EOL; $page['finalMemoryUsage'] = memory_get_usage(); $page['finalLoadTime'] = microtime(true); $page['queryCount'] = $connection->getQueryCount(); echo 'initialMemoryUsage='.fileSizeToStr($page['initialMemoryUsage'],false).PHP_EOL; echo 'peakMemoryUsage='.fileSizeToStr($page['peakMemoryUsage'] = memory_get_peak_usage(),false).PHP_EOL; echo 'finalMemoryUsage='.fileSizeToStr($page['finalMemoryUsage'],false).PHP_EOL; echo 'loadTime='.number_format($page['finalLoadTime']-$page['startLoadTime'],4).PHP_EOL; echo 'queryCount[mysql]='.number_format($page['queryCount']).PHP_EOL; echo ' -->'; <!-- initialMemoryUsage=346.32 Kb peakMemoryUsage=1.38 Mb finalMemoryUsage=1.03 Mb loadTime=0.1211 queryCount[mysql]=4 --> is there a better way to check, and how about where exactly my peakMemoryUsage is? Link to comment https://forums.phpfreaks.com/topic/257068-page-load-resources/ Share on other sites More sharing options...
scootstah Posted February 13, 2012 Share Posted February 13, 2012 http://xdebug.org/ Link to comment https://forums.phpfreaks.com/topic/257068-page-load-resources/#findComment-1317783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.