Trying to profile my code with QCacheGrind and everything loads fine but I can't see the source code inside the program.
For some reason the source code path is wrong.
Right now it is cachegrind file location
+ php file location
It should be only php file location
This is a cachegrind bug that appears under non-linux filesystems.
Cachegrind will look for source files in the path where your callgrind output file is, appended to the path where your Source file is (this path is stored in the callgrind output). C:/callgrind/C:/Project/src/index.php
You can work around this bug by placing your callgrind outputs in a folder directly outside your source root ( C:/Project/ ). And running a replace on your callgrind output file to delete the directory of your callgrind output from all of the source file paths, thus the callgrind output will show that your source file is at src/index.php .
In the end, cachegrind will join C:/Project/ and src/index.php and you will be able to view your source code in cachegrind.