libsysprof-profiler: add linux instrument on Linux

This commit is contained in:
Christian Hergert
2023-05-28 09:08:35 -07:00
parent 02811d593b
commit 01091fe815

View File

@ -24,6 +24,10 @@
#include "sysprof-profiler.h"
#include "sysprof-recording-private.h"
#ifdef __linux__
# include "sysprof-linux-instrument-private.h"
#endif
struct _SysprofProfiler
{
GObject parent_instance;
@ -84,6 +88,10 @@ sysprof_profiler_init (SysprofProfiler *self)
{
self->instruments = g_ptr_array_new_with_free_func (g_object_unref);
#ifdef __linux__
sysprof_profiler_add_instrument (self, _sysprof_linux_instrument_new ());
#endif
sysprof_profiler_add_instrument (self, _sysprof_controlfd_instrument_new ());
}