def show_tree(self):
        self.clear()  # Clear before re-populating
        self.setItemsExpandable(True)
        self.setSortingEnabled(False)
        self.populate_tree()
        self.expandAll()
        for col in range(self.columnCount()-1):
            self.resizeColumnToContents(col)
        self.collapseAll()
        self.setSortingEnabled(True)
        self.sortItems(COL_POS, Qt.AscendingOrder)
Populate the tree with memory profiler data and display it.
dataset/ETHPy150Open Nodd/spyder_line_profiler/widgets/memoryprofilergui.py/MemoryProfilerDataTree.show_tree