XDebug offers the configuration directive \"xdebug.profiler_enable_trigger\" that allows to activate profiling by passing the GET or POST parameter \"XDEBUG_PROFILE\" when c
You can pass INI settings with the -d flag: php -d xdebug.profiler_enable=On script.php.
-d
php -d xdebug.profiler_enable=On script.php