mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: add is_empty() helper
This can be bound easier should we support GIR in the future.
This commit is contained in:
@ -177,9 +177,11 @@ sysprof_callgraph_view_load (SysprofCallgraphView *self,
|
||||
if (!g_set_object (&priv->profile, profile))
|
||||
return;
|
||||
|
||||
if (!(stash = sysprof_callgraph_profile_get_stash (profile)))
|
||||
if (sysprof_callgraph_profile_is_empty (profile))
|
||||
return;
|
||||
|
||||
stash = sysprof_callgraph_profile_get_stash (profile);
|
||||
|
||||
for (n = stack_stash_get_root (stash); n; n = n->siblings)
|
||||
state.profile_size += n->total;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user