verilator_profcfunc: Also allow eval_step.

This commit is contained in:
Wilson Snyder 2021-09-04 12:28:26 -04:00
parent 18c543f2f2
commit 1cb8091125
2 changed files with 40 additions and 40 deletions

View File

@ -52,7 +52,7 @@ def profcfunc(filename):
# Find modules
verilated_mods = {}
for func in funcs:
match = re.search(r'(.*)::eval\(', func)
match = re.search(r'(.*)::eval(_step)?\(', func)
if match:
prefix = match.group(1)
if Args.debug:
@ -161,7 +161,7 @@ def profcfunc(filename):
key=lambda f: vfuncs[f]['sec'],
reverse=True):
cume += vfuncs[func]['sec']
print(("%6.2f %9.2f %8.2f %8d %-" + str(design_width) + "s %s") %
print(("%6.2f %9.2f %8.2f %10d %-" + str(design_width) + "s %s") %
(vfuncs[func]['pct'], cume, vfuncs[func]['sec'],
vfuncs[func]['calls'], vfuncs[func]['design'], func))