PHPackages                             aaron-dev/xhprof-webman - 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. aaron-dev/xhprof-webman

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

aaron-dev/xhprof-webman
=======================

aaron-dev/xhprof-webman is a code performance analysis plugin that is compatible with webman. Mainly optimize and adjust the old and unusable xhprof for adapting to webman, making installation simple and fast.Developers can quickly access performance analysis reports through browsers to troubleshoot code performance issues.

v2.0.4(2mo ago)5237↓33.3%3[1 PRs](https://github.com/erikwang2013/xhprof-webman/pulls)MITPHPPHP &gt;=8.0

Since Oct 27Pushed 2mo agoCompare

[ Source](https://github.com/erikwang2013/xhprof-webman)[ Packagist](https://packagist.org/packages/aaron-dev/xhprof-webman)[ RSS](/packages/aaron-dev-xhprof-webman/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (11)Used By (0)

简介
--

[](#简介)

aaron-dev/xhprof-webman是一款适配webman的代码性能分析插件。 主要对旧版且无法使用的xhprof做优化调整，用于适配webman，安装简单快捷。 开发者可以通过浏览器快速访问性能分析报告，排查代码性能问题。

作者博客
----

[](#作者博客)

[艾瑞可erik](https://erik.xyz)

安装
--

[](#安装)

php要安装xhprof扩展 在php.ini中增加配置

```
[xhprof]
extension=xhprof.so;
xhprof.output_dir=/tmp/xhprof;

```

Use [Composer](https://github.com/composer/composer):

```
composer require aaron-dev/xhprof-webman
```

配置
--

[](#配置)

1. config增加全局中间件

```
    '' => [
        Aaron\Xhprof\Webman\XhprofMiddleware::class,
    ]

```

2. 创建控制器,复制下面代码

```
