callgraph: add sp_callgraph_view_screenshot()

Similar to the old sysprof, this generates a textual representation of the
descendants view. It matches the expansion of the treeview in the output
text.
This commit is contained in:
Christian Hergert
2016-04-13 19:40:20 -07:00
parent 082d754113
commit acd749a4e3
2 changed files with 81 additions and 0 deletions

View File

@ -42,6 +42,7 @@ GtkWidget *sp_callgraph_view_new (void);
SpCallgraphProfile *sp_callgraph_view_get_profile (SpCallgraphView *self);
void sp_callgraph_view_set_profile (SpCallgraphView *self,
SpCallgraphProfile *profile);
gchar *sp_callgraph_view_screenshot (SpCallgraphView *self);
G_END_DECLS