diff --git a/profiling/test.jl b/profiling/test.jl index 467ae0386510ea4a93bc7529e15621c030e30598..43f691c17a6739eca46ed013e00336eb648702ac 100644 --- a/profiling/test.jl +++ b/profiling/test.jl @@ -1,7 +1,9 @@ using BenchmarkTools using Random +using Profile function f() + lst = rand(50000) for i in lst if i > 0.99 @@ -9,6 +11,7 @@ function f() print(s) end end + end f() @@ -16,3 +19,7 @@ f() x = @benchmark f() println() println(x) + +@profile f() +Profile.print() +Profile.clear()