libsysprof-profiler: start on perf instrument

This starts porting the old perf code from libsysprof into
libsysprof-profile. It does not bring over tracepoints yet, because we
need to think about how we want to support that. I may opt to do that as
a separate instrument even if that takes an additional perf fd.
This commit is contained in:
Christian Hergert
2023-06-03 23:14:14 -07:00
parent ece30b52b1
commit fb81867bf5
5 changed files with 454 additions and 0 deletions

View File

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