You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/index.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -71,8 +71,8 @@ using the same workload you put inside the `@compile_workload` block.
71
71
72
72
If you're happy with the results, you're done! If you want deeper verification of whether it worked as
73
73
expected, or if you suspect problems, the [SnoopCompile package](https://github.com/timholy/SnoopCompile.jl) provides diagnostic tools.
74
-
Potential sources of trouble include invalidation (diagnosed with `SnoopCompileCore.@snoopr` and related tools)
75
-
and omission of intended calls from inside the `@compile_workload` block (diagnosed with `SnoopCompileCore.@snoopi_deep` and related tools).
74
+
Potential sources of trouble include invalidation (diagnosed with `SnoopCompileCore.@snoop_invalidations` and related tools)
75
+
and omission of intended calls from inside the `@compile_workload` block (diagnosed with `SnoopCompileCore.@snoop_inference` and related tools).
76
76
77
77
!!! note
78
78
`@compile_workload` works by monitoring type-inference. If the code was already inferred
@@ -81,7 +81,7 @@ and omission of intended calls from inside the `@compile_workload` block (diagno
81
81
82
82
You can use multiple `@compile_workload` blocks if you need to interleave `@setup_workload` code with
83
83
code that you want precompiled.
84
-
You can use `@snoopi_deep` to check for any (re)inference when you use the code in your package.
84
+
You can use `@snoop_inference` to check for any (re)inference when you use the code in your package.
85
85
To fix any specific problems, you can combine `@compile_workload` with manual `precompile` directives.
86
86
87
87
## Tutorial: local "Startup" packages
@@ -226,7 +226,7 @@ In that case, your best option is to fall back on Julia's own `precompile` funct
226
226
However, as explained in [How PrecompileTools works](@ref), there are some differences between `precompile` and `@compile_workload`;
227
227
most likely, you may need multiple `precompile` directives.
228
228
Analysis with [SnoopCompile](https://github.com/timholy/SnoopCompile.jl) may be required to obtain the results you want;
229
-
in particular, combining `@snoopi_deep` and `parcel` will allow you to generate a set of `precompile` directives that can be `include`d in your module definition.
229
+
in particular, combining `@snoop_inference` and `parcel` will allow you to generate a set of `precompile` directives that can be `include`d in your module definition.
230
230
231
231
Be aware that `precompile` directives are more specific to the Julia version, CPU (integer width), and OS than running a workload.
0 commit comments