sawsen11 / jrfonseca

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

Bug with callgrind file #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have used callgrind file for php.

What steps will reproduce the problem?
1. http://files.first-world.info/temp/cachegrind.out.17242
2. try: cat cachegrind.out.17242 | python2.7 ./jrfonseca.gprof2dot/gprof2dot.py

What is the expected output? What do you see instead?
cat cachegrind.out.17242 | python2.7 ./jrfonseca.gprof2dot/gprof2dot.py -f 
callgrind
Traceback (most recent call last):                                              

  File "./jrfonseca.gprof2dot/gprof2dot.py", line 2896, in <module>                                                                                                                                                                                                            
    Main().main()                                                                                                                                                                                                                                                              
  File "./jrfonseca.gprof2dot/gprof2dot.py", line 2875, in main                                                                                                                                                                                                                
    self.profile = parser.parse()                                                                                                                                                                                                                                              
  File "./jrfonseca.gprof2dot/gprof2dot.py", line 1107, in parse                                                                                                                                                                                                               
    while self.parse_part():                                                                                                                                                                                                                                                   
  File "./jrfonseca.gprof2dot/gprof2dot.py", line 1129, in parse_part                                                                                                                                                                                                          
    while self.parse_body_line():                                                                                                                                                                                                                                              
  File "./jrfonseca.gprof2dot/gprof2dot.py", line 1182, in parse_body_line                                                                                                                                                                                                     
    self.parse_cost_line() or \                                                                                                                                                                                                                                                
  File "./jrfonseca.gprof2dot/gprof2dot.py", line 1204, in parse_cost_line                                                                                                                                                                                                     
    self.positions['cob'] = self.positions['ob']                                                                                                                                                                                                                               
KeyError: 'ob'

What version of the product are you using? On what operating system?
Git version, python 2.7. (python 3.2 not work with this)

Original issue reported on code.google.com by brule.he...@gmail.com on 4 Jun 2012 at 4:21

GoogleCodeExporter commented 9 years ago
Fixed now. Thanks.

Original comment by Jose.R.F...@gmail.com on 7 Jul 2012 at 9:33