Looking to profile my web app, I have added the following settings to my Applications php.ini file:
zend_extension = "C:\hqp\xampp_1.7.4\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "c:\hqp\xampp_1.7.4\tmp\profiles"
xdebug.profiler_output_name = "cachegrind.out.%s"
xdebug.profiler_enable_trigger = 1在httpd.conf文件中,使用php值auto_prepend对文件进行auto_prepended。生成的cachegrind.out.*文件具有此文件的名称(在xdebug.profiler_output_name中为%s修饰符),而不是我实际要分析的文件(例如,index.php文件没有对应的cachegrind.out.filepath_index.php)
你知道我错过了什么吗?
发布于 2018-05-23 16:06:39
可能您正在生成两个文件,而第二个文件会覆盖第一个文件。
您可以在php.ini中更改以下参数:
xdebug.profiler_append=1这应该会将两个调用附加到同一个文件中。来源:https://xdebug.org/docs/profiler
xdebug.profiler_output_name = cachegrind.out.%u.%p.%r这应该确保如果有2个文件,它们的名称应该不同。
其他修饰符的https://xdebug.org/docs/all_settings#trace_output_name。
https://stackoverflow.com/questions/22339588
复制相似问题