Skip to main content

Module machine

Module machine 

Source
Expand description

The machine state that step records keep (“Machine state”).

Every step that runs records the MachineStateRecord that its command started with, in the six parts that MachinePart names. A step names, with run(..., machine = [...]), the parts that count as its inputs: the cache check compares only those, value by value, with machine_changes, and kizz why shows their values, and with --verbose every part, with MachineStateRecord::text.

The host name, the credentials, the umask, the machine architecture and the CPU model are not per step: they are the cache identity.

Structs§

DiskRecord
The size and free space of the file system that held the working directory, in bytes.
FileSystemRecord
The file system that held the working directory.
KernelRecord
The kernel that ran a command.
LimitRecord
One resource limit, soft and hard.
MachineChange
One value of the machine state that changed since a step’s record.
MachineStateRecord
The machine and process state that a command started with, as its step record keeps it, in the six parts of MachinePart. A part that could not be read is None, which explanations show as unknown.
MemoryRecord
The memory of the machine, in bytes.

Enums§

MachinePart
One part of the machine state, as run(..., machine = [...]) names it.

Functions§

machine_changes
Every value of the parts parts that differs between old, the recorded state, and new, the current one, in the order of parts and then of the values.
machine_changes_text
The changes changes on one line, such as kernel release from 6.1 to 6.2, available memory from 1 bytes to 2 bytes, or nothing for none.