Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/field/xhprof.diviner
@title Using XHProf | @title Using XHProf | ||||
@group fieldmanual | @group fieldmanual | ||||
Describes how to install and use XHProf, a PHP profiling tool. | Describes how to install and use XHProf, a PHP profiling tool. | ||||
Overview | Overview | ||||
======== | ======== | ||||
XHProf is a profiling tool which will let you understand application | XHProf is a profiling tool which will let you understand application | ||||
performance in Phabricator. | performance in Phorge. | ||||
After you install XHProf, you can use it from the web UI and the CLI to | After you install XHProf, you can use it from the web UI and the CLI to | ||||
generate detailed performance profiles. It is the most powerful tool available | generate detailed performance profiles. It is the most powerful tool available | ||||
for understanding application performance and identifying and fixing slow code. | for understanding application performance and identifying and fixing slow code. | ||||
Installing XHProf | Installing XHProf | ||||
================= | ================= | ||||
Show All 36 Lines | |||||
Using XHProf: CLI | Using XHProf: CLI | ||||
================= | ================= | ||||
From the command line, use the `--xprofile <filename>` flag to generate a | From the command line, use the `--xprofile <filename>` flag to generate a | ||||
profile of any script. | profile of any script. | ||||
You can then upload this file to Phabricator (using `arc upload` may be easiest) | You can then upload this file to Phorge (using `arc upload` may be easiest) | ||||
and view it in the web UI. | and view it in the web UI. | ||||
Analyzing Profiles | Analyzing Profiles | ||||
================== | ================== | ||||
Understanding profiles is as much art as science, so be warned that you may not | Understanding profiles is as much art as science, so be warned that you may not | ||||
make much headway. Even if you aren't able to conclusively read a profile | make much headway. Even if you aren't able to conclusively read a profile | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0