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/tutorials/snoop_inference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ Users are encouraged to read the ProfileView documentation to understand how to
154
154
- right-clicking on a box opens the corresponding method in your editor
155
155
- ctrl-click can be used to zoom in
156
156
- empty horizontal spaces correspond to activities other than type-inference
157
-
- any boxes colored red (there are none in this particular example, but you'll see some later) correspond to *naively non-precompilable*`MethodInstance`s, in which the method is owned by one module but the types are from another unrelated module. Such `MethodInstance`s are omitted from the precompile cache file unless they've been "marked" by `PrecompileTools.@compile_workload` or an explicit `precompile` directive.
157
+
- any boxes colored red (there are none in this particular example, but you'll see some later) correspond to *naively non-precompilable*`MethodInstance`s, in which the method is owned by one module but the types are from another unrelated module. Such `MethodInstance`s are omitted from the precompile cache file unless they've been "marked" by `PrecompileTools.@compile_workload` or an explicit `precompile` directive. See [`SnoopCompile.isprecompilable`](@ref) for further explanation and some examples.
158
158
- any boxes colored orange-yellow (there is one in this demo) correspond to methods inferred for specific constants (constant propagation).
159
159
160
160
You can explore this flamegraph and compare it to the output from `print_tree`.
Copy file name to clipboardExpand all lines: docs/src/tutorials/snoop_inference_parcel.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ In such cases, one alternative is to create a manual list of precompile directiv
13
13
`precompile` directives have to be emitted by the module that owns the method and/or types.
14
14
SnoopCompile comes with a tool, `parcel`, that splits out the "root-most" precompilable MethodInstances into their constituent modules.
15
15
This will typically correspond to the bottom row of boxes in the [flame graph](@ref flamegraph).
16
-
In cases where you have some that are not naively precompilable, they will include MethodInstances from higher up in the call tree.
16
+
In cases where you have some that are not naively precompilable (see [`SnoopCompile.isprecompilable`](@ref)), they may include MethodInstances from higher up in the call tree.
17
17
18
18
Let's use `SnoopCompile.parcel` on our [`OptimizeMe`](@ref inferrability) demo:
0 commit comments