Skip to content

Commit

Permalink
add tree branch indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 18, 2021
1 parent 4f01420 commit 42e916c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,10 @@ function _require_search_from_serialized(pkg::PkgId, sourcepath::String, depth::
else
if LOAD_TIMING[Threads.threadid()]
elapsed = round((time_ns() - t_before) / 1e6, digits = 1)
println("""$(lpad(elapsed, 9)) ms $(" "^(depth*2))$(pkg.name)""")
tree_prefix = depth == 0 ? "" : "$(" "^(depth-1))"
print("$(lpad(elapsed, 9)) ms ")
printstyled(tree_prefix, color = :light_black)
println(pkg.name)
end
return restored
end
Expand Down

0 comments on commit 42e916c

Please sign in to comment.