machine-state
2025-06-22
Retrieve machine state information about CPU time, memory usage, etc.
Upstream URL
Author
Yukari Hafner <shinmera@tymoon.eu>
Maintainer
Yukari Hafner <shinmera@tymoon.eu>
License
zlib
## About machine-state
This library implements various functions to access status information about the machine, process, etc.
## How To
Since this is a toolkit library, please simply refer to the symbol index for available functions and their behaviour. The following groups of functions are available:
- Process
- ``process-info``
- ``process-io-bytes``
- ``process-room``
- ``process-time``
- ``process-priority``
- Threads
- ``thread-time``
- ``thread-core-mask``
- ``thread-priority``
- Implementation
- ``gc-room``
- ``gc-time``
- ``static-room``
- ``stack-room``
- GPU
- ``gpu-info``
- ``gpu-room``
- ``gpu-time``
- Physical Machine
- ``machine-info``
- ``machine-room``
- ``machine-cores``
- ``machine-uptime``
- ``machine-time``
- ``machine-battery``
- Storage Devices
- ``storage-device``
- ``storage-device-path``
- ``storage-room``
- ``storage-io-bytes``
- Network Devices
- ``network-info``
- ``network-devices``
- ``network-io-bytes``
## Implementation Support
Fetching information about threads that aren't the current one, or GC related information requires implementation support. The following implementations are fully or partially supported:
- CCL
- Clasp
- ECL
- SBCL
- Mezzano
## Operating System Support
Fetching information about various hardware devices is, of course, OS dependent. The following systems are fully or partially supported:
- FreeBSD
- Linux
- MacOS (darwin)
- Mezzano
- OpenBSD
- Other BSDs (POSIX)
- Windows