It would be nice if ProfileCanvas could handle flame graphs created from SnoopCompile with @snoopi_deep:
function profile_test(n)
for i = 1:n
A = randn(100,100,20)
m = maximum(A)
Am = mapslices(sum, A; dims=2)
B = A[:,:,5]
Bsort = mapslices(sort, B; dims=1)
b = rand(100)
C = B.*b
end
end
using SnoopCompile
import Profile
Profile.clear_malloc_data()
Profile.clear()
tinf = @snoopi_deep begin
profile_test(10)
end
@show tinf
using FlameGraphs
fg = flamegraph(tinf)
using ProfileCanvas
ProfileCanvas.view(fg)
It would be nice if ProfileCanvas could handle flame graphs created from SnoopCompile with
@snoopi_deep
:This breaks with