I’ve profiled, with the following results:
24% (~1s) resolve
23% (~1s) precompile
49% (~2s) handle interrupt (I did not trigger any keyboard interrupts during profiling)
Precompile shouldn’t be happening because there are no changes to the manifest, right?
And I have no idea what handle interrupt is (@Base/task.jl:411; (::Pkg.API.var"#212#239"{Bool, Vector{Task}, Pkg.API.var"#handle_interrupt#231"{Base.Event, ReentrantLo...
).
In detail:
Overhead ╎ [+additional indent] Count File:Line; Function
=========================================================
╎26790 @Base/client.jl:485; _start()
╎ 26790 @Base/client.jl:302; exec_options(opts::Base.JLOptions)
╎ 26790 @Base/client.jl:372; run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
╎ 26790 @Base/essentials.jl:706; invokelatest
╎ 26790 @Base/essentials.jl:708; #invokelatest#2
╎ 26790 @Base/client.jl:387; (::Base.var"#874#876"{Bool, Bool, Bool})(REPL::Module)
╎ ╎ 26790 ...ackage_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:305; run_repl(repl::REPL.AbstractREPL, consumer::Any)
╎ ╎ 26790 ...ackage_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:317; run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
╎ ╎ 26790 ...ackage_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:185; start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
╎ ╎ 26790 ...ckage_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:200; repl_backend_loop(backend::REPL.REPLBackend)
╎ ╎ 26790 ...ckage_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:139; eval_user_input(ast::Any, backend::REPL.REPLBackend)
╎ ╎ ╎ 26790 @Base/boot.jl:360; eval
╎ ╎ ╎ 26790 REPL[37]:2; top-level scope
╎ ╎ ╎ 26790 ...acos64/build/usr/share/julia/stdlib/v1.6/Profile/src/Profile.jl:28; macro expansion
╎ ╎ ╎ 26789 @Base/timing.jl:210; macro expansion
╎ ╎ ╎ 26789 ...ckage_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:74; add
╎ ╎ ╎ ╎ 26789 ...ckage_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:74; #add#22
╎ ╎ ╎ ╎ 26789 ...kage_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75; add
╎ ╎ ╎ ╎ 26789 ...kage_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75; #add#23
╎ ╎ ╎ ╎ 26789 ...kage_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:77; add(pkgs::Vector{Pkg.Types.PackageSpec})
╎ ╎ ╎ ╎ 14423 ...age_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:79; add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Iterators.Pairs{Union{},...
╎ ╎ ╎ ╎ ╎ 14423 ...ge_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:154; (::Pkg.API.var"#add##kw")(::NamedTuple{(:io,), Tuple{Base.TTY}}, ::typeof(Pkg.API.add), ctx...
╎ ╎ ╎ ╎ ╎ 14416 ...ge_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:203; add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.Prese...
╎ ╎ ╎ ╎ ╎ 14416 ...64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1223; add##kw
╎ ╎ ╎ ╎ ╎ 12373 ...64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1231; add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Vector{Base.UU...
╎ ╎ ╎ ╎ ╎ 12366 ...4/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1216; _resolve
╎ ╎ ╎ ╎ ╎ ╎ 12366 ...4/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1182; tiered_resolve(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
╎ ╎ ╎ ╎ ╎ ╎ 11831 ...4/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1210; targeted_resolve(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, preserve:...
╎ ╎ ╎ ╎ ╎ ╎ 9618 ...4/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:404; resolve_versions!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
╎ ╎ ╎ ╎ ╎ ╎ 4254 .../build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:534; deps_graph(ctx::Pkg.Types.Context, uuid_to_name::Dict{Base.UUID, String}, reqs::Dict{B...
╎ ╎ ╎ ╎ 11944 ...age_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:80; add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Iterators.Pairs{Union{},...
╎ ╎ ╎ ╎ ╎ 11943 ...ge_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Pkg.jl:592; _auto_precompile(ctx::Pkg.Types.Context)
1╎ ╎ ╎ ╎ ╎ 11943 ...ge_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:920; (::Pkg.API.var"#precompile##kw")(::NamedTuple{(:internal_call,), Tuple{Bool}}, ::typeof(Pk...
╎ ╎ ╎ ╎ ╎ 3737 ...e_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:921; precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, kwargs::Base.Iterat...
╎ ╎ ╎ ╎ ╎ 3737 ...e_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1304; (::Pkg.API.var"#instantiate##kw")(::NamedTuple{(:allow_autoprecomp,), Tuple{Bool}}, ::ty...
╎ ╎ ╎ ╎ ╎ 3669 ..._macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1335; instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::B...
╎ ╎ ╎ ╎ ╎ ╎ 3651 ...4/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:131; is_instantiated(ctx::Pkg.Types.Context)
╎ ╎ ╎ ╎ ╎ ╎ 3651 @Base/reducedim.jl:886; all
╎ ╎ ╎ ╎ ╎ ╎ 3651 @Base/reducedim.jl:886; #all#698
╎ ╎ ╎ ╎ ╎ ╎ 3651 @Base/reduce.jl:923; _all
╎ ╎ ╎ ╎ ╎ ╎ 3651 .../build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:131; #13
╎ ╎ ╎ ╎ ╎ ╎ ╎ 3589 ...build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1786; is_package_downloaded(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
╎ ╎ ╎ ╎ ╎ ╎ ╎ 3589 ...build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:713; check_artifacts_downloaded
5╎ ╎ ╎ ╎ ╎ 4157 ...e_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:981; precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, kwargs::Base.Iterat...
╎ ╎ ╎ ╎ ╎ 4143 ...e_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#in_deps#227")(pkgs::Vector{Base.PkgId}, deps::Vector{Base.PkgId}, dmap::D...
╎ ╎ ╎ ╎ ╎ 4143 @Base/reducedim.jl:883; any
╎ ╎ ╎ ╎ ╎ ╎ 4143 @Base/reducedim.jl:883; #any#696
╎ ╎ ╎ ╎ ╎ ╎ 4143 @Base/reduce.jl:876; _any(f::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}}}...
╎ ╎ ╎ ╎ ╎ ╎ 4143 ..._macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}}})(dep...
╎ ╎ ╎ ╎ ╎ ╎ 4061 ...macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#in_deps#227")(pkgs::Vector{Base.PkgId}, deps::Vector{Base.PkgId}, dma...
╎ ╎ ╎ ╎ ╎ ╎ 4061 @Base/reducedim.jl:883; any
╎ ╎ ╎ ╎ ╎ ╎ ╎ 4061 @Base/reducedim.jl:883; #any#696
╎ ╎ ╎ ╎ ╎ ╎ ╎ 4057 @Base/reduce.jl:876; _any(f::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 4057 ...acos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}}})(...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 3798 ...cos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#in_deps#227")(pkgs::Vector{Base.PkgId}, deps::Vector{Base.PkgId}, ...
╎ ╎ ╎ ╎ ╎ ╎ ╎ 3798 @Base/reducedim.jl:883; any
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3798 @Base/reducedim.jl:883; #any#696
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3789 @Base/reduce.jl:876; _any(f::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.Pk...
12╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3789 ...os64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}}...
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3474 ...s64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#in_deps#227")(pkgs::Vector{Base.PkgId}, deps::Vector{Base.PkgId...
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3474 @Base/reducedim.jl:883; any
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3474 @Base/reducedim.jl:883; #any#696
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3469 @Base/reduce.jl:876; _any(f::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base...
9╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3469 ...64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgI...
1╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3286 ...4/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#in_deps#227")(pkgs::Vector{Base.PkgId}, deps::Vector{Base.Pk...
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3285 @Base/reducedim.jl:883; any
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3285 @Base/reducedim.jl:883; #any#696
╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3280 @Base/reduce.jl:876; _any(f::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{B...
11╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ 3280 .../build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:978; (::Pkg.API.var"#204#228"{Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.P...
╎ ╎ ╎ ╎ ╎ 3409 ...e_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1098; precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, kwargs::Base.Iterat...
╎ ╎ ╎ ╎ ╎ 3138 @Base/loading.jl:290; locate_package(pkg::Base.PkgId)
11╎25689 @Base/task.jl:411; (::Pkg.API.var"#212#239"{Bool, Vector{Task}, Pkg.API.var"#handle_interrupt#231"{Base.Event, ReentrantLo...
╎ 24550 ...er/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1126; macro expansion
1╎ 24542 ...er/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:904; _is_stale
6╎ 8281 @Base/loading.jl:1716; stale_cachefile(modpath::String, cachefile::String)
╎ 6712 @Base/loading.jl:290; locate_package(pkg::Base.PkgId)
4╎ 5416 @Base/loading.jl:396; manifest_uuid_path(env::String, pkg::Base.PkgId)
3╎ 14504 @Base/loading.jl:1750; stale_cachefile(modpath::String, cachefile::String)
╎ 13681 @Base/loading.jl:254; identify_package(where::Base.PkgId, name::String)
65╎ 12903 @Base/loading.jl:379; manifest_deps_get(env::String, where::Base.PkgId, name::String)
45╎ ╎ 3048 @Base/loading.jl:503; explicit_manifest_deps_get(project_file::String, where::Base.UUID, name::String)
╎ ╎ 3003 @Base/uuid.jl:82; UUID