libsysprof-profile: add SysprofMemoryUsage

Ports sysprof-memory-source.c to the new SysprofInstrument API.
This commit is contained in:
Christian Hergert
2023-06-02 18:01:18 -07:00
parent 37ad704186
commit 0288e937e4
5 changed files with 348 additions and 0 deletions

View File

@ -118,6 +118,7 @@ main (int argc,
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 ());
sysprof_profiler_add_instrument (profiler, sysprof_network_usage_new ());
for (int i = 1; i < argc; i++)