Expand description
The machine a run was measured on, for tak run --export-json.
A comparison page has to say what it was measured on: the same two tools
can swap places between a 4-core laptop and a 64-core server. Without this
every consumer of the export shells out to lscpu, reads /proc/meminfo
and asks for the CPU affinity itself, and gets it subtly different from
the next one.
This is description, not identity. Series are partitioned on the runner
class (crate::record::Record::runner), and none of this goes into
recorded notes: a kernel update would otherwise split a series that the
runner class deliberately keeps whole.
Every field is best effort. A value tak cannot read is None — exported as
null — never an error: a run that measured correctly must not fail over
how to describe the CPU. Nothing here spawns a process; it reads files on
Linux and asks the kernel directly on macOS and Windows.
Structs§
Functions§
- detect
- Describe this machine.