gcode-mirror / xdebugtoolkit

Automatically exported from code.google.com/p/xdebugtoolkit
0 stars 0 forks source link

error in reader.py #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python xdebugtoolkit/cg2dot.py /tmp/cachegrind.out.18368

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "xdebugtoolkit/cg2dot.py", line 29, in ?
    tree = XdebugCachegrindTreeBuilder(xdebug_parser).get_tree()
  File "/root/soft/xdebugtoolkit/reader.py", line 188, in get_tree
    inclusive_time = sum([x.sum_inclusive_time for x in root_node.subcalls])
AttributeError: 'NoneType' object has no attribute 'sum_inclusive_time'

What version of the product are you using? On what operating system?
python2.7 on win7 & centos(Linux version 2.6.18-194.8.1.el5 
(mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 
4.1.2-48)) #1 SMP Thu Jul 1 19:07:06 EDT 2010
)

Please provide any additional information below.

Original issue reported on code.google.com by lin.qiu...@gmail.com on 7 Dec 2010 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Alexey.K...@gmail.com on 7 Dec 2010 at 6:13

GoogleCodeExporter commented 9 years ago
Fixed in trunk in r139.
Let me know if you still have any issues.

Original comment by Alexey.K...@gmail.com on 11 Dec 2010 at 11:19

GoogleCodeExporter commented 9 years ago
btw, I've released a new version 0.1.5 that includes this fix

Original comment by Alexey.K...@gmail.com on 27 Dec 2010 at 8:16