hwms / jrfonseca

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

gprof2dot.py unable to parse output from gprof #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/root/download/dlxlinux>gprof ~/qemu-kvm/bin/qemu-system-x86_64 gmon.out | 
~/download/gprof2dot.py 

Traceback (most recent call last):
  File "/root/download/gprof2dot.py", line 2899, in <module>
    Main().main()
  File "/root/download/gprof2dot.py", line 2878, in main
    self.profile = parser.parse()
  File "/root/download/gprof2dot.py", line 1067, in parse
    profile.integrate(TOTAL_TIME, TIME)
  File "/root/download/gprof2dot.py", line 389, in integrate
    self._integrate_function(function, outevent, inevent)
  File "/root/download/gprof2dot.py", line 400, in _integrate_function
    total += self._integrate_call(call, outevent, inevent)
  File "/root/download/gprof2dot.py", line 408, in _integrate_call
    subtotal = call.ratio *self._integrate_function(callee, outevent, inevent)
  File "/root/download/gprof2dot.py", line 400, in _integrate_function
    total += self._integrate_call(call, outevent, inevent)
  File "/root/download/gprof2dot.py", line 408, in _integrate_call
    subtotal = call.ratio *self._integrate_function(callee, outevent, inevent)
  File "/root/download/gprof2dot.py", line 400, in _integrate_function
    total += self._integrate_call(call, outevent, inevent)
  File "/root/download/gprof2dot.py", line 408, in _integrate_call
    subtotal = call.ratio *self._integrate_function(callee, outevent, inevent)
  File "/root/download/gprof2dot.py", line 400, in _integrate_function
    total += self._integrate_call(call, outevent, inevent)
  File "/root/download/gprof2dot.py", line 408, in _integrate_call
    subtotal = call.ratio *self._integrate_function(callee, outevent, inevent)
  File "/root/download/gprof2dot.py", line 400, in _integrate_function
    total += self._integrate_call(call, outevent, inevent)
  File "/root/download/gprof2dot.py", line 408, in _integrate_call
    subtotal = call.ratio *self._integrate_function(callee, outevent, inevent)
  File "/root/download/gprof2dot.py", line 394, in _integrate_function
    return self._integrate_cycle(function.cycle, outevent, inevent)
  File "/root/download/gprof2dot.py", line 448, in _integrate_cycle
    assert partial == max(partials.values())
AssertionError

Original issue reported on code.google.com by mcheung63@gmail.com on 13 Nov 2012 at 4:02

GoogleCodeExporter commented 9 years ago
here is the gmon.out

Original comment by mcheung63@gmail.com on 13 Nov 2012 at 4:03

Attachments:

GoogleCodeExporter commented 9 years ago
I'm afraid it is not possible to reproduce the issue with gmon.out alone, as 
gprof requires the executable. The best to reproduce this is the gprof output 
itself.

Please re-open if you can provide the gprof output.

Original comment by Jose.R.F...@gmail.com on 24 Nov 2012 at 9:58