You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. opreport -cgf | ./gprof2dot.py -f oprofile
What is the expected output? What do you see instead?
I get the following traceback:
File "./gprof2dot.py", line 2069, in <module>
Main().main()
File "./gprof2dot.py", line 1994, in main
self.profile = parser.parse()
File "./gprof2dot.py", line 1067, in parse
self.parse_header()
File "./gprof2dot.py", line 1113, in parse_header
self.entry_re = re.compile(entry_re)
File "/usr/lib/python2.6/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.6/re.py", line 245, in _compile
raise error, v # invalid expression
sre_constants.error: redefinition of group name 'samples' as group 3; was
group 1
What version of the product are you using? On what operating system?
Updated to revision 296,
Python 2.6.4 on Ubuntu Karmic
oprofile 0.9.4+cvs20090629-2.1ubuntu2
Original issue reported on code.google.com by sneumann...@gmail.com on 16 Dec 2009 at 4:18
Hi,
This happens because the oprofile output has multiple events: CPU_CLK_UNHALTED,
and
LOAD_BLOCK. gprof2dot doesn't support parsing multiple events. I have plans to
add
that support, but until then I'll try to fix the crash and get the first event
parsed
correctly.
Original comment by Jose.R.F...@gmail.com on 31 Jan 2010 at 3:09
Fix pushed.
Note that the karmic.oprofile you attached has no call stack information so the
graph
generated by gprof2dot will appear as a bunch of isolated nodes. You'll need to
re-
acquire the data with --callgraph=xxx option.
Original comment by Jose.R.F...@gmail.com on 31 Jan 2010 at 10:46
Original issue reported on code.google.com by
sneumann...@gmail.com
on 16 Dec 2009 at 4:18Attachments:
The text was updated successfully, but these errors were encountered: