Beamchmark.Suite.Measurements (Beamchmark v1.4.2)

Copy Markdown View Source

The module is responsible for gathering BEAM statistics during benchmarking.

Summary

Types

context_switches_t()

@type context_switches_t() :: non_neg_integer()

reductions_t()

@type reductions_t() :: non_neg_integer()

t()

@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()
}

Functions

diff(base, new)

@spec diff(t(), t()) :: t()

gather(duration, cpu_interval, memory_interval)

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