libsysprof: allow specifying phase for subprocess output

This is helpful in that you can specify which phase of the capture the
process should be run so that it's less likely to show up on profiles.
This commit is contained in:
Christian Hergert
2023-08-07 12:54:46 -07:00
parent 4250abf81e
commit c38c1fb4b0
4 changed files with 114 additions and 14 deletions

View File

@ -28,6 +28,13 @@ G_BEGIN_DECLS
#define SYSPROF_TYPE_RECORDING (sysprof_recording_get_type())
typedef enum _SysprofRecordingPhase
{
SYSPROF_RECORDING_PHASE_PREPARE = 1,
SYSPROF_RECORDING_PHASE_RECORD,
SYSPROF_RECORDING_PHASE_AUGMENT,
} SysprofRecordingPhase;
SYSPROF_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (SysprofRecording, sysprof_recording, SYSPROF, RECORDING, GObject)