tools: in performance-log-viewer.py, allow sorting profile by function name

In the performance-log viewer's profile view, allow sorting the
call-graph tree-views by function name, in addition to the
inclusive/exclusive frequencies.
This commit is contained in:
Ell 2018-10-21 03:33:51 -04:00
parent 27dc9b815d
commit 4664fa73fb

View file

@ -2570,6 +2570,7 @@ class ProfileViewer (Gtk.ScrolledWindow):
col = Gtk.TreeViewColumn (title = "Function")
tree.append_column (col)
col.set_resizable (True)
col.set_sort_column_id (store.FUNCTION)
cell = Gtk.CellRendererText (ellipsize = Pango.EllipsizeMode.END)
col.pack_start (cell, True)