mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: rename ctor for node
That way we can have an alternate way of creating these that does not require using a SysprofCallgraphNode.
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
SysprofCallgraphFrame *_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph,
|
||||
SysprofCallgraphNode *node);
|
||||
SysprofCallgraphFrame *_sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph,
|
||||
SysprofCallgraphNode *node);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -73,7 +73,7 @@ sysprof_callgraph_frame_get_item (GListModel *model,
|
||||
if (iter == NULL)
|
||||
return NULL;
|
||||
|
||||
return _sysprof_callgraph_frame_new (self->callgraph, iter);
|
||||
return _sysprof_callgraph_frame_new_for_node (self->callgraph, iter);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -150,8 +150,8 @@ sysprof_callgraph_frame_init (SysprofCallgraphFrame *self)
|
||||
}
|
||||
|
||||
SysprofCallgraphFrame *
|
||||
_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph,
|
||||
SysprofCallgraphNode *node)
|
||||
_sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph,
|
||||
SysprofCallgraphNode *node)
|
||||
{
|
||||
SysprofCallgraphFrame *self;
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ sysprof_callgraph_get_item (GListModel *model,
|
||||
if (position > 0)
|
||||
return NULL;
|
||||
|
||||
return _sysprof_callgraph_frame_new (self, &self->root);
|
||||
return _sysprof_callgraph_frame_new_for_node (self, &self->root);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user