Expand description
Platform-specific system information: CPU, memory, load averages.
Modules§
- inner 🔒
Structs§
- CpuTicks
- CPU tick snapshot used to derive usage across a sampling interval.
- OsProfile
- Snapshot of the host machine’s hardware and OS environment.
Constants§
Functions§
- cpu_
model - CPU model string from
/proc/cpuinfo. - cpu_
usage_ from_ ticks - Compute CPU usage percentage from two tick snapshots.
- efficiency_
cores - Efficiency core count (E-cores on Apple Silicon, 0 on x86).
- logical_
cores - Total number of logical CPU cores.
- optimal_
concurrency - Optimal core count for compute work: P-cores on Apple Silicon, physical on x86.
- os_
profile - Capture a snapshot of the current host machine profile.
- performance_
cores - Performance core count (P-cores on Apple Silicon, physical on x86).
- physical_
cores - Physical CPU core count (best-effort, falls back to logical).
- read_
cpu_ ticks - Read a CPU tick snapshot from
/proc/stat. - read_
load_ average - Read the system load average
[1m, 5m, 15m]. - read_
memory_ mb - Read the current process RSS in megabytes.
- read_
os_ memory_ mb - Read total and available OS memory in megabytes.