dev-master
9999999-dev https://github.com/oziks/XHProfServiceProviderXHProf service provider for Silex.
MIT
The Requires
debug silex toolbar xhprof
Wallogit.com
2017 © Pedro Peláez
XHProf service provider for Silex.
Adding XHProf report in the web profiler (Silex)., (*1)
xhprof.location : The path in which XHProf will be found., (*2)
xhprof.host : The xhprof host website., (*3)
To enable it, add this dependency to your composer.json file:, (*4)
"oziks/xhprof-service-provider": "dev-master"
And enable it in your application:, (*5)
``` php <?php, (*6)
$app['xhprof.location'] = '/var/www/utils/xhprof'; $app['xhprof.host'] = 'http://localhost/xhprof/'; $app->register(new \Oziks\Provider\XHProfServiceProvider());, (*7)
Usage ----- ``` php <?php $app['xhprof']->start(); for ($i = 0; $i <= 1000; $i++) { $a = $i * $i; } $app['xhprof']->end();
, (*8)
XHProf service provider for Silex.
MIT
debug silex toolbar xhprof