Code-level visibility for PHP

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

  1. Go to Services.
  2. optional Filter the table by Technology: PHP.
  3. Select a PHP service.

    Dynamic requests

  4. Select View dynamic requests and then select a PHP request.
  5. Select View response time hotspots.
    If you use FPM, select the FPM service and then select View response time hotspots to view the entire service or any individual request.

    Response time

  6. To view a breakdown of your request's code-level timings, select Analyze outliers or refer to the Response time tab.
  7. To view method-level hotspots in your PHP code, on the Response time analysis page, select PHP execution.

    PHP execution

  8. To examine CPU consumption of code at the method level, select the CPU tab and then select View method hotspots, where you can display charts for Execution time and Top APIs. You can also check Call hierarchy and Hotspots for the overall contribution of every file/method called.

    View method hotspots