Skip to content

Commit

Permalink
show CPU ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
gezalore committed Oct 21, 2023
1 parent 2747509 commit 0b0d31a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/verilator_gantt
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ def report_cpus():
Global['cpu_sockets'] = collections.defaultdict(lambda: 0)
Global['cpu_socket_cores'] = collections.defaultdict(lambda: 0)

print(" Id | MTask | Socket | Core | Model")
print(" | time | | |")
print(" ====|=========|========|======|======")
print(" Id | Time spent executing MTask | Socket | Core | Model")
print(" | % of elapsed ticks / ticks | | | ")
print(" ====|============================|========|======|======")
for cpu in sorted(Cpus):
socket = ""
core = ""
Expand All @@ -314,8 +314,8 @@ def report_cpus():
if 'model_name' in cpuinfo:
model = cpuinfo['model_name']

print(" {:3d} | {:7.2%} | {:>6s} | {:>4s} | {}".format(
cpu, Cpus[cpu]['mtask_time'] / ElapsedTime, socket, core, model))
print(" {:3d} | {:7.2%} / {:16d} | {:>6s} | {:>4s} | {}".format(
cpu, Cpus[cpu]['mtask_time'] / ElapsedTime, Cpus[cpu]['mtask_time'], socket, core, model))

if len(Global['cpu_sockets']) > 1:
Global['cpu_sockets_warning'] = True
Expand Down

0 comments on commit 0b0d31a

Please sign in to comment.