cpu
zeus.device.cpu
Abstraction layer for CPU devices.
The main function of this module is get_cpus,
which returns a CPU Manager object specific to the platform.
get_cpus
get_cpus()
Initialize and return a singleton CPU monitoring object for Intel CPUs.
The function returns a CPU management object that abstracts the underlying CPU energy monitoring interface: EMI on Windows, RAPL on Linux.
Raises:
| Type | Description |
|---|---|
ZeusCPUInitError
|
If no supported CPU energy monitoring interface is available. |
Source code in zeus/device/cpu/__init__.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |