File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,21 @@ function Base.show(io::IO, stats::Stats)
615
615
@printf (io, " # %4.1f cycles per ns" , counter. value / counter. running)
616
616
elseif name == " instructions" && haskey (stats, " cpu-cycles" )
617
617
@printf (io, " # %4.1f insns per cycle" , scaledcount (counter) / scaledcount (stats[" cpu-cycles" ]))
618
+ elseif name == " cpu-clock" || name == " task-clock"
619
+ clk = float (scaledcount (counter))
620
+ if clk ≥ 1e9
621
+ clk /= 1e9
622
+ unit = " s"
623
+ elseif clk ≥ 1e6
624
+ clk /= 1e6
625
+ unit = " ms"
626
+ elseif clk ≥ 1e3
627
+ clk /= 1e3
628
+ unit = " μs"
629
+ else
630
+ unit = " ns"
631
+ end
632
+ @printf (io, " # %4.1f %s" , clk, unit)
618
633
else
619
634
for (num, den, label) in [
620
635
(" stalled-cycles-frontend" , " cpu-cycles" , " cycles" ),
You can’t perform that action at this time.
0 commit comments