mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
callgraph-view: add missing get_profile() accessor
This commit is contained in:
@ -217,6 +217,21 @@ sp_callgraph_view_unload (SpCallgraphView *self)
|
||||
gtk_tree_view_set_model (priv->descendants_view, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* sp_callgraph_view_get_profile:
|
||||
*
|
||||
* Returns: (transfer none): An #SpCallgraphProfile.
|
||||
*/
|
||||
SpCallgraphProfile *
|
||||
sp_callgraph_view_get_profile (SpCallgraphView *self)
|
||||
{
|
||||
SpCallgraphViewPrivate *priv = sp_callgraph_view_get_instance_private (self);
|
||||
|
||||
g_return_val_if_fail (SP_IS_CALLGRAPH_VIEW (self), NULL);
|
||||
|
||||
return priv->profile;
|
||||
}
|
||||
|
||||
void
|
||||
sp_callgraph_view_set_profile (SpCallgraphView *self,
|
||||
SpCallgraphProfile *profile)
|
||||
|
||||
Reference in New Issue
Block a user