All Projects → midoks → md_xhprof

midoks / md_xhprof

Licence: MIT license
PHP7(xhprof)

Programming Languages

c
50402 projects - #5 most used programming language
PHP
23972 projects - #3 most used programming language
M4
1887 projects

Labels

Projects that are alternatives of or similar to md xhprof

xhprof
PHP7/PHP8 support
Stars: ✭ 877 (+4772.22%)
Mutual labels:  xhprof
Xhgui
Web interface for XHProf profiling data can store data in MongoDB or PDO database
Stars: ✭ 1,507 (+8272.22%)
Mutual labels:  xhprof

md_xhprof

  • Build Status
为xhprof升级版,与PHP7配合使用
#使用时需要设置环境变量
export USE_ZEND_DTRACE=1

安装


# 快速安装
curl -fsSL  https://raw.githubusercontent.com/midoks/md_xhprof/master/scripts/install.sh | sh


cd ~~/md_xhprof/src
$DIR/php/$PHP_VER/bin/phpize
./configure \
--with-php-config=~~/php7/bin/php-config --enable-debug
make && make install 

使用方法及原因

  • PHP7编译时要使用(--enable-dtrace)

调试

  • export USE_ZEND_ALLOC=0 #关闭内存管理
  • export USE_ZEND_DTRACE=1 #开启DTRACE调试
  • yum install valgrind
  • valgrind --leak-check=full php leak.php
  • php -dvld.active=1 leak.php

相关

PHP集成环境(mac),已经集成
https://github.com/midoks/mdserver-mac
PHP集成环境(win)
https://github.com/midoks/MDserver_64

Windows Xhprof(官方的有问题)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].