104 self.resultList.customContextMenuRequested.connect(self.__showContextMenu) |
104 self.resultList.customContextMenuRequested.connect(self.__showContextMenu) |
105 self.summaryList.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) |
105 self.summaryList.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) |
106 self.summaryList.customContextMenuRequested.connect(self.__showContextMenu) |
106 self.summaryList.customContextMenuRequested.connect(self.__showContextMenu) |
107 |
107 |
108 # eric-ide server interface |
108 # eric-ide server interface |
109 self.__serverFsInterface = ericApp().getObject( |
109 self.__serverFsInterface = ( |
110 "EricServer" |
110 ericApp().getObject("EricServer").getServiceInterface("FileSystem") |
111 ).getServiceInterface("FileSystem") |
111 ) |
112 |
112 |
113 def __createResultItem( |
113 def __createResultItem( |
114 self, |
114 self, |
115 calls, |
115 calls, |
116 totalTime, |
116 totalTime, |
270 """ |
270 """ |
271 self.basename = os.path.splitext(pfn)[0] |
271 self.basename = os.path.splitext(pfn)[0] |
272 |
272 |
273 fname = "{0}.profile".format(self.basename) |
273 fname = "{0}.profile".format(self.basename) |
274 if ( |
274 if ( |
275 ( |
275 FileSystemUtilities.isRemoteFileName(fname) |
276 FileSystemUtilities.isRemoteFileName(fname) |
276 and not self.__serverFsInterface.exists(fname) |
277 and not self.__serverFsInterface.exists(fname) |
277 ) or (FileSystemUtilities.isPlainFileName(fname) and not os.path.exists(fname)): |
278 ) |
|
279 or ( |
|
280 FileSystemUtilities.isPlainFileName(fname) |
|
281 and not os.path.exists(fname) |
|
282 ) |
|
283 ): |
|
284 EricMessageBox.warning( |
278 EricMessageBox.warning( |
285 self, |
279 self, |
286 self.tr("Profile Results"), |
280 self.tr("Profile Results"), |
287 self.tr( |
281 self.tr( |
288 """<p>There is no profiling data""" |
282 """<p>There is no profiling data""" |