libsysprof-analyze: add sysprof_document_find_counter()

This allows finding a specific counter without having to traverse them
all from consumer code.
This commit is contained in:
Christian Hergert
2023-06-29 10:36:40 -07:00
parent 436a03a0f5
commit 756e647e21
2 changed files with 43 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include <sysprof-capture.h>
#include "sysprof-callgraph.h"
#include "sysprof-document-counter.h"
#include "sysprof-document-file.h"
#include "sysprof-document-traceable.h"
#include "sysprof-mark-catalog.h"
@ -62,6 +63,11 @@ GListModel *sysprof_document_list_marks (SysprofDocume
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_document_catalog_marks (SysprofDocument *self);
SYSPROF_AVAILABLE_IN_ALL
SysprofDocumentCounter
*sysprof_document_find_counter (SysprofDocument *self,
const char *category,
const char *name);
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_document_list_symbols_in_traceable (SysprofDocument *self,
SysprofDocumentTraceable *traceable);
SYSPROF_AVAILABLE_IN_ALL