callgraph: update callgraph when selection changes

When the visualizer selection is changed, we can update the
callgraph to ensure all samples fall within the time range.
This commit is contained in:
Christian Hergert
2016-10-08 20:09:49 -07:00
parent 00b9b1fbf5
commit 62189670af
3 changed files with 200 additions and 19 deletions

View File

@ -20,6 +20,7 @@
#define SP_CALLGRAPH_PROFILE_H
#include "sp-profile.h"
#include "sp-visualizer-selection.h"
G_BEGIN_DECLS
@ -27,9 +28,10 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (SpCallgraphProfile, sp_callgraph_profile, SP, CALLGRAPH_PROFILE, GObject)
SpProfile *sp_callgraph_profile_new (void);
GQuark sp_callgraph_profile_get_tag (SpCallgraphProfile *self,
const gchar *symbol);
SpProfile *sp_callgraph_profile_new (void);
SpProfile *sp_callgraph_profile_new_with_selection (SpVisualizerSelection *selection);
GQuark sp_callgraph_profile_get_tag (SpCallgraphProfile *self,
const gchar *symbol);
G_END_DECLS