View Source Beamchmark.Suite.Measurements (Beamchmark v1.4.1)

The module is responsible for gathering BEAM statistics during benchmarking.

Link to this section Summary

Link to this section Types

@type context_switches_t() :: non_neg_integer()
@type reductions_t() :: non_neg_integer()
@type t() :: %Beamchmark.Suite.Measurements{
  context_switches: context_switches_t(),
  cpu_info: Beamchmark.Suite.Measurements.CpuInfo.t(),
  memory_info: Beamchmark.Suite.Measurements.MemoryInfo.t(),
  reductions: reductions_t(),
  scheduler_info: Beamchmark.Suite.Measurements.SchedulerInfo.t()
}

Link to this section Functions

@spec diff(t(), t()) :: t()
Link to this function

gather(duration, cpu_interval, memory_interval)

View Source
@spec gather(pos_integer(), pos_integer(), pos_integer()) :: t()