mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
callgraph: be more graceful with unwind failures
This commit is contained in:
@ -153,7 +153,7 @@ sysprof_callgraph_add_trace (SysprofCallgraph *self,
|
||||
SysprofCallgraphNode *parent;
|
||||
|
||||
g_assert (SYSPROF_IS_CALLGRAPH (self));
|
||||
g_assert (n_symbols > 2);
|
||||
g_assert (n_symbols >= 2);
|
||||
g_assert (symbols[n_symbols-1] == self->everything);
|
||||
|
||||
parent = &self->root;
|
||||
@ -232,7 +232,6 @@ sysprof_callgraph_add_traceable (SysprofCallgraph *self,
|
||||
stack_depth,
|
||||
&final_context);
|
||||
|
||||
g_assert (n_symbols > 0);
|
||||
g_assert (n_symbols <= stack_depth);
|
||||
|
||||
/* We saved 3 extra spaces for these above so that we can
|
||||
|
||||
Reference in New Issue
Block a user