diff -r 1779dc278077 -r 391d6b7b1eff eric6/Documentation/Source/eric6.DataViews.PyProfileDialog.html --- a/eric6/Documentation/Source/eric6.DataViews.PyProfileDialog.html Wed Sep 25 19:40:31 2019 +0200 +++ b/eric6/Documentation/Source/eric6.DataViews.PyProfileDialog.html Wed Sep 25 19:42:44 2019 +0200 @@ -18,32 +18,41 @@ </style> </head> -<body><a NAME="top" ID="top"></a> +<body> +<a NAME="top" ID="top"></a> <h1>eric6.DataViews.PyProfileDialog</h1> + <p> Module implementing a dialog to display profile data. </p> <h3>Global Attributes</h3> + <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> + <table> + <tr> <td><a href="#ProfileTreeWidgetItem">ProfileTreeWidgetItem</a></td> <td>Class implementing a custom QTreeWidgetItem to allow sorting on numeric values.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog">PyProfileDialog</a></td> <td>Class implementing a dialog to display the results of a profiling run.</td> </tr> </table> <h3>Functions</h3> + <table> <tr><td>None</td></tr> </table> -<hr /><hr /> +<hr /> +<hr /> <a NAME="ProfileTreeWidgetItem" ID="ProfileTreeWidgetItem"></a> <h2>ProfileTreeWidgetItem</h2> + <p> Class implementing a custom QTreeWidgetItem to allow sorting on numeric values. @@ -51,258 +60,345 @@ <h3>Derived from</h3> QTreeWidgetItem <h3>Class Attributes</h3> + <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> + <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> + <table> + <tr> <td><a href="#ProfileTreeWidgetItem.__getNC">__getNC</a></td> <td>Private method to get the value to compare on for the first column.</td> -</tr><tr> +</tr> +<tr> <td><a href="#ProfileTreeWidgetItem.__lt__">__lt__</a></td> <td>Special method to check, if the item is less than the other one.</td> </tr> </table> <h3>Static Methods</h3> + <table> <tr><td>None</td></tr> </table> + <a NAME="ProfileTreeWidgetItem.__getNC" ID="ProfileTreeWidgetItem.__getNC"></a> <h4>ProfileTreeWidgetItem.__getNC</h4> <b>__getNC</b>(<i>itm</i>) + <p> Private method to get the value to compare on for the first column. -</p><dl> +</p> +<dl> + <dt><i>itm</i></dt> <dd> item to operate on (ProfileTreeWidgetItem) </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> comparison value for the first column (integer) </dd> -</dl><a NAME="ProfileTreeWidgetItem.__lt__" ID="ProfileTreeWidgetItem.__lt__"></a> +</dl> +<a NAME="ProfileTreeWidgetItem.__lt__" ID="ProfileTreeWidgetItem.__lt__"></a> <h4>ProfileTreeWidgetItem.__lt__</h4> <b>__lt__</b>(<i>other</i>) + <p> Special method to check, if the item is less than the other one. -</p><dl> +</p> +<dl> + <dt><i>other</i></dt> <dd> reference to item to compare against (ProfileTreeWidgetItem) </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> true, if this item is less than other (boolean) </dd> </dl> <div align="right"><a href="#top">Up</a></div> -<hr /><hr /> +<hr /> +<hr /> <a NAME="PyProfileDialog" ID="PyProfileDialog"></a> <h2>PyProfileDialog</h2> + <p> Class implementing a dialog to display the results of a profiling run. </p> <h3>Derived from</h3> QDialog, Ui_PyProfileDialog <h3>Class Attributes</h3> + <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> + <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> + <table> + <tr> <td><a href="#PyProfileDialog.__init__">PyProfileDialog</a></td> <td>Constructor</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__createResultItem">__createResultItem</a></td> <td>Private method to create an entry in the result list.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__createSummaryItem">__createSummaryItem</a></td> <td>Private method to create an entry in the summary list.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__eraseAll">__eraseAll</a></td> <td>Private slot to handle the Erase All context menu action.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__eraseProfile">__eraseProfile</a></td> <td>Private slot to handle the Erase Profile context menu action.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__eraseTiming">__eraseTiming</a></td> <td>Private slot to handle the Erase Timing context menu action.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__filter">__filter</a></td> <td>Private slot to handle the Exclude/Include Python Library context menu action.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__finish">__finish</a></td> <td>Private slot called when the action finished or the user pressed the button.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__populateLists">__populateLists</a></td> <td>Private method used to populate the listviews.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__resortResultList">__resortResultList</a></td> <td>Private method to resort the tree.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__showContextMenu">__showContextMenu</a></td> <td>Private slot to show the context menu of the listview.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.__unfinish">__unfinish</a></td> <td>Private slot called to revert the effects of the __finish slot.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> <td>Private slot called by a button of the button box clicked.</td> -</tr><tr> +</tr> +<tr> <td><a href="#PyProfileDialog.start">start</a></td> <td>Public slot to start the calculation of the profile data.</td> </tr> </table> <h3>Static Methods</h3> + <table> <tr><td>None</td></tr> </table> + <a NAME="PyProfileDialog.__init__" ID="PyProfileDialog.__init__"></a> <h4>PyProfileDialog (Constructor)</h4> <b>PyProfileDialog</b>(<i>parent=None</i>) + <p> Constructor -</p><dl> +</p> +<dl> + <dt><i>parent</i></dt> <dd> parent widget (QWidget) </dd> -</dl><a NAME="PyProfileDialog.__createResultItem" ID="PyProfileDialog.__createResultItem"></a> +</dl> +<a NAME="PyProfileDialog.__createResultItem" ID="PyProfileDialog.__createResultItem"></a> <h4>PyProfileDialog.__createResultItem</h4> <b>__createResultItem</b>(<i>calls, totalTime, totalTimePerCall, cumulativeTime, cumulativeTimePerCall, file, line, functionName</i>) + <p> Private method to create an entry in the result list. -</p><dl> +</p> +<dl> + <dt><i>calls</i></dt> <dd> number of calls (integer) -</dd><dt><i>totalTime</i></dt> +</dd> +<dt><i>totalTime</i></dt> <dd> total time (double) -</dd><dt><i>totalTimePerCall</i></dt> +</dd> +<dt><i>totalTimePerCall</i></dt> <dd> total time per call (double) -</dd><dt><i>cumulativeTime</i></dt> +</dd> +<dt><i>cumulativeTime</i></dt> <dd> cumulative time (double) -</dd><dt><i>cumulativeTimePerCall</i></dt> +</dd> +<dt><i>cumulativeTimePerCall</i></dt> <dd> cumulative time per call (double) -</dd><dt><i>file</i></dt> +</dd> +<dt><i>file</i></dt> <dd> filename of file (string) -</dd><dt><i>line</i></dt> +</dd> +<dt><i>line</i></dt> <dd> linenumber (integer) -</dd><dt><i>functionName</i></dt> +</dd> +<dt><i>functionName</i></dt> <dd> function name (string) </dd> -</dl><a NAME="PyProfileDialog.__createSummaryItem" ID="PyProfileDialog.__createSummaryItem"></a> +</dl> +<a NAME="PyProfileDialog.__createSummaryItem" ID="PyProfileDialog.__createSummaryItem"></a> <h4>PyProfileDialog.__createSummaryItem</h4> <b>__createSummaryItem</b>(<i>label, contents</i>) + <p> Private method to create an entry in the summary list. -</p><dl> +</p> +<dl> + <dt><i>label</i></dt> <dd> text of the first column (string) -</dd><dt><i>contents</i></dt> +</dd> +<dt><i>contents</i></dt> <dd> text of the second column (string) </dd> -</dl><a NAME="PyProfileDialog.__eraseAll" ID="PyProfileDialog.__eraseAll"></a> +</dl> +<a NAME="PyProfileDialog.__eraseAll" ID="PyProfileDialog.__eraseAll"></a> <h4>PyProfileDialog.__eraseAll</h4> <b>__eraseAll</b>(<i></i>) + <p> Private slot to handle the Erase All context menu action. -</p><a NAME="PyProfileDialog.__eraseProfile" ID="PyProfileDialog.__eraseProfile"></a> +</p> +<a NAME="PyProfileDialog.__eraseProfile" ID="PyProfileDialog.__eraseProfile"></a> <h4>PyProfileDialog.__eraseProfile</h4> <b>__eraseProfile</b>(<i></i>) + <p> Private slot to handle the Erase Profile context menu action. -</p><a NAME="PyProfileDialog.__eraseTiming" ID="PyProfileDialog.__eraseTiming"></a> +</p> +<a NAME="PyProfileDialog.__eraseTiming" ID="PyProfileDialog.__eraseTiming"></a> <h4>PyProfileDialog.__eraseTiming</h4> <b>__eraseTiming</b>(<i></i>) + <p> Private slot to handle the Erase Timing context menu action. -</p><a NAME="PyProfileDialog.__filter" ID="PyProfileDialog.__filter"></a> +</p> +<a NAME="PyProfileDialog.__filter" ID="PyProfileDialog.__filter"></a> <h4>PyProfileDialog.__filter</h4> <b>__filter</b>(<i></i>) + <p> Private slot to handle the Exclude/Include Python Library context menu action. -</p><a NAME="PyProfileDialog.__finish" ID="PyProfileDialog.__finish"></a> +</p> +<a NAME="PyProfileDialog.__finish" ID="PyProfileDialog.__finish"></a> <h4>PyProfileDialog.__finish</h4> <b>__finish</b>(<i></i>) + <p> Private slot called when the action finished or the user pressed the button. -</p><a NAME="PyProfileDialog.__populateLists" ID="PyProfileDialog.__populateLists"></a> +</p> +<a NAME="PyProfileDialog.__populateLists" ID="PyProfileDialog.__populateLists"></a> <h4>PyProfileDialog.__populateLists</h4> <b>__populateLists</b>(<i>exclude=False</i>) + <p> Private method used to populate the listviews. -</p><dl> +</p> +<dl> + <dt><i>exclude</i></dt> <dd> flag indicating whether files residing in the Python library should be excluded </dd> -</dl><a NAME="PyProfileDialog.__resortResultList" ID="PyProfileDialog.__resortResultList"></a> +</dl> +<a NAME="PyProfileDialog.__resortResultList" ID="PyProfileDialog.__resortResultList"></a> <h4>PyProfileDialog.__resortResultList</h4> <b>__resortResultList</b>(<i></i>) + <p> Private method to resort the tree. -</p><a NAME="PyProfileDialog.__showContextMenu" ID="PyProfileDialog.__showContextMenu"></a> +</p> +<a NAME="PyProfileDialog.__showContextMenu" ID="PyProfileDialog.__showContextMenu"></a> <h4>PyProfileDialog.__showContextMenu</h4> <b>__showContextMenu</b>(<i>coord</i>) + <p> Private slot to show the context menu of the listview. -</p><dl> +</p> +<dl> + <dt><i>coord</i></dt> <dd> the position of the mouse pointer (QPoint) </dd> -</dl><a NAME="PyProfileDialog.__unfinish" ID="PyProfileDialog.__unfinish"></a> +</dl> +<a NAME="PyProfileDialog.__unfinish" ID="PyProfileDialog.__unfinish"></a> <h4>PyProfileDialog.__unfinish</h4> <b>__unfinish</b>(<i></i>) + <p> Private slot called to revert the effects of the __finish slot. -</p><a NAME="PyProfileDialog.on_buttonBox_clicked" ID="PyProfileDialog.on_buttonBox_clicked"></a> +</p> +<a NAME="PyProfileDialog.on_buttonBox_clicked" ID="PyProfileDialog.on_buttonBox_clicked"></a> <h4>PyProfileDialog.on_buttonBox_clicked</h4> <b>on_buttonBox_clicked</b>(<i>button</i>) + <p> Private slot called by a button of the button box clicked. -</p><dl> +</p> +<dl> + <dt><i>button</i></dt> <dd> button that was clicked (QAbstractButton) </dd> -</dl><a NAME="PyProfileDialog.start" ID="PyProfileDialog.start"></a> +</dl> +<a NAME="PyProfileDialog.start" ID="PyProfileDialog.start"></a> <h4>PyProfileDialog.start</h4> <b>start</b>(<i>pfn, fn=None</i>) + <p> Public slot to start the calculation of the profile data. -</p><dl> +</p> +<dl> + <dt><i>pfn</i></dt> <dd> basename of the profiling file (string) -</dd><dt><i>fn</i></dt> +</dd> +<dt><i>fn</i></dt> <dd> file to display the profiling data for (string) </dd>