BenchmarkTools.jl icon indicating copy to clipboard operation
BenchmarkTools.jl copied to clipboard

Request: @bprofile macro for profiling

Open quinnj opened this issue 5 years ago • 3 comments

A common issue with profiling micro-kernels is the need to gather enough samples to have significant results. This usually involves function setup, execution repetition, etc. which it turns out, BenchmarkTools.jl pretty much already provides! I don't know all the internal details, but it would be awesome to have a @bprofile function that was the same as @btime, but ran @profile on the inner kernel for all the execution repetitions.

quinnj avatar Jun 07 '20 17:06 quinnj

@btime also does GC scrubbing between samples which you probably don't want for this?

KristofferC avatar Jul 28 '21 09:07 KristofferC

Hmmm, maybe; it might be nice to make that configurable

quinnj avatar Aug 03 '21 05:08 quinnj

It looks like this can be closed now that we have #254?

tkf avatar Dec 15 '21 22:12 tkf