We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355f4f5 commit cc7e84eCopy full SHA for cc7e84e
src/PProf.jl
@@ -352,4 +352,12 @@ end
352
353
include("flamegraphs.jl")
354
355
+
356
+# Precompile as much as possible, so that profiling doesn't end up measuring our own
357
+# compilation.
358
+function __init__()
359
+ precompile(pprof, ()) || error("precompilation of package functions is not supposed to fail")
360
+ precompile(kill, ()) || error("precompilation of package functions is not supposed to fail")
361
+ precompile(refresh, ()) || error("precompilation of package functions is not supposed to fail")
362
+end
363
end # module
0 commit comments