- Open the active php.ini file.
-
Set the xdebug.profiler_enable
directive to 1:
xdebug.profiler_enable = 1; -
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;
-
Specify the GET/POST or COOKIE parameters. Do one of the following:
-
Specify the values manually
.
- Generate bookmarklets through which you will start/stop a debugging session by controlling the debugger cookie.
-
Specify the values manually
- Open the active php.ini file.
-
Define location for accumulating profiling snapshots by specifying the xdebug.profiler_output_dir
directive.
xdebug.profiler_output_dir = "<output folder name>" -
Specify the name of the file to store snapshots in through the value of the xdebug.trace_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:
- The name should always be cachegrind.out.
- Use the supported format specifiers
.
