Skip to content

Commit

Permalink
Merge branch 'dev/gfdl' into user_code_units
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallward authored Apr 19, 2024
2 parents 90ee0c2 + f7a4491 commit e51c6f0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .testing/tools/parse_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,16 @@ def parse_perf_report(perf_data_path):

# get per-symbol count
else:
tokens = line.split()
symbol = tokens[2]
period = int(tokens[3])
try:
tokens = line.split()
symbol = tokens[2]
period = int(tokens[3])
except ValueError:
print("parse_perf.py: Error extracting symbol count",
file=sys.stderr)
print("line:", repr(line), file=sys.stderr)
print("tokens:", tokens, file=sys.stderr)
raise

profile[event_name]['symbol'][symbol] = period

Expand Down

0 comments on commit e51c6f0

Please sign in to comment.