Skip to content

Commit aae68a5

Browse files
authored
alloc profiler: add compat note to docstring (#44100)
1 parent c360a58 commit aae68a5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

stdlib/Profile/src/Allocs.jl

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,17 @@ julia> last(sort(results.allocs, by=x->x.size))
4545
Profile.Allocs.Alloc(Vector{Any}, Base.StackTraces.StackFrame[_new_array_ at array.c:127, ...], 5576)
4646
```
4747
48-
Note: The current implementation of the Allocations Profiler _does not
49-
capture types for all allocations._ Allocations for which the profiler
50-
could not capture the type are represented as having type
51-
`Profile.Allocs.UnknownType`.
48+
!!! note
49+
The current implementation of the Allocations Profiler does not
50+
capture types for all allocations. Allocations for which the profiler
51+
could not capture the type are represented as having type
52+
`Profile.Allocs.UnknownType`.
5253
53-
You can read more about the missing types and the plan to improve this, here:
54-
https://github.com/JuliaLang/julia/issues/43688.
54+
You can read more about the missing types and the plan to improve this, here:
55+
https://github.com/JuliaLang/julia/issues/43688.
56+
57+
!!! compat "Julia 1.8"
58+
The allocation profiler was added in Julia 1.8.
5559
"""
5660
macro profile(opts, ex)
5761
_prof_expr(ex, opts)

0 commit comments

Comments
 (0)