通过oprofile来给程序做性能和瓶颈分析,封装为一个shell脚本,使用简单: 例子:/root/oprofile/oprofile.sh "php test.php" 就可以分析出,这个程序的内核和函数使用情况。
It is used for Analyzing the performance and bottleneck of application by oprofile as a shell script. It is very simple for using. For example : oprofile.sh "php test.php" (add your shell command or script) Then you can get the result of application on using functions and kernel in linux.