eric6/DataViews/PyProfileDialog.py

changeset 7250
d8bdc55aee1a
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7249:0bf517e60f54 7250:d8bdc55aee1a
10 10
11 import os 11 import os
12 import pickle 12 import pickle
13 13
14 from PyQt5.QtCore import Qt 14 from PyQt5.QtCore import Qt
15 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QMenu, QHeaderView, \ 15 from PyQt5.QtWidgets import (
16 QTreeWidgetItem, QApplication 16 QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem,
17 QApplication
18 )
17 19
18 from E5Gui import E5MessageBox 20 from E5Gui import E5MessageBox
19 21
20 from .Ui_PyProfileDialog import Ui_PyProfileDialog 22 from .Ui_PyProfileDialog import Ui_PyProfileDialog
21 import Utilities 23 import Utilities
170 # now go through all the files 172 # now go through all the files
171 for func, (cc, nc, tt, ct, _callers) in list(self.stats.items()): 173 for func, (cc, nc, tt, ct, _callers) in list(self.stats.items()):
172 if self.cancelled: 174 if self.cancelled:
173 return 175 return
174 176
175 if not (self.ericpath and 177 if (not (self.ericpath and
176 func[0].startswith(self.ericpath)) and \ 178 func[0].startswith(self.ericpath)) and
177 not func[0].startswith("DebugClients") and \ 179 not func[0].startswith("DebugClients") and
178 func[0] != "profile" and \ 180 func[0] != "profile" and
179 not (exclude and ( 181 not (exclude and (func[0].startswith(self.pyLibPath) or
180 func[0].startswith(self.pyLibPath) or func[0] == "")): 182 func[0] == "")
181 if self.file is None or func[0].startswith(self.file) or \ 183 )):
182 func[0].startswith(self.pyLibPath): 184 if (self.file is None or func[0].startswith(self.file) or
185 func[0].startswith(self.pyLibPath)):
183 # calculate the totals 186 # calculate the totals
184 total_calls += nc 187 total_calls += nc
185 prim_calls += cc 188 prim_calls += cc
186 total_tt += tt 189 total_tt += tt
187 190

eric ide

mercurial