2017 © Pedro Peláez
 

library xhprof-service-provider

XHProf service provider for Silex.

image

oziks/xhprof-service-provider

XHProf service provider for Silex.

  • Friday, May 2, 2014
  • by oziks
  • Repository
  • 1 Watchers
  • 7 Stars
  • 7,223 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 1 Versions
  • 20 % Grown

The README.md

XHProfServiceProvider

Adding XHProf report in the web profiler (Silex)., (*1)

Parameters

  • xhprof.location : The path in which XHProf will be found., (*2)

  • xhprof.host : The xhprof host website., (*3)

Registering

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();

Screenshots

, (*8)

The Versions

02/05 2014

dev-master

9999999-dev https://github.com/oziks/XHProfServiceProvider

XHProf service provider for Silex.

  Sources   Download

MIT

The Requires

 

debug silex toolbar xhprof