Some corrections to the profile data dialog.

Sun, 27 Jan 2013 17:05:36 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 27 Jan 2013 17:05:36 +0100
changeset 2377
11b89e636d33
parent 2376
a0409e65bd81
child 2380
0121b9ab8edb

Some corrections to the profile data dialog.

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

eric ide

mercurial