JuliaLang / AllocCheck.jl

AllocCheck
Other
215 stars 8 forks source link

Check dynamic dispatch #5

Closed YingboMa closed 9 months ago

YingboMa commented 11 months ago

Maybe add a check_dynamic_dispatch function that only checks the presence of dynamic dispatch?

topolarity commented 9 months ago

Once https://github.com/JuliaComputing/AllocCheck.jl/pull/36 lands this can be done with:

julia> foo() = rand(Any[1,1.0]) + true
julia> count(err isa AllocCheck.DynamicDispatch for err in check_allocs(foo, ()))
1