PHPEdit's internal server's debugger is already configured for profiling, so there's nothing to change here.
To enable Xdebug's profiler, add the following line to php.ini:
xdebug.profiler_enable_trigger=on
This will enable the profiler in a "trigger" mode, meaning that it will only be active if a special parameter is added in the request url (XDEBUG_PROFILE). If you want all your sessions to be profiled, without having to add the parameter to the url, use this configuration line instead:
xdebug.profiler_enable=on
Keep in mind that when you start a debug session from PHPEdit, the IDE adds automatically the XDEBUG_PROFILE parameter to the request url, so you don't have to worry about it in that case.
Then you need to configure the profiler's output dir:
xdebug.profiler_output_dir="/home/username/profiler" xdebug.profiler_output_name="timestamp"
Specifiy the directory you want for xdebug.profiler_output_dir , but keep in mind that this directory must be accessible by PHPEdit! If the server in on the same computer than PHPEdit then there's no problem, PHPEdit will be able to access the files. However, if the server is on a remote machine, make sure that this folder is shared and accessible to the machine with PHPEdit.
Make sure you enter an absolute path , if you enter a relative path PHPEdit won't be able to tell to what this path is relative.
You may have to configure file mapping settings to make it work (see below).
Also make sure that this directory is writable by the server , otherwise you will get I/O errors when profiling.
To configure PHPEdit for profiling, go in the settings dialog to the "Debugger" -> "Profilier" settings page, and check the checkbox.
Profiler output files are cachegrind files, they have to be opened by a thirdparty tool, for example Wincachegrind. Download and install that application, and configure the path in PHPEdit's settings.
If the profiler output files are located in a different remote root folder than your php scripts, you need to configure custom mapping settings for them. Browse for the root directory from PHPEdit's point of view (local), and set the remote root directory, which is the same directory but from the profiler's point of view.