mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +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);
|
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
|
void
|
||||||
sp_callgraph_view_set_profile (SpCallgraphView *self,
|
sp_callgraph_view_set_profile (SpCallgraphView *self,
|
||||||
SpCallgraphProfile *profile)
|
SpCallgraphProfile *profile)
|
||||||
|
|||||||
Reference in New Issue
Block a user