(Xdebug Profiler) Why are there two cachegrind files generated for one page?

@Edward,

You’ve configured the Xdebug profiler output filename in such a way that it overwrites the output file, each time, you run the process.

%u, %H, %R – you mentioned in the output name are called format specifiers.

There are couple of ways to figure out which file you may want to analyze.

  • Use %t (timestamp) format specifier in your output filename so you may know which file to analyze based on the timestamp value.
  • Instead of enabling the profiler throughout, you could trigger the profiler by passing a query arg as described here. This way you will only generate the Xdebug profiler output for the intended page. (Recommended)