承接 epwt/xhprof 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

epwt/xhprof

最新稳定版本:v1.0.0

Composer 安装命令:

composer require epwt/xhprof

包简介

EPWT XHProf Symfony Profiler Integration

README 文档

README

Latest Stable Version Latest Unstable Version Total Downloads Analytics

EPWTXhprofBundle provides XHProf integration to Symfony profiler and wrapper for XHProf simple usage anywhere in project.

Toolbar

Samples List Sample Runs Sample Run Full Sample Run

Requirements

  • Symfony >= 2.3
  • PHP >= 5.4
  • Facebook XHProf Extension

Install via Composer

composer require --dev epwt/xhprof "~1.0"

Setting up

Register EPWTXhprofBundle in AppKernel.php file. I suggest to use it only in development or testing environment

AppKernel.php

public function registerBundles()
{
	if (in_array($this->getEnvironment(), array('dev', 'test'))) {
		$bundles[] = new EPWT\XhprofBundle\EPWTXhprofBundle();
	}
}

Usage

To use XHProf anywhere in project just initiate profiling by using global function:

xhprofStart('Name of sample');

To end profiling use:

xhprofEnd();

Sample Usage

for($a = 0; $a < 20; $a++) {
    xhprofStart('Hello world');
    for ($i = 0; $i < 20; $i ++) {
        sleep(0.1);
    }
    xhprofEnd();
}

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

About

EPWTXhprofBundle is brought to you by Aurimas Niekis.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

统计信息

  • 总下载量: 252
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固