We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b4924 commit cc016afCopy full SHA for cc016af
test/snoopi_deep.jl
@@ -53,7 +53,8 @@ end
53
end
54
55
t1, t2 = times[1][1], times[2][1]
56
- if t1 != t2 # in rare cases it happens that the bottom two have the same time, but the test requires a gap
+ # Ensure there's a timing gap, and that cutting off the fastest-to-infer won't leave the tree headless
57
+ if t1 != t2 && times[1][2].mi.def.name !== :g
58
cutoff_bottom_frame = (t1 + t2) / 2
59
fg2 = SnoopCompile.flamegraph(timing, tmin_secs = cutoff_bottom_frame)
60
@test length(collect(AbstractTrees.PreOrderDFS(fg2))) == (length(collect(AbstractTrees.PreOrderDFS(fg))) - 1)
0 commit comments