mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
window: notify the user when no valid samples were collected
If we failed to collect any samples in the target profile, let the user know why the callgraph is empty.
This commit is contained in:
@ -212,6 +212,11 @@ sp_window_build_profile_cb (GObject *object,
|
|||||||
|
|
||||||
sp_callgraph_view_set_profile (self->callgraph_view, SP_CALLGRAPH_PROFILE (profile));
|
sp_callgraph_view_set_profile (self->callgraph_view, SP_CALLGRAPH_PROFILE (profile));
|
||||||
sp_window_set_state (self, SP_WINDOW_STATE_BROWSING);
|
sp_window_set_state (self, SP_WINDOW_STATE_BROWSING);
|
||||||
|
|
||||||
|
if (sp_callgraph_view_get_n_functions (self->callgraph_view) == 0)
|
||||||
|
sp_window_notify_user (self,
|
||||||
|
GTK_MESSAGE_WARNING,
|
||||||
|
_("Not enough samples were collected to generate a callgraph"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user