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

Module representing statistics about memory usage.

Link to this section Summary

Link to this section Types

@type bytes_t() :: non_neg_integer()
@type memory_snapshot_t() :: %{
  timestamp: pos_integer(),
  total: bytes_t(),
  processes: bytes_t(),
  processes_used: bytes_t(),
  system: bytes_t(),
  atom: bytes_t(),
  atom_used: bytes_t(),
  binary: bytes_t(),
  code: bytes_t(),
  ets: bytes_t()
}
@type t() :: %Beamchmark.Suite.Measurements.MemoryInfo{
  average: memory_snapshot_t(),
  memory_snapshots: [memory_snapshot_t()] | nil
}

Link to this section Functions

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

from_memory_snapshots(memory_snapshots)

View Source
@spec from_memory_snapshots([memory_snapshot_t()]) :: t()