DataViews/PyProfileDialog.py

branch
5_3_x
changeset 2379
e58d3c4efbf5
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2953
703452a2876f
child 3163
9f50365a0870
--- 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