libsysprof-analyze: add listmodel of traceables

It can be handy to iterate through the traceables and we already have a
bitset index for that. Use the new bitset index listmodel to provide that
filtered list externally without having to inflate every object in the
underlying listmodel, as GtkFilterListModel would have to do.
This commit is contained in:
Christian Hergert
2023-05-08 12:24:26 -07:00
parent 7720f690e0
commit c18b401ab6
2 changed files with 21 additions and 0 deletions

View File

@ -60,5 +60,7 @@ SYSPROF_AVAILABLE_IN_ALL
GBytes *sysprof_document_lookup_file_finish (SysprofDocument *self,
GAsyncResult *result,
GError **error);
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_document_list_traceables (SysprofDocument *self);
G_END_DECLS