12 import pickle |
12 import pickle |
13 |
13 |
14 from PyQt4.QtCore import * |
14 from PyQt4.QtCore import * |
15 from PyQt4.QtGui import * |
15 from PyQt4.QtGui import * |
16 |
16 |
17 from Ui_PyProfileDialog import Ui_PyProfileDialog |
17 from .Ui_PyProfileDialog import Ui_PyProfileDialog |
18 import Utilities |
18 import Utilities |
19 |
19 |
20 from eric4config import getConfig |
20 from eric4config import getConfig |
21 |
21 |
22 class ProfileTreeWidgetItem(QTreeWidgetItem): |
22 class ProfileTreeWidgetItem(QTreeWidgetItem): |
155 # disable updates of the list for speed |
155 # disable updates of the list for speed |
156 self.resultList.setUpdatesEnabled(False) |
156 self.resultList.setUpdatesEnabled(False) |
157 self.resultList.setSortingEnabled(False) |
157 self.resultList.setSortingEnabled(False) |
158 |
158 |
159 # now go through all the files |
159 # now go through all the files |
160 for func, (cc, nc, tt, ct, callers) in self.stats.items(): |
160 for func, (cc, nc, tt, ct, callers) in list(self.stats.items()): |
161 if self.cancelled: |
161 if self.cancelled: |
162 return |
162 return |
163 |
163 |
164 if not (self.ericpath and func[0].startswith(self.ericpath)) and \ |
164 if not (self.ericpath and func[0].startswith(self.ericpath)) and \ |
165 not (exclude and func[0].startswith(self.pyLibPath)): |
165 not (exclude and func[0].startswith(self.pyLibPath)): |