libsysprof-profile: give Profiler a spawnable

And pass it along to the recording so that it can manage spawning the
subprocess during the record loop.
This commit is contained in:
Christian Hergert
2023-06-02 16:15:27 -07:00
parent ba9d29fa33
commit 5746add9c6
4 changed files with 69 additions and 30 deletions

View File

@ -26,6 +26,7 @@
#include "sysprof-instrument.h"
#include "sysprof-recording.h"
#include "sysprof-spawnable.h"
G_BEGIN_DECLS
@ -37,6 +38,11 @@ G_DECLARE_FINAL_TYPE (SysprofProfiler, sysprof_profiler, SYSPROF, PROFILER, GObj
SYSPROF_AVAILABLE_IN_ALL
SysprofProfiler *sysprof_profiler_new (void);
SYSPROF_AVAILABLE_IN_ALL
SysprofSpawnable *sysprof_profiler_get_spawnable (SysprofProfiler *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_profiler_set_spawnable (SysprofProfiler *self,
SysprofSpawnable *spawnable);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_profiler_add_instrument (SysprofProfiler *self,
SysprofInstrument *instrument);
SYSPROF_AVAILABLE_IN_ALL