mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 23:20:54 +00:00
libsysprof-profiler: add linux instrument on Linux
This commit is contained in:
@ -24,6 +24,10 @@
|
|||||||
#include "sysprof-profiler.h"
|
#include "sysprof-profiler.h"
|
||||||
#include "sysprof-recording-private.h"
|
#include "sysprof-recording-private.h"
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
# include "sysprof-linux-instrument-private.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
struct _SysprofProfiler
|
struct _SysprofProfiler
|
||||||
{
|
{
|
||||||
GObject parent_instance;
|
GObject parent_instance;
|
||||||
@ -84,6 +88,10 @@ sysprof_profiler_init (SysprofProfiler *self)
|
|||||||
{
|
{
|
||||||
self->instruments = g_ptr_array_new_with_free_func (g_object_unref);
|
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 ());
|
sysprof_profiler_add_instrument (self, _sysprof_controlfd_instrument_new ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user