Skip to content

Commit

Permalink
VERSION-guard the allocs profiler support
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Jan 4, 2022
1 parent 8870ec5 commit f1505c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PProf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@ macro pprof(ex)
end

include("flamegraphs.jl")
include("allocs_profile.jl")

if VERSION >= v"1.8.0-DEV.1179" # PR https://github.com/JuliaLang/julia/pull/42768
include("allocs_profile.jl")
end


# Precompile as much as possible, so that profiling doesn't end up measuring our own
Expand Down

0 comments on commit f1505c4

Please sign in to comment.