Home  >  Article  >  Backend Development  >  What is xhprof in php?

What is xhprof in php?

烟雨青岚
烟雨青岚Original
2020-06-30 16:38:364825browse

XHProf is a layered PHP performance analysis tool. It reports the number of requests and various metrics at the function level, including blocking time, CPU time, and memory usage.

What is xhprof in php?

XHProf is a layered PHP performance analysis tool.

It reports the number of requests and various metrics at the function level, including blocking time, CPU time, and memory usage.

The overhead of a function can be broken down into caller and callee overhead. .

Its unique reporting/post-processing stage of data calculation.

During data collection, XHProfd handles recursive function calls by detecting loops and avoids infinite loops by giving each deep call in the recursive call a useful name.

XHProf analysis report helps to understand the structure of the executed code, it has a simple HTML user interface (written in PHP).

The browser-based performance analysis user interface makes it easier to view or share results with peers. You can also draw call diagrams

Recommended tutorial: "php tutorial"

The above is the detailed content of What is xhprof in php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn