libsysprof-gtk: add timespan to session

We want to be able to monitor this from session observers to be able to
update the visible area and/or what is rendered.
This commit is contained in:
Christian Hergert
2023-06-15 16:32:12 -07:00
parent d458d312a3
commit 9eca425a25
6 changed files with 133 additions and 3 deletions

View File

@ -24,6 +24,8 @@
#include <sysprof-analyze.h>
#include "sysprof-time-span.h"
G_BEGIN_DECLS
#define SYSPROF_TYPE_SESSION (sysprof_session_get_type())
@ -32,10 +34,14 @@ SYSPROF_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (SysprofSession, sysprof_session, SYSPROF, SESSION, GObject)
SYSPROF_AVAILABLE_IN_ALL
SysprofSession *sysprof_session_new (SysprofDocument *document);
SysprofSession *sysprof_session_new (SysprofDocument *document);
SYSPROF_AVAILABLE_IN_ALL
SysprofDocument *sysprof_session_get_document (SysprofSession *self);
SysprofDocument *sysprof_session_get_document (SysprofSession *self);
SYSPROF_AVAILABLE_IN_ALL
GtkFilter *sysprof_session_get_filter (SysprofSession *self);
GtkFilter *sysprof_session_get_filter (SysprofSession *self);
SYSPROF_AVAILABLE_IN_ALL
const SysprofTimeSpan *sysprof_session_get_selected_time (SysprofSession *self);
SYSPROF_AVAILABLE_IN_ALL
const SysprofTimeSpan *sysprof_session_get_visible_time (SysprofSession *self);
G_END_DECLS