Code-level visibility gives you insights into where your PHP code spends the most time and uses the most CPU.
To access the PHP code-level view
Click the Services tile on your dashboard.
Select a PHP service.
Select a PHP request.
Example: PHP request
Click the View response time hotspots button.
If you use FPM, select the FPM service and click the View response time hotspots button to view the entire service or any individual request.
Example: response time
Under Average response time, click Self time to view the breakdown of your request's code-level timings.
To view method-level hotspots in your PHP code, click the newly added PHP execution link.
Example: PHP execution
If you want to know why your service consumes a lot of CPU, and not the response time, click CPU consumption.
Example: view method hotspots