CPU Energy Meter is a Linux tool developed at LMU Munich that allows monitoring of power consumption of Intel CPUs at fine time granularities. It can monitor power consumption in various power domains such as per package, per core, per uncore, per memory node, and per platform using RAPL feature of Intel CPUs. The tool has minimal overhead and is a fork of Intel Power Gadget. Installation is easy on Debian or Ubuntu using the provided PPA or .deb package. Dependencies include libcap and a Linux kernel with MSR module. Running the tool without root is possible and recommended. The tool provides detailed measurements and options for customization.
https://github.com/sosy-lab/cpu-energy-meter