libsysprof-analyze: add listmodel of embedded files

This also indexes the first position of a file by filename so that we can
skip items in the capture file. Generally, embedded files are a single
frame so that will only be one frame to look at. But even when it is a
few frames, they are generally sequential so this vastly reduces how many
frames we'll need to look at for files.
This commit is contained in:
Christian Hergert
2023-05-09 12:24:14 -07:00
parent 9fe0ae5306
commit 938a1bbb4a
4 changed files with 159 additions and 8 deletions

View File

@ -51,6 +51,8 @@ SysprofDocumentSymbols *sysprof_document_symbolize_finish (SysprofDocument
GAsyncResult *result,
GError **error);
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_document_list_files (SysprofDocument *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_document_lookup_file_async (SysprofDocument *self,
const char *filename,
GCancellable *cancellable,