From 2d09b95ad966b7e0497e8a2787368a7366274f95 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 15 Feb 2022 21:30:10 -0500 Subject: [PATCH] fix missing import. tweak profile precompile script --- stdlib/Profile/src/Profile.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/Profile/src/Profile.jl b/stdlib/Profile/src/Profile.jl index 93ec67a7fe0e1c..b11dfb488c373f 100644 --- a/stdlib/Profile/src/Profile.jl +++ b/stdlib/Profile/src/Profile.jl @@ -73,7 +73,8 @@ Set the duration in seconds of the profile "peek" that is triggered via `SIGINFO set_peek_duration(t::Float64) = ccall(:jl_set_profile_peek_duration, Cvoid, (Float64,), t) precompile_script = """ -Profile.@profile sleep(0.5) +import Profile +Profile.@profile while Profile.len_data() < 1000; rand(10,10) * rand(10,10); end Profile.peek_report[]() Profile.clear() """