Traditional methods to estimate power/energy usage of the processor has always been a cumbersome task that included special purpose tools or instrumentation on the platform along with third party equipment. Intel Power Gadget is supported on Windows and macOS and includes an application, driver, and libraries to monitor and estimate real-time processor package power information in watts using the energy counters in the processor. In version 3.0 there are more features that include estimation of power on multi-socket systems as well as externally callable APIs to extract power information within sections of code.
Check It Out: Intel Power Gadget Monitors Your Mac’s Energy Usage