View Source Benchee.Profile (Benchee v1.1.0)
Profiles each scenario after benchmarking them if the profile_after option is either set to:
true,- a valid
profiler, - a tuple of a valid
profilerand a list of options to pass to it, e.g.,{:fprof, [sort: :own]}.
The profiler that will be used is either the one set by the profiler_after option or, if set to true,
the default one (:eprof). It accepts however the following profilers:
:cprofwill profile withMix.Task.Profile.Cprof. It provides information related to the number of function calls.:eprofwill profile withMix.Task.Profile.Eprof. It provides information related to the time spent on each function in regard to the total execution time.:fprofwill profile withMix.Task.Profile.Fprof. It provides information related to the time spent on each function, both the total time spent on it and the time spent on it, excluding the time of called functions.
Link to this section Summary
Link to this section Functions
List of supported builtin profilers as atoms.
Specs
default_profiler() :: :eprof
Returns the atom corresponding to the default profiler.
Specs
profile(Benchee.Suite.t(), module()) :: Benchee.Suite.t()
Runs for each scenario found in the suite the profile/2 function from the given profiler.