Chassis / Xdebug

A Chassis extension to install and configure Xdebug on your server
0 stars 8 forks source link

Enable XDebug profiling #24

Closed BronsonQuick closed 7 years ago

BronsonQuick commented 7 years ago

We should add the option to enable XDebug profiling using a query string. I think we can enable this fairly easily by editing our ini file to include the following:

# Enable php profiling with get param XDEBUG_PROFILE=1
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=cachegrind.out.%t.%p
xdebug.profiler_enable_trigger=1

Props to @mattheu for mentioning this idea after seeing a talk a WordCamp Europe that demonstrated profiling.