libsysprof: add instrument to record scheduler switching

This is to allow us to look at what processes were running when as a way
to get a high-level overview of usage.
This commit is contained in:
Christian Hergert
2023-08-21 15:05:48 -07:00
parent 855939ae1b
commit 82020e86be
5 changed files with 444 additions and 0 deletions

View File

@ -203,6 +203,8 @@ main (int argc,
if (memprof)
sysprof_profiler_add_instrument (profiler, sysprof_malloc_tracing_new ());
sysprof_profiler_add_instrument (profiler, sysprof_scheduler_details_new ());
if (tracer)
sysprof_profiler_add_instrument (profiler, sysprof_tracer_new ());
else