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 6c5d0a7 commit 3bb697e
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 3bb697e

Please sign in to comment.