How to trigger XDebug profiler for a command line PHP script?
XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter “XDEBUG_PROFILE” when calling a script … Read more