libsysprof-profile: start on cpu usage instrument

The goal here is to do the whole thing on a fiber rather than how we were
doing it before. This just gets the counter registration going, but we
need to follow up with the parsing/lseek/etc code.
This commit is contained in:
Christian Hergert
2023-05-30 18:41:56 -07:00
parent 598a2b7cf7
commit 52684c7a12
5 changed files with 267 additions and 0 deletions

View File

@ -113,6 +113,8 @@ main (int argc,
profiler = sysprof_profiler_new ();
sysprof_profiler_add_instrument (profiler, sysprof_cpu_usage_new ());
sysprof_profiler_record_async (profiler, writer, NULL, record_cb, NULL);
g_unix_signal_add (SIGINT, sigint_handler, main_loop);