Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. write(
  2. "test2.jl",
  3. """
  4. using LinearAlgebra, Random
  5. a = rand(10, 10)
  6. b = Symmetric(a * a')
  7. f = cholesky(b)
  8. """
  9. )
  10.  
  11. j2 --trace-compile="ta.jl" "test2.jl"
  12.  
  13.  
  14. using SnoopCompile
  15. SnoopCompile.@snoopc joinpath(@__DIR__(), "dummy.log") begin
  16. using LinearAlgebra, SparseArrays
  17. include(abspath("test2.jl"))
  18. end
  19. data = SnoopCompile.read(joinpath(@__DIR__(), "dummy.log"))
  20. pc = SnoopCompile.format_userimg(reverse!(data[2]))
  21. SnoopCompile.write(joinpath(@__DIR__(), "sc.jl"), pc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement