PHPackages                             myziyue/xhprof - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. myziyue/xhprof

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

myziyue/xhprof
==============

MyZiyuye Xhprof library

1.0.7(9y ago)037BSD-3-ClausePHPPHP &gt;=5.4.0

Since Dec 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/myziyue/xhprof)[ Packagist](https://packagist.org/packages/myziyue/xhprof)[ Docs](http://www.myziyue.com/)[ RSS](/packages/myziyue-xhprof/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)DependenciesVersions (12)Used By (0)

xhprof集成类库
==========

[](#xhprof集成类库)

系统需求
----

[](#系统需求)

1. PHP扩展：xhprof
2. 安装gd、graphviz、fontconfig

    如，以centos系统为例，可以使用yum安装方式

```
# yum install -y gd gd-devel fontconfig fontconfig-devel graphviz

```

安装方法
----

[](#安装方法)

```
composer require myziyue/xhprof

```

使用方法
----

[](#使用方法)

### 方式1：嵌入到项目中

[](#方式1嵌入到项目中)

```
