Request for better support of xdebug files
GoogleCodeExporter opened this issue · comments
It's not really an issue, rather a request.
Webgrind uses 'summary' and 'runs' headers which does not exists in file
generated by xdebug so total time is not shown at all.
Another problem is that when cost is set to "percent" and not mili- or
micro-seconds then TotalSelftCost and TotalInclusionCost are always equal to
zero. I guess it's because of missing total time.
Please try to make also other method of getting total time than searching for a
header. I know sum of all other times is not always perfect solution but it's
better than nothing ;)
Still, thanks for a great tool!
Original issue reported on code.google.com by akra...@gmail.com
on 6 Oct 2010 at 6:30
Webgrind was written specifically to support the format of Xdebug generated
files. I am not able to reproduce any of your issues. Could you perhaps attach
a sample xdebug file that exhibits the described problems for you so that I can
test?
Original comment by gugakf...@gmail.com
on 6 Oct 2010 at 12:52
Example of my cachgrind file in the attachment. Together with webgrind file.
I use xdebug 2.1.0 on Apache 2.2.11. Let me know if you need more info.
Original comment by akra...@gmail.com
on 6 Oct 2010 at 1:03
Attachments:
The problem with missing summary header seems to stem from calling "exit()" in
the script. Can you confirm this?
This was filed as an Xdebug issue back in 2004
(http://bugs.xdebug.org/bug_view_page.php?bug_id=68) and fixed but apparently
reappeared at some point. A new bug has been filed
(http://bugs.xdebug.org/view.php?id=631)
We'll wait for feedback from Derick until we decide if we should provide a
workaround for webgrind
Original comment by gugakf...@gmail.com
on 27 Oct 2010 at 10:31
- Changed state: WontFix
Might be :)
This script was generating Excel file and I think it was calling exit() at some
point after file was generated.
Original comment by akra...@gmail.com
on 27 Oct 2010 at 10:35