#3 incorrect file names displayed when xdebug.profiler_append=1

open
nobody
None
5
2008-05-30
2008-05-30
junky
No

My desire is to use a output file name format such that I can open (and occasionally refresh) a single cachegrind.out file and see all requests in a certain area of my application to locate which pages are most troublesome, as well as track improvements that I've made to them. Thus I use something like "cachegrind.out.%H.%c" and set xdebug.profiler_append=1 .
However, when I open the file in cachegrind 1.0.0.12, the root list of {main} calls are all listed as being for the same file name (even though the requests were for different files). I've provided a snippet of cachgrind.out file below. It appears that the 'first' filename in the log is used for all log entries as my view shows all the filenames being 'event.php' even though most of the log entries are actually for 'event.assets.php' (attached is also a screen grab of the issue)

--------------------------------------------------

==== NEW PROFILING FILE ==============================================
version: 0.9.6
cmd: C:\eclipse\PHPeclipse\events.mysite.com\htdocs\admin\event.php
part: 1
.
.
.

==== NEW PROFILING FILE ==============================================
version: 0.9.6
cmd: C:\eclipse\PHPeclipse\events.mysite.com\htdocs\admin\event.asset.php
part: 1
.
.
.

--------------------------------------------------

My PHP ini settings are as follows:

zend_extension_ts="C:/PHP/modules/php_xdebug-2.0.3-5.2.5.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
cgi.force_redirect=0
xdebug.remote_host=127.0.0.1

xdebug.profiler_append=1
xdebug.profiler_enable=off
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="C:/PHP/xdebug_logs"
xdebug.profiler_output_name=cachegrind.out.%H.%c

And I'm using the firefox addon "xdebug helper" found here: https://addons.mozilla.org/en-US/firefox/addon/3960

Discussion

  • junky
    junky
    2008-05-30

    wrong filename display highlighted screen cap