


PHP performance monitoring extension xhprof performance analysis tool
Jul 25, 2016 am 09:13 AM
The PHP performance monitoring extension xhprof is generally a good tool. This section introduces the installation and usage process under Ubuntu. Install xhprof:
In order to view the debugging results graphically, you must also To install the tool graphviz, you can directly use apt-get to install it under ubuntu. The command is: sudo apt-get install graphviz. If it is another system, you may have to use some twists and turns. The command is as follows:
Next configure php.ini Add in php.ini:
Note: If it is a 64-bit system, you need to copy the xhprof.so file to the relevant lib directory (lib64) After modification, restart apache and look at phpinfo. There should be information about xhprof. Add the code to the php to be tested
Parameter description: Inclusive time includes all execution time of sub-functions. exclusive time/self time The time it takes for the function to execute itself, excluding subtree execution time. wall time elapsed time or wall clock time. cpu time user time + kernel time inclusive cpu includes the cpu occupied by sub-functions together exclusive cpu The cpu occupied by the function itself
|

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel

6 Extra Skills Every PHP Developer Should Have

Build a React App With a Laravel Back End: Part 2, React

Simplified HTTP Response Mocking in Laravel Tests

12 Best PHP Chat Scripts on CodeCanyon

cURL in PHP: How to Use the PHP cURL Extension in REST APIs
