Skip to content

Commit

Permalink
run rtds test up to 10x
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Feb 22, 2025
1 parent 9a4f5c6 commit 51937ce
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -463,20 +463,21 @@ end
end
Ts = subtypes(Any)[1:20] # we don't need all of them
mappushes!(spell_spec, [], Ts)
while Profile.len_data() == 0
rtds = []
for _ in 1:10 # try to get a runtime dispatch on unfortunately flaky profiling
@profile for i = 1:10000
mappushes!(spell_spec, [], Ts)
end
end
_, sfdict = Profile.retrieve()
rtds = []
for sfs in values(sfdict)
for sf in sfs
if (FlameGraphs.status(sf) & FlameGraphs.runtime_dispatch) != 0
push!(rtds, sfs)
break
_, sfdict = Profile.retrieve()
for sfs in values(sfdict)
for sf in sfs
if (FlameGraphs.status(sf) & FlameGraphs.runtime_dispatch) != 0
push!(rtds, sfs)
break
end
end
end
isempty(rtds) || break
end
@test !isempty(rtds)
end
Expand Down

0 comments on commit 51937ce

Please sign in to comment.