From cab770c4efd7a32c0163bbe61c003742c37967fb Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 18 Apr 2022 07:41:21 -0400 Subject: [PATCH] fix timev --- base/timing.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/timing.jl b/base/timing.jl index e6c6b8dceef96..bcc77fd6e3061 100644 --- a/base/timing.jl +++ b/base/timing.jl @@ -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")