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

Copy Markdown View Source

Module representing statistics about memory usage.

Summary

Types

bytes_t()

@type bytes_t() :: non_neg_integer()

memory_snapshot_t()

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

t()

@type t() :: %Beamchmark.Suite.Measurements.MemoryInfo{
  average: memory_snapshot_t(),
  memory_snapshots: [memory_snapshot_t()] | nil
}

Functions

diff(base, new)

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

from_memory_snapshots(memory_snapshots)

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