mirror of
https://github.com/verilator/verilator.git
synced 2025-01-04 05:37:48 +00:00
verilator_profcfunc: Also allow eval_step.
This commit is contained in:
parent
18c543f2f2
commit
1cb8091125
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user