Skip to content

Commit

Permalink
fix timev
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Apr 18, 2022
1 parent 6d8330f commit cab770c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/timing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ end

function timev_print(elapsedtime, diff::GC_Diff, compile_times, _lpad)
allocs = gc_alloc_count(diff)
time_print(elapsedtime, diff.allocd, diff.total_time, allocs, compile_times, true, _lpad)
compile_time = first(compile_times)
recompile_time = last(compile_times)
time_print(elapsedtime, diff.allocd, diff.total_time, allocs, compile_time, recompile_time, true, _lpad)
padded_nonzero_print(elapsedtime, "elapsed time (ns)")
padded_nonzero_print(diff.total_time, "gc time (ns)")
padded_nonzero_print(diff.allocd, "bytes allocated")
Expand Down

0 comments on commit cab770c

Please sign in to comment.