Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write(
- "test2.jl",
- """
- using LinearAlgebra, Random
- a = rand(10, 10)
- b = Symmetric(a * a')
- f = cholesky(b)
- """
- )
- j2 --trace-compile="ta.jl" "test2.jl"
- using SnoopCompile
- SnoopCompile.@snoopc joinpath(@__DIR__(), "dummy.log") begin
- using LinearAlgebra, SparseArrays
- include(abspath("test2.jl"))
- end
- data = SnoopCompile.read(joinpath(@__DIR__(), "dummy.log"))
- pc = SnoopCompile.format_userimg(reverse!(data[2]))
- SnoopCompile.write(joinpath(@__DIR__(), "sc.jl"), pc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement