Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ function generate_benchmark_definition(eval_module, out_vars, setup_vars, quote_
invocation = :($(Expr(:tuple, out_vars...)) = $(signature))
core_body = :($(core); $(returns))
end
if isdefined(Base, :donotdelete)
invocation = :(Base.donotdelete($invocation))
end
return Core.eval(eval_module, quote
@noinline $(signature_def) = begin $(core_body) end
@noinline function $(samplefunc)($(Expr(:tuple, quote_vars...)), __params::$BenchmarkTools.Parameters)
Expand Down Expand Up @@ -611,4 +614,4 @@ macro bprofile(args...)
$BenchmarkTools.Profile.clear()
$BenchmarkTools.@profile $BenchmarkTools.run($tmp)
end)
end
end