diff --git a/profiling/test.jl b/profiling/test.jl index cdb378af883f1daec6287794c049dde9b9ce8d05..43f691c17a6739eca46ed013e00336eb648702ac 100644 --- a/profiling/test.jl +++ b/profiling/test.jl @@ -1,14 +1,17 @@ using BenchmarkTools using Random +using Profile function f() + lst = rand(50000) for i in lst - s = "List entry $(i)\r" # The \r makes it so the terminal isn't filled if i > 0.99 + s = "List entry $(i)\r" print(s) end end + end f() @@ -16,3 +19,7 @@ f() x = @benchmark f() println() println(x) + +@profile f() +Profile.print() +Profile.clear()