View Source Beamchmark.Suite.CPU.CpuTask (Beamchmark v1.4.0)

This module contains the CPU benchmarking task. Measurements are performed using :cpu_sup.util/1 Currently (according to docs), as busy processor states we identify:

  • user
  • nice_user (low priority use mode)
  • kernel

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

arg is passed as the argument to Task.start_link/1 in the :start field of the spec.

For more information, see the Supervisor module, the Supervisor.child_spec/2 function and the Supervisor.child_spec/0 type.

Link to this function

start_link(cpu_interval, duration)

View Source

Specs

start_link(cpu_interval :: pos_integer(), duration :: pos_integer()) :: Task.t()