mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-profiler: add linux instrument on Linux
This commit is contained in:
@ -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 ());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user