使用webgrind来做PHP的性能优化
2014-12-20 10:54
267 查看
很多时候我们经常会遇到一些性能上面的瓶颈。瓶颈并不可怕,可怕的是不知道瓶颈出现在了什么地方。
在实际工作中,有很多朋友不知道如何去解决。我说一下我使用到的一个工具:webgrind,来做PHP的性能优化。
大家可以在网上找到很多这样的教程。先安装xdebug,再安装webgrind。
大家可以先安装 xdebug,官网地址为:http://www.xdebug.org/
然后安装:https://github.com/jokkedk/webgrind
官网的说明是这样的:
Download webgrind(下载webgrind)
Unzip package to favourite path accessible by webserver.(解压包到指定的web目录)
Load webgrind in browser and start profiling(加载浏览即可)
打开本地的任意一个php文件,WebGrind都会自动监测的。
效果图如下哟:
xdebug webgrind
在实际工作中,有很多朋友不知道如何去解决。我说一下我使用到的一个工具:webgrind,来做PHP的性能优化。
大家可以在网上找到很多这样的教程。先安装xdebug,再安装webgrind。
大家可以先安装 xdebug,官网地址为:http://www.xdebug.org/
然后安装:https://github.com/jokkedk/webgrind
官网的说明是这样的:
Download webgrind(下载webgrind)
Unzip package to favourite path accessible by webserver.(解压包到指定的web目录)
Load webgrind in browser and start profiling(加载浏览即可)
打开本地的任意一个php文件,WebGrind都会自动监测的。
效果图如下哟:
xdebug webgrind
相关文章推荐
- 【PHP性能优化学习】之xhprof安装&&使用
- 如何使用 APM 搞定 PHP 应用的性能优化?
- PHP性能优化:in_array和isset 在大数组查询中耗时相差巨大,以及巧妙使用array_flip
- 使用socket方式连接Nginx优化php-fpm性能
- php性能优化:使用 isset()判断字符串长度速度比strlen()更快
- PHP性能优化四(业务逻辑中使用场景)
- php项目 如何进行 性能优化 一 ( php使用上的性能优化)
- 使用socket方式连接Nginx优化php-fpm性能
- 使用socket方式连接Nginx优化php-fpm性能
- PHP脚本执行效率性能检测之WebGrind的使用
- NFS架构下使用realpath_turbo优化php性能
- NFS架构下使用realpath_turbo优化php性能
- 在PHP中使用Memcache优化缓冲性能
- 在PHP中使用Memcache优化缓冲性能
- PHP性能调优,PHP慢日志---PHP脚本执行效率性能检测之WebGrind的使用
- NFS架构下使用realpath_turbo优化php性能
- 使用socket方式连接Nginx优化php-fpm性能
- 使用socket方式连接Nginx优化php-fpm性能
- 在PHP中使用Memcache优化缓冲性能