I want to profile a plugin I developed for WordPress to improve performance. Xdebug is installed and even debugging works without any problems. However, I could not get profiling to work properly. When I start the folder with the php server and enter the port, it redirects directly to localhost. In a configuration like the one below, it gives errors like the host is missing, and it runs directly from the home page, not the page I want.
Now, when I access any URL on my WordPress site built on WampServer, what is the way to profile all the code running there? How can I do that?
{
"name": "Profile current script",
"type": "php",
"request": "launch",
"program": "C:\wamp64\www\wordpress\index.php",
"cwd": "C:\wamp64\www\wordpress",
"profile": true,
"externalConsole": false
}