libsysprof-analyze: index traceables for faster access

This allows us to skip past all the nodes we don't care about with
relatively low overhead once the document has been generated.
This commit is contained in:
Christian Hergert
2023-05-03 17:44:15 -07:00
parent b72eda6be2
commit 10c332d5d2
4 changed files with 52 additions and 6 deletions

View File

@ -20,12 +20,15 @@
#pragma once
#include <gtk/gtk.h>
#include "sysprof-document.h"
G_BEGIN_DECLS
gboolean _sysprof_document_is_native (SysprofDocument *self);
char *_sysprof_document_ref_string (SysprofDocument *self,
const char *name);
gboolean _sysprof_document_is_native (SysprofDocument *self);
char *_sysprof_document_ref_string (SysprofDocument *self,
const char *name);
GtkBitset *_sysprof_document_samples (SysprofDocument *self);
G_END_DECLS