oziks/xhprof-service-provider
Composer 安装命令:
composer require oziks/xhprof-service-provider
包简介
XHProf service provider for Silex.
README 文档
README
Adding XHProf report in the web profiler (Silex).
Parameters
-
xhprof.location : The path in which XHProf will be found.
-
xhprof.host : The xhprof host website.
Registering
To enable it, add this dependency to your composer.json file:
"oziks/xhprof-service-provider": "dev-master"
And enable it in your application:
<?php $app['xhprof.location'] = '/var/www/utils/xhprof'; $app['xhprof.host'] = 'http://localhost/xhprof/'; $app->register(new \Oziks\Provider\XHProfServiceProvider());
Usage
<?php $app['xhprof']->start(); for ($i = 0; $i <= 1000; $i++) { $a = $i * $i; } $app['xhprof']->end();
Screenshots
统计信息
- 总下载量: 201.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-19