I am not sure where to find the cachegrind files that the XDebug Profiler outputs. Can someone point me in the right direction? Thanks!
The profiler is disabled by default. You can enable it by changing
1 in php.ini for the specific version of PHP you’re using. It will be under
/conf/php/VERSION/php.ini in the site folder.
To answer your original question, it looks like they’ll be in
/tmp in the site container. I would recommend adding
xdebug.profiler_output_dir and setting it to
/app. For more info, see https://xdebug.org/docs/profiler
After you change the config you’ll need to restart the site so the config changes take effect.
Hi, I know this is an old post but where is the php.ini file. There is no conf folder in my site folder.
I can get to using SSH access but I cannot open the file using vi php.ini for example.
The Preferred environment doesn’t have Xdebug so if you want Xdebug you’ll need to export your current site and then re-import it into the “Custom” environment.
Then, you’ll be able to access the
Thanks Clay for the explanation. appreciated.
It’d be helpful to have this information more easily found. I spent a few head scratching hours trying to figure out why Xdebug wasn’t working without realizing that it wasn’t included in the preferred environment even though it’s listed under the Utilities section for the site. Having something in the Utilities area letting the user know if Xdebug is or is not available would be great.
I’ve put this into our backlog.
Sorry for the confusion!