eric6/DataViews/PyProfileDialog.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
7 Module implementing a dialog to display profile data. 7 Module implementing a dialog to display profile data.
8 """ 8 """
9 9
10 10
11 import os 11 import os
12 import pickle 12 import pickle # secok
13 13
14 from PyQt5.QtCore import Qt 14 from PyQt5.QtCore import Qt
15 from PyQt5.QtWidgets import ( 15 from PyQt5.QtWidgets import (
16 QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, 16 QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem,
17 QApplication 17 QApplication
240 .format(pfn)) 240 .format(pfn))
241 self.close() 241 self.close()
242 return 242 return
243 try: 243 try:
244 f = open(fname, 'rb') 244 f = open(fname, 'rb')
245 self.stats = pickle.load(f) 245 self.stats = pickle.load(f) # secok
246 f.close() 246 f.close()
247 except (EnvironmentError, pickle.PickleError, EOFError): 247 except (EnvironmentError, pickle.PickleError, EOFError):
248 E5MessageBox.critical( 248 E5MessageBox.critical(
249 self, 249 self,
250 self.tr("Loading Profiling Data"), 250 self.tr("Loading Profiling Data"),

eric ide

mercurial