You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current example allocations will trigger an error. However this may not always be desired, thus I propose a configuration option for a warning instead.
julia> using AllocCheck
julia> @check_allocs multiply(x,y) = x * y
multiply (generic function with 1 method)
julia> multiply(1.5, 2.5) # call automatically checked for allocations
3.75
julia> multiply(rand(3,3), rand(3,3)) # result matrix requires an allocation
ERROR: @check_alloc function encountered 1 errors (1 allocations / 0 dynamic dispatches)
The text was updated successfully, but these errors were encountered:
IIUC, it should be able to show stacktraces even if we don't raise an error. We can customize show(::IO, ::AllocCheckAnalysisResult) to include stacktrace into the rendered output.
In the current example allocations will trigger an error. However this may not always be desired, thus I propose a configuration option for a warning instead.
The text was updated successfully, but these errors were encountered: