Beamchmark.Suite.Measurements.SchedulerInfo (Beamchmark v1.4.2)

Copy Markdown View Source

Module representing different statistics about scheduler usage.

Summary

Types

sched_usage_t()

@type sched_usage_t() :: %{
  required(sched_id :: integer()) =>
    {util :: float(),
     percent :: Beamchmark.Math.percent_t() | Beamchmark.Math.percent_diff_t()}
}

t()

@type t() :: %Beamchmark.Suite.Measurements.SchedulerInfo{
  cpu: sched_usage_t(),
  io: sched_usage_t(),
  normal: sched_usage_t(),
  total: total_sched_usage_t(),
  total_cpu: total_sched_usage_t(),
  total_io: total_sched_usage_t(),
  total_normal: total_sched_usage_t(),
  weighted: weighted_sched_usage_t()
}

total_sched_usage_t()

@type total_sched_usage_t() ::
  {util :: float(),
   percent :: Beamchmark.Math.percent_t() | Beamchmark.Math.percent_diff_t()}

weighted_sched_usage_t()

@type weighted_sched_usage_t() ::
  {util :: float(),
   percent :: Beamchmark.Math.percent_t() | Beamchmark.Math.percent_diff_t()}

Functions

diff(base, new)

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

from_sched_util_result(sched_util_result)

@spec from_sched_util_result(any()) :: t()