Sun, 27 Jan 2013 17:05:36 +0100
Some corrections to the profile data dialog.
(grafted from 11b89e636d33fde67cd693ab3dc1adfb0908a82f)
DataViews/PyProfileDialog.py | file | annotate | diff | comparison | revisions |
--- a/DataViews/PyProfileDialog.py Sun Jan 27 16:34:50 2013 +0100 +++ b/DataViews/PyProfileDialog.py Sun Jan 27 17:05:36 2013 +0100 @@ -19,8 +19,6 @@ from .Ui_PyProfileDialog import Ui_PyProfileDialog import Utilities -from eric5config import getConfig - class ProfileTreeWidgetItem(QTreeWidgetItem): """ @@ -68,7 +66,7 @@ self.cancelled = False self.exclude = True - self.ericpath = getConfig('ericDir') + self.ericpath = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) self.pyLibPath = Utilities.getPythonLibPath() self.summaryList.headerItem().setText(self.summaryList.columnCount(), "") @@ -162,7 +160,10 @@ return if not (self.ericpath and func[0].startswith(self.ericpath)) and \ - not (exclude and func[0].startswith(self.pyLibPath)): + not func[0].startswith("DebugClients") and \ + func[0] != "profile" and \ + not (exclude and ( + func[0].startswith(self.pyLibPath) or func[0] == "")): if self.file is None or func[0].startswith(self.file) or \ func[0].startswith(self.pyLibPath): # calculate the totals