I think I made a first step in resolving the confict with ProfileSVG
’s version that was installed
By the way, the FlameGraphs docs mention 3 save
methods, one with signature save(filename::AbstractString, data, ldict)
, but that particular one doesn’t seem to be available. I only see 2 that both take a FileIO
as first argument. Or is there an implicit conversion that should work?
julia> @profile f()
833334500000
julia> data, lidict = Profile.retrieve()
...
julia> FlameGraphs.save("doh.jlprof", data, lidict)
ERROR: MethodError: no method matching save(::String, ::Array{UInt64,1}, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}})
Closest candidates are:
save(::FileIO.File{FileIO.DataFormat{:JLPROF}}, ::AbstractArray{var"#s23",1} where var"#s23"<:Unsigned, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}}) at /home/paulm/.julia/packages/FlameGraphs/KTpPA/src/io.jl:20
Stacktrace:
[1] top-level scope at REPL[13]:1
[2] run_repl(::REPL.AbstractREPL, ::Any) at /build/julia/src/julia-1.5.2/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288