定制 oziks/xhprof-service-provider 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-19