You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@time_imports is really great, but I was a bit surprised that you can't do things like sum the list of times to get the total time, ie #46850, nor sort them to see the longest packages to import.
I briefly looked at the code for @time_imports but it got to ccalls and didn't see an easy way to expose the data generated.
doing this would allow us to track using times for big ecosystem packages across julia versions and package versions.
is there a way to do this that I don't know about?
my temporary solution is to run julia --project --startup=no -E 'using InteractiveUtils; @time_imports using DifferentialEquations' and then just parse it sloppily
The text was updated successfully, but these errors were encountered:
# julia --project --startup=no -E 'using InteractiveUtils; @time_imports using DifferentialEquations' > timings.txtusing CSV, DataFrames
fn ="timings.txt"
ls =strip.(readlines(fn))
cols =split.(ls, "")
last.(cols)
df =DataFrame(time=Float64[], unit=String[], pkg=String[], comp=Union{Missing, String}[])
for (i, col) inenumerate(cols)
time =first(col)
time, unit =split(time, "")
time =parse(Float64, time)
pkg_and_comp =last(col)
foo =split(pkg_and_comp, "";limit=2)
length(foo) ==1? (pkg, comp) = (foo[1], missing) : (pkg, comp) = foo
row =vec([time unit pkg comp])
push!(df, row)
endsort!(df, :time; rev=true)
sum(df.time)
This is somewhat useful
Thanks for this little scriplet! It has been rather handy. In case it were relevant, I added some capability with Unitful.jl to get the returned load times into the same set of units (preferrably seconds).
@time_imports
is really great, but I was a bit surprised that you can't do things like sum the list of times to get the total time, ie #46850, nor sort them to see the longest packages to import.I briefly looked at the code for
@time_imports
but it got toccalls
and didn't see an easy way to expose the data generated.doing this would allow us to track using times for big ecosystem packages across julia versions and package versions.
is there a way to do this that I don't know about?
my temporary solution is to run
julia --project --startup=no -E 'using InteractiveUtils; @time_imports using DifferentialEquations'
and then just parse it sloppilyThe text was updated successfully, but these errors were encountered: