libsysprof-profile: add scaffolding for battery charge

This is a SysprofInstrument that will eventually contain the contents of
the sysprof-battery-source.c to get battery charge/rate/etc. Note that
this is different from energy usage which will come from RAPL.
This commit is contained in:
Christian Hergert
2023-06-06 11:19:03 -07:00
parent 3fb1a15eec
commit 200b8acb20
5 changed files with 167 additions and 0 deletions

View File

@ -116,6 +116,7 @@ main (int argc,
profiler = sysprof_profiler_new ();
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_memory_usage_new ());