hwms / jrfonseca

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

AssertionError and odd looking output.png file. #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. gprof MappingServer | ./gprof2dot.py -f perf | dot -Tpng -o output.png
2. Traceback (most recent call last):
  File "./gprof2dot.py", line 2890, in <module>
    Main().main()
  File "./gprof2dot.py", line 2815, in main
    self.profile = parser.parse()
  File "./gprof2dot.py", line 1385, in parse
    self.parse_event()
  File "./gprof2dot.py", line 1404, in parse_event
    assert callchain
AssertionError

3. But if I do: gprof MappingServer | ./gprof2dot.py | dot -Tpng -o output.png
then a weird looking output.png is produced (attached).

What is the expected output? What do you see instead?
Now why do I see assertion error? Why is the whole ouput.png is produced in red.
Is there any way to change this color?

What version of the product are you using? On what operating system?
I think the gprof2dot.py version is: __version__ = "1.0". 
Distributor ID: Ubuntu
Description:    Ubuntu 10.10
Release:    10.10
Codename:   maverick

Please provide any additional information below.

Original issue reported on code.google.com by dodul...@gmail.com on 1 Nov 2011 at 9:03

Attachments:

GoogleCodeExporter commented 9 years ago
Please attach the output of gprof MappingServer

Original comment by Jose.R.F...@gmail.com on 1 Nov 2011 at 9:30

GoogleCodeExporter commented 9 years ago
From the image, it looks like that total time is 0, hence every node gets 100%.

See 
http://code.google.com/p/jrfonseca/wiki/Gprof2Dot#Why_there_is_no_output,_or_it_
is_all_in_the_same_color?

Anyway, I'm afraid that without the gprof output I cannot do anymore. Please 
re-open if this issue persists and you can provide the gprof2dot input. 

Original comment by Jose.R.F...@gmail.com on 28 Nov 2011 at 4:12