libsysprof: add range helper

This commit is contained in:
Christian Hergert
2019-06-20 13:18:33 -07:00
parent 8d012e83d7
commit 84f135eced
2 changed files with 34 additions and 0 deletions

View File

@ -54,6 +54,13 @@ void sysprof_selection_unselect_range (SysprofSelection
gint64 begin,
gint64 end);
SYSPROF_AVAILABLE_IN_ALL
guint sysprof_selection_get_n_ranges (SysprofSelection *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_selection_get_nth_range (SysprofSelection *self,
guint nth,
gint64 *begin_time,
gint64 *end_time);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_selection_unselect_all (SysprofSelection *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_selection_foreach (SysprofSelection *self,