PowerProfiler
¤
Bases: ABC
This abstract class PowerProfiler defines two abstract methods "start" and "stop" which need to be implemented by any subclass inheriting from it. These methods will handle the actual start and stop operations for profiling power consumption, respectively depending on device drivers or registries access.
PowerLinux
¤
Bases: PowerProfiler
A class "PowerLinux" which inherits from "PowerProfiler" for energy/power profiling under Linux systems. We have two statics methods to get the RAPL domains and subsdomains on the Linux system for Intel CPUs.
Source code in ea2p/src/power.py
__get_cpu_domains
staticmethod
¤
Get CPU domains from entries in POWERLOG_PATH_LINUX.
Returns: - List of tuples containing CPU domain information.
Source code in ea2p/src/power.py
__get_cpu_ids
staticmethod
¤
Get CPU identifiers from files in CPU_IDS_DIR.
Returns: - List of CPU identifiers.