It can be more flexible if the end user can configure what processes to grep, because sometimes even if you have both PHP and PHP-FPM applications, you need only one of those for profiling, or there are some situations when you need to grep only specific processes