IntelliJ IDEA 14.0.0 Web Help

Enabling Profiling with XDebug

XDebug profiler is incorporated in the XDebug tool. Therefore you first need to download, install, and enable XDebug itself and after that enable the profiling functionality within it.

To enable profiling with XDebug, perform these general steps:

To configure XDebug

  1. Download and install the XDebug tool.
  2. Integrate XDebug with the PHP engine.
  3. Integrate XDebug with IntelliJ IDEA.

To enable XDebug profiler

  1. Open the active php.ini file.
  2. Set the xdebug.profiler_enable directive to 1:
    xdebug.profiler_enable = 1;
  3. To enable toggling the profiler from the browser through control over debugger cookies, set the xdebug.profiler_enable_trigger directive to 1:
    xdebug.profiler_enable_trigger = 1;

To enable toggling the profiler from the browser

To specify the location for storing accumulated profiling data

  1. Open the active php.ini file.
  2. Define location for accumulating profiling snapshots by specifying the xdebug.profiler_output_dir directive.
    xdebug.profiler_output_dir = "<output folder name>"
  3. Specify the name of the file to store snapshots in through the value of the xdebug.profiler_output_name directive. The default name is cachegrind.out.%p, where %p is the name format specifier. Accept the default name or define a custom one in compliance with the following standard:
    1. The name should always be cachegrind.out.
    2. Use the supported format specifiers.

See Also

Last modified: 4 December 2014
comments powered by Disqus