replay: add stubs and plumbing to implement a re-record

The goal here is to be able to do a duplicate recording to the previous
with a quick key-combination like Ctrl+R.

We still need to extract the metadata from the capture file and setup
a new profiler, but this gets the mechanics in place.
This commit is contained in:
Christian Hergert
2019-05-23 16:17:54 -07:00
parent 2d500bebe2
commit 19f8c6b39f
9 changed files with 177 additions and 10 deletions

View File

@ -41,17 +41,21 @@ struct _SysprofNotebookClass
};
SYSPROF_AVAILABLE_IN_ALL
GtkWidget *sysprof_notebook_new (void);
GtkWidget *sysprof_notebook_new (void);
SYSPROF_AVAILABLE_IN_ALL
SysprofDisplay *sysprof_notebook_get_current (SysprofNotebook *self);
SysprofDisplay *sysprof_notebook_get_current (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_close_current (SysprofNotebook *self);
void sysprof_notebook_close_current (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_open (SysprofNotebook *self,
GFile *file);
void sysprof_notebook_open (SysprofNotebook *self,
GFile *file);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_save (SysprofNotebook *self);
void sysprof_notebook_save (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_notebook_get_can_save (SysprofNotebook *self);
gboolean sysprof_notebook_get_can_save (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_replay (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_notebook_get_can_replay (SysprofNotebook *self);
G_END_DECLS