libsysprof-profile: add SysprofInstrument record vfunc

This commit is contained in:
Christian Hergert
2023-05-26 16:05:30 -07:00
parent 1e3ad3982d
commit 4d54aa6a51
2 changed files with 51 additions and 1 deletions

View File

@ -41,11 +41,17 @@ struct _SysprofInstrumentClass
char **(*list_required_policy) (SysprofInstrument *self);
DexFuture *(*prepare) (SysprofInstrument *self,
SysprofRecording *recording);
DexFuture *(*record) (SysprofInstrument *self,
SysprofRecording *recording,
GCancellable *cancellable);
};
DexFuture * _sysprof_instruments_acquire_policy (GPtrArray *instruments,
SysprofRecording *recording);
DexFuture *_sysprof_instruments_prepare (GPtrArray *instruments,
SysprofRecording *recording);
DexFuture *_sysprof_instruments_record (GPtrArray *instruments,
SysprofRecording *recording,
GCancellable *cancellable);
G_END_DECLS