Installed xdebug with pecl install xdebug.
Enabled in extra .ini config file in:
/usr/local/etc/php/7.2/conf.d
Restart PHP with:
brew services restart php72
The webcachegrind script does not seem to work. It lists only a few of the cache files, and they often do not match their description. For example the filename will appear to be webcachegrinds own PHP script, but all the data relates to a different WordPress script. Out of sync with the requests.
Might need a different tool like QCachegrind.
Currently cachegrind files are in /private/var/tmp