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

@ -2,6 +2,7 @@ libsysprof_profile_public_sources = [
'sysprof-battery-charge.c',
'sysprof-cpu-usage.c',
'sysprof-disk-usage.c',
'sysprof-energy-usage.c',
'sysprof-instrument.c',
'sysprof-memory-usage.c',
'sysprof-network-usage.c',
@ -26,6 +27,7 @@ libsysprof_profile_public_headers = [
'sysprof-battery-charge.h',
'sysprof-cpu-usage.h',
'sysprof-disk-usage.h',
'sysprof-energy-usage.h',
'sysprof-instrument.h',
'sysprof-memory-usage.h',
'sysprof-network-usage.h',