Skip to content

Commit

Permalink
Fix v1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Oct 20, 2023
1 parent b2ffe7c commit 64148cb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/PProf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,32 @@ end
end
@testset for i in 1:4
if i == 1
if !Profile.has_meta
continue
end
data = Profile.fetch(include_meta = true)
args = (data,)
elseif i == 2
if !Profile.has_meta
continue
end
data,lidict = Profile.retrieve(include_meta = true)
args = (data, lidict)
elseif i == 3
# Ensure we are backwards compatible with older, non-meta profiles
data = Profile.fetch(include_meta = false)
if Profile.has_meta
data = Profile.fetch(include_meta = false)
else
data = Profile.fetch()
end
args = (data,)
else
# Ensure we are backwards compatible with older, non-meta profiles
data,lidict = Profile.retrieve(include_meta = false)
if Profile.has_meta
data,lidict = Profile.retrieve(include_meta = false)
else
data,lidict = Profile.retrieve()
end
args = (data, lidict)
end

Expand Down

0 comments on commit 64148cb

Please sign in to comment.