libsysprof: avoid duplicate process records

We want the first process record, but subsequent records should
be ignored, except that we want to take the appropriate comm[]
action from them.
This commit is contained in:
Christian Hergert
2023-09-01 14:09:17 -07:00
parent 30123284b6
commit 5f94e09f9c
3 changed files with 34 additions and 2 deletions

View File

@ -28,5 +28,6 @@ G_BEGIN_DECLS
SysprofProcessInfo *_sysprof_document_process_get_info (SysprofDocumentProcess *self);
void _sysprof_document_process_set_info (SysprofDocumentProcess *self,
SysprofProcessInfo *process_info);
const char *_sysprof_document_process_get_comm (SysprofDocumentProcess *self);
G_END_DECLS