MachineInfo class

A snapshot of the machine's capacity, with container limits applied.

Constructors

MachineInfo({required int cores, required int? availableMemoryMb, required int? totalMemoryMb, required bool isCi, bool cpuLimitedByContainer = false, bool memoryLimitedByContainer = false})
const

Properties

availableMemoryMb → int?
Memory currently available to this process in MB, or null if unknown.
final
cores → int
Usable logical CPUs (container CPU quota applied, never below 1).
final
cpuLimitedByContainer → bool
True when cores came from a cgroup CPU quota rather than the host.
final
hashCode → int
The hash code for this object.
no setterinherited
isCi → bool
True when running under a CI system (CI/GITHUB_ACTIONS/etc. env vars).
final
memoryLimitedByContainer → bool
True when memory figures came from a cgroup limit rather than the host.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalMemoryMb → int?
Total memory visible to this process in MB (container limit applied), or null if unknown.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited