|
1 | 1 | # Integration — Xhprof profiler
|
2 | 2 |
|
3 |
| -The Xhprof profiler is an essential feature of Buggregator that offers a lightweight and hierarchical profiling solution |
4 |
| -for PHP applications. It uses instrumentation to keep track of call counts and inclusive metrics for arcs in the dynamic |
5 |
| -callgraph of your program during the data collection phase. In the reporting and post-processing phase, the profiler |
6 |
| -computes exclusive metrics such as wall (elapsed) time, CPU time, and memory usage. |
| 3 | +Buggregator is not just useful for dumping variables; it’s an essential instrument for deeply analyzing your PHP |
| 4 | +applications to locate and resolve efficiency issues. |
7 | 5 |
|
8 |
| - |
| 6 | +To start, you only need to install the profiling package into your PHP application and begin collecting metrics. The |
| 7 | +collected metrics will be automatically sent to Buggregator, where you can analyze the PHP function call trace. With a |
| 8 | +comprehensive set of tools, you can identify slow calls and work on optimizing them. You can keep sending metrics after |
| 9 | +making changes to ensure that all unoptimized code is streamlined. |
9 | 10 |
|
10 |
| -With the Xhprof profiler, you can easily identify performance bottlenecks and optimize your application's code for |
11 |
| -better efficiency. So, if you're looking to fine-tune your PHP application's performance, the Xhprof profiler is the |
12 |
| -perfect tool for the job. |
| 11 | +Watch introduction video on [YouTube](https://www.youtube.com/watch?v=2QbgjIVnz78). |
| 12 | + |
| 13 | +### Buggregator offers three types of analysis to help you enhance the performance of your PHP applications: |
| 14 | + |
| 15 | +1. **Call Graph** – This shows the function calls in a tree structure. The nodes in the call tree vary in color from |
| 16 | + white to dark red. The darker the color, the more resources are being consumed by that call. This visual |
| 17 | + representation helps you quickly identify which parts of your code are using the most resources, allowing you to |
| 18 | + pinpoint where optimizations are most needed. |
| 19 | + |
| 20 | +  |
| 21 | + |
| 22 | +2. **FlameGraph** – This graphical representation stacks function calls and shows which functions are called by which |
| 23 | + other functions. It's particularly useful for spotting repetitive or time-consuming operations that might not be |
| 24 | + obvious. The FlameGraph helps you see how functions interact and where time is being spent in your application, |
| 25 | + making it easier to target specific areas for improvement. |
| 26 | + |
| 27 | +  |
| 28 | + |
| 29 | +3. **Top 100 Functions** – This table lists the top 100 function calls that consume the most resources. It provides a |
| 30 | + clear, focused list of potential problem areas, so you can start optimizing the parts of your application that will |
| 31 | + make the biggest difference to overall performance. |
| 32 | + |
| 33 | +  |
13 | 34 |
|
14 | 35 | ## Installation extension
|
15 | 36 |
|
|
0 commit comments