How to profile a PHP shell script app or worker using Blackfire
问题 I noticed that when I have an endless worker I cannot profile PHP shell scripts. Because when it's killed it doesn't send the probe. What changes shall I do? 回答1: When you are trying to profile a worker which is running an endless loop. In this case you have to manually edit your code to either remove the endless loop or instrument your code to manually call the close() method of the probe (https://blackfire.io/doc/manual-instrumentation). That's because the data is sent to the agent only