Hello.

I want to profile a PHP script in windows . I run the script in PhpStorm, simply by specifying the interceptor in the configuration.

Here are some of the profiler settings:

 xdebug.profiler_enable=On xdebug.profiler_output_dir="D:\" xdebug.profiler_enable_trigger=On xdebug.profiler_output_name="cachegrind.out.%R-%t" 

Profiling is coming. The script runs much longer. In D:\ a file is created, everything seems to be normal. But when opening this file through WinCacheGrind gives an error

enter image description here

I understand this because of the composer. Has anyone encountered this error?

  • You can use xhprof to profile applications, with building call and time schedules, and call stack - Naumov

1 answer 1

This is because the file is too large.

Try opening in kcachegrind .

  • one
    Requires callgrind files, and cachegrind files are created. Udated : a, renamed - all the rules) - A1essandro