libsysprof-analyze: make lookup_file synchronous

Now that we have a lot of this indexed, it's fast enough to do on the
calling thread.

# Conflicts:
#	src/libsysprof-analyze/sysprof-document.c
#	src/libsysprof-analyze/sysprof-document.h
This commit is contained in:
Christian Hergert
2023-05-09 12:36:59 -07:00
parent 938a1bbb4a
commit e0e1791b2d
3 changed files with 50 additions and 143 deletions

View File

@ -24,6 +24,7 @@
#include <sysprof-capture.h>
#include "sysprof-document-file.h"
#include "sysprof-document-symbols.h"
#include "sysprof-symbolizer.h"
@ -51,18 +52,11 @@ SysprofDocumentSymbols *sysprof_document_symbolize_finish (SysprofDocument
GAsyncResult *result,
GError **error);
SYSPROF_AVAILABLE_IN_ALL
SysprofDocumentFile *sysprof_document_lookup_file (SysprofDocument *self,
const char *path);
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,
GAsyncReadyCallback callback,
gpointer user_data);
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