Enable all statistics gathering options

powerstat

  • Measures the power consumption of a computer that has a battery power source or supports the RAPL interface.
    More information: <https://manned.org/powerstat>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

powerstat -a {{interval}} {{number_of_samples}}

click the source code to copy install powerstat on any operating system with command-not-found.com