libsysprof-analyze: add instruments to recording and list policy

We need to know all the policy that must be acquired upfront so that we
don't have to do individual queries on policy.
This commit is contained in:
Christian Hergert
2023-05-25 17:05:16 -07:00
parent ccdc1b8cff
commit 08aa970c7c
2 changed files with 70 additions and 3 deletions

View File

@ -20,11 +20,15 @@
#pragma once
#include "sysprof-instrument.h"
#include "sysprof-recording.h"
G_BEGIN_DECLS
SysprofRecording *_sysprof_recording_new (SysprofCaptureWriter *writer);
SysprofCaptureWriter *_sysprof_recording_writer (SysprofRecording *self);
SysprofRecording *_sysprof_recording_new (SysprofCaptureWriter *writer,
SysprofInstrument **instruments,
guint n_instruments);
void _sysprof_recording_start (SysprofRecording *self);
SysprofCaptureWriter *_sysprof_recording_writer (SysprofRecording *self);
G_END_DECLS