Skip to content

Commit

Permalink
Skip header '# callgrind format' if any.
Browse files Browse the repository at this point in the history
  • Loading branch information
foxcpp authored and jrfonseca committed Sep 19, 2017
1 parent 7ef1120 commit ee8a3af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gprof2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,10 @@ def parse(self):
# read lookahead
self.readline()

# skip '# callgrind format' if any
if self.lookahead() == '# callgrind format':
self.readline()

self.parse_key('version')
self.parse_key('creator')
while self.parse_part():
Expand Down

0 comments on commit ee8a3af

Please sign in to comment.