libsysprof-profile: add RAPL-based SysprofEnergyUsage

This does what we did previously with RAPL via sysprofd, with the new
SysprofInstrument API.
This commit is contained in:
Christian Hergert
2023-06-06 15:56:38 -07:00
parent 6f661c6bfe
commit 0e625cea21
5 changed files with 103 additions and 0 deletions

View File

@ -119,6 +119,7 @@ main (int argc,
sysprof_profiler_add_instrument (profiler, sysprof_battery_charge_new ());
sysprof_profiler_add_instrument (profiler, sysprof_cpu_usage_new ());
sysprof_profiler_add_instrument (profiler, sysprof_disk_usage_new ());
sysprof_profiler_add_instrument (profiler, sysprof_energy_usage_new ());
sysprof_profiler_add_instrument (profiler, sysprof_memory_usage_new ());
sysprof_profiler_add_instrument (profiler, sysprof_network_usage_new ());
sysprof_profiler_add_instrument (profiler, sysprof_sampler_new ());