libsysprof: add API to lookup a process by PID

This commit is contained in:
Christian Hergert
2023-07-25 19:31:40 -07:00
parent ab59c7e627
commit 29a1ec952f
2 changed files with 41 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "sysprof-callgraph.h"
#include "sysprof-document-counter.h"
#include "sysprof-document-file.h"
#include "sysprof-document-process.h"
#include "sysprof-document-traceable.h"
#include "sysprof-mark-catalog.h"
#include "sysprof-symbol.h"
@ -47,6 +48,9 @@ SYSPROF_AVAILABLE_IN_ALL
SysprofDocumentFile *sysprof_document_lookup_file (SysprofDocument *self,
const char *path);
SYSPROF_AVAILABLE_IN_ALL
SysprofDocumentProcess *sysprof_document_lookup_process (SysprofDocument *self,
int pid);
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_document_list_cpu_info (SysprofDocument *self);
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_document_list_files (SysprofDocument *self);