src/eric7/DataViews/PyProfileDialog.py

branch
eric7
changeset 10423
299802979277
parent 10373
093dcebe5ecb
child 10439
21c28b0f9e41
--- a/src/eric7/DataViews/PyProfileDialog.py	Tue Dec 19 11:04:03 2023 +0100
+++ b/src/eric7/DataViews/PyProfileDialog.py	Tue Dec 19 19:57:08 2023 +0100
@@ -37,8 +37,10 @@
         """
         Private method to get the value to compare on for the first column.
 
-        @param itm item to operate on (ProfileTreeWidgetItem)
-        @return comparison value for the first column (integer)
+        @param itm item to operate on
+        @type ProfileTreeWidgetItem
+        @return comparison value for the first column
+        @rtype int
         """
         s = itm.text(0)
         return int(s.split("/")[0])
@@ -48,8 +50,9 @@
         Special method to check, if the item is less than the other one.
 
         @param other reference to item to compare against
-            (ProfileTreeWidgetItem)
-        @return true, if this item is less than other (boolean)
+        @type ProfileTreeWidgetItem
+        @return true, if this item is less than other
+        @rtype bool
         """
         column = self.treeWidget().sortColumn()
         if column == 0:
@@ -68,7 +71,8 @@
         """
         Constructor
 
-        @param parent parent widget (QWidget)
+        @param parent parent widget
+        @type QWidget
         """
         super().__init__(parent)
         self.setupUi(self)
@@ -114,14 +118,22 @@
         """
         Private method to create an entry in the result list.
 
-        @param calls number of calls (integer)
-        @param totalTime total time (double)
-        @param totalTimePerCall total time per call (double)
-        @param cumulativeTime cumulative time (double)
-        @param cumulativeTimePerCall cumulative time per call (double)
-        @param file filename of file (string)
-        @param line linenumber (integer)
-        @param functionName function name (string)
+        @param calls number of calls
+        @type int
+        @param totalTime total time
+        @type float
+        @param totalTimePerCall total time per call
+        @type float
+        @param cumulativeTime cumulative time
+        @type float
+        @param cumulativeTimePerCall cumulative time per call
+        @type float
+        @param file filename of file
+        @type str
+        @param line linenumber
+        @type int
+        @param functionName function name
+        @type str
         """
         itm = ProfileTreeWidgetItem(
             self.resultList,
@@ -143,8 +155,10 @@
         """
         Private method to create an entry in the summary list.
 
-        @param label text of the first column (string)
-        @param contents text of the second column (string)
+        @param label text of the first column
+        @type str
+        @param contents text of the second column
+        @type str
         """
         itm = QTreeWidgetItem(self.summaryList, [label, contents])
         itm.setTextAlignment(1, Qt.AlignmentFlag.AlignRight)
@@ -163,6 +177,7 @@
 
         @param exclude flag indicating whether files residing in the
                 Python library should be excluded
+        @type bool
         """
         self.resultList.clear()
         self.summaryList.clear()
@@ -242,8 +257,10 @@
         """
         Public slot to start the calculation of the profile data.
 
-        @param pfn basename of the profiling file (string)
-        @param fn file to display the profiling data for (string)
+        @param pfn basename of the profiling file
+        @type str
+        @param fn file to display the profiling data for
+        @type str
         """
         self.basename = os.path.splitext(pfn)[0]
 
@@ -318,7 +335,8 @@
         """
         Private slot called by a button of the button box clicked.
 
-        @param button button that was clicked (QAbstractButton)
+        @param button button that was clicked
+        @type QAbstractButton
         """
         if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close):
             self.close()
@@ -329,7 +347,8 @@
         """
         Private slot to show the context menu of the listview.
 
-        @param coord the position of the mouse pointer (QPoint)
+        @param coord the position of the mouse pointer
+        @type QPoint
         """
         self.__menu.popup(self.mapToGlobal(coord))
 

eric ide

mercurial