DP Code Profiling

From DPWiki
Jump to navigation Jump to search

PHP code can be profiled on the TEST server using XDebug and visualized using webgrind. This page assumes you are familiar with reading and understanding application profiles.

Xdebug config

Xdebug is only configured for profiling upon request via access token. It is not configured for tracing or debugging (remote or local).

Access

To get started, on Slack request

This will give you access to webgrind to see profiling results and the token needed to profile pages.

Profiling a page

To profile a page on the TEST server:

  1. Open the page you want to profile
  2. Append XDEBUG_PROFILE=<access token> to the URL as a parameter
  3. Open webgrind from the Squirrel Workbench
  4. Access the cachegrind in the upper right corner