tools: in performance-log-view.py, don't change call-graph path ...
... when selecting a function's samples
Since we now preserve the call-graph path across state changes,
there's no need to explictly set the path after selecting a
function's samples in the profile view.
(cherry picked from commit b672f20075
)
This commit is contained in:
@ -2704,20 +2704,10 @@ class ProfileViewer (Gtk.ScrolledWindow):
|
|||||||
history.end_group ()
|
history.end_group ()
|
||||||
|
|
||||||
def select_samples_clicked (self, button):
|
def select_samples_clicked (self, button):
|
||||||
history.start_group ()
|
selection.select ({frame.sample for frame in self.frames})
|
||||||
|
|
||||||
self.root.select (self.id)
|
|
||||||
|
|
||||||
sel = set ()
|
|
||||||
|
|
||||||
for frame in self.frames:
|
|
||||||
sel.add (frame.sample)
|
|
||||||
|
|
||||||
selection.select (sel)
|
|
||||||
selection.change_complete ()
|
selection.change_complete ()
|
||||||
|
|
||||||
history.end_group ()
|
|
||||||
|
|
||||||
def tree_selection_changed (self, tree_sel):
|
def tree_selection_changed (self, tree_sel):
|
||||||
self.remove_subprofile ()
|
self.remove_subprofile ()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user