Skip to content

Commit

Permalink
format extensions with parent in time_imports report
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 21, 2022
1 parent 8cdb17b commit 3a78a36
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,15 @@ function _include_from_serialized(pkg::PkgId, path::String, depmods::Vector{Any}
elapsed = round((time_ns() - t_before) / 1e6, digits = 1)
comp_time, recomp_time = cumulative_compile_time_ns() .- t_comp_before
print(lpad(elapsed, 9), " ms ")
print(pkg.name)
ext = false
for extid in EXT_DORMITORY
if extid.id == pkg
print(extid.parentid.name, "", pkg.name)
ext = true
break
end
end
ext || print(pkg.name)
if comp_time > 0
printstyled(" ", Ryu.writefixed(Float64(100 * comp_time / (elapsed * 1e6)), 2), "% compilation time", color = Base.info_color())
end
Expand Down

0 comments on commit 3a78a36

Please sign in to comment.