xhprof
xhprof copied to clipboard
hope it can support php artisan schedule:work and php artisan queue:listen
I hope to add performance analysis for operations running in cli mode, such as scheduled tasks, queue listeners, and php artisan schedule:work php artisan queue:listen
The toggle that enables profiling comes from a cookie value that is automatically set when a _profile request variable is present. If you can improve that logic to also look in the environment variable, when executed from CLI, then probably it will work.
You might get a bunch of notices because of accessing $_REQUEST from CLI, but that is fixable.