libsysprof-profile: add scaffolding for controlfd source

This is internal to the profile and will always be active when running
subprocesses with Sysprof.
This commit is contained in:
Christian Hergert
2023-05-26 12:18:59 -07:00
parent 97128b4185
commit 11aa39f151
4 changed files with 94 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include "config.h"
#include "sysprof-controlfd-instrument-private.h"
#include "sysprof-profiler.h"
#include "sysprof-recording-private.h"
@ -82,6 +83,8 @@ static void
sysprof_profiler_init (SysprofProfiler *self)
{
self->instruments = g_ptr_array_new_with_free_func (g_object_unref);
sysprof_profiler_add_instrument (self, _sysprof_controlfd_instrument_new ());
}
SysprofProfiler *