mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
Make stack_stash_add_trace() return a pointer to the trace
This commit is contained in:
@ -199,7 +199,7 @@ stack_stash_free (StackStash *stash)
|
|||||||
g_free (stash);
|
g_free (stash);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
StackNode *
|
||||||
stack_stash_add_trace (StackStash *stash,
|
stack_stash_add_trace (StackStash *stash,
|
||||||
uint64_t *addrs,
|
uint64_t *addrs,
|
||||||
int n_addrs,
|
int n_addrs,
|
||||||
@ -210,7 +210,7 @@ stack_stash_add_trace (StackStash *stash,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!n_addrs)
|
if (!n_addrs)
|
||||||
return;
|
return NULL;
|
||||||
|
|
||||||
if (stash->nodes_by_data)
|
if (stash->nodes_by_data)
|
||||||
stack_stash_undecorate (stash);
|
stack_stash_undecorate (stash);
|
||||||
@ -253,6 +253,8 @@ stack_stash_add_trace (StackStash *stash,
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent->size += size;
|
parent->size += size;
|
||||||
|
|
||||||
|
return parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@ -62,7 +62,7 @@ typedef void (* StackNodeFunc) (StackNode *node,
|
|||||||
/* Stach */
|
/* Stach */
|
||||||
StackStash *stack_stash_new (GDestroyNotify destroy);
|
StackStash *stack_stash_new (GDestroyNotify destroy);
|
||||||
StackNode * stack_node_new (StackStash *stash);
|
StackNode * stack_node_new (StackStash *stash);
|
||||||
void stack_stash_add_trace (StackStash *stash,
|
StackNode * stack_stash_add_trace (StackStash *stash,
|
||||||
uint64_t *addrs,
|
uint64_t *addrs,
|
||||||
gint n_addrs,
|
gint n_addrs,
|
||||||
int size);
|
int size);
|
||||||
|
|||||||
@ -272,7 +272,7 @@ set_busy (GtkWidget *widget,
|
|||||||
if (cursor)
|
if (cursor)
|
||||||
gdk_cursor_unref (cursor);
|
gdk_cursor_unref (cursor);
|
||||||
|
|
||||||
gdk_display_flush (gdk_display_get_default());
|
gdk_display_sync (gdk_display_get_default());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -506,7 +506,7 @@ add_node (FooTreeStore *store,
|
|||||||
static void
|
static void
|
||||||
fill_descendants_tree (Application *app)
|
fill_descendants_tree (Application *app)
|
||||||
{
|
{
|
||||||
GtkTreeStore *tree_store;
|
FooTreeStore *tree_store;
|
||||||
|
|
||||||
if (app->descendants)
|
if (app->descendants)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user