xhprof icon indicating copy to clipboard operation
xhprof copied to clipboard

hope it can support php artisan schedule:work and php artisan queue:listen

Open zh7314 opened this issue 4 months ago • 1 comments

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

zh7314 avatar Aug 06 '25 06:08 zh7314

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.

aik099 avatar Aug 06 '25 07:08 aik099