Commit 8624f307 authored by Ell's avatar Ell
Browse files

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 b672f200)
parent 43584300
......@@ -2704,20 +2704,10 @@ class ProfileViewer (Gtk.ScrolledWindow):
history.end_group ()
def select_samples_clicked (self, button):
history.start_group ()
self.root.select (self.id)
selection.select ({frame.sample for frame in self.frames})
sel = set ()
for frame in self.frames:
sel.add (frame.sample)
selection.select (sel)
selection.change_complete ()
history.end_group ()
def tree_selection_changed (self, tree_sel):
self.remove_subprofile ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment