SHARE
TWEET

Untitled

a guest Jun 15th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top