closereq (Calls: 10, Time: 0.625 s)
Generated 16-Jul-2020 17:09:12 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/closereq.m
Copy to new window for comparing multiple runs
| Function Name | Function Type | Calls |
| function | 7 | |
| ...ternatePrintPath>LocalUpdateViewer | subfunction | 2 |
| printing/private/alternatePrintPath | function | 1 |
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 18 | delete(gcbf); | 10 | 0.620 s | 99.2% | |
| 12 | if isempty(gcbf) | 10 | 0.004 s | 0.7% | |
| 19 | end | 10 | 0.000 s | 0.0% | |
| 17 | else | 10 | 0.000 s | 0.0% | |
| All other lines | 0.000 s | 0.1% | |||
| Totals | 0.625 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| Legend.doSetup>@(h,e)hObj.doDelete | anonymous function | 8 | 0.011 s | 1.7% | |
| ...olbarController>@(e,d)obj.delete() | anonymous function | 10 | 0.008 s | 1.3% | |
| gcbf | function | 20 | 0.005 s | 0.9% | |
| ...ernal.updateLegendMenuToolbar(h,e,[]) | anonymous function | 8 | 0.004 s | 0.7% | |
| ...yer.ScribeLayer>ScribeLayer.delete | class method | 30 | 0.003 s | 0.4% | |
| ...ager>@(~,~)(hObj.MarkDirty('all')) | anonymous function | 8 | 0.002 s | 0.3% | |
| ...evd)(localDestroyLayoutManager(hObj)) | anonymous function | 8 | 0.002 s | 0.3% | |
| Legend.doMethod>@(h,e)delete(uic) | anonymous function | 8 | 0.000 s | 0.0% | |
| ...utManager>AxesLayoutManager.delete | class method | 8 | 0.000 s | 0.0% | |
| Self time (built-ins, overhead, etc.) | 0.589 s | 94.2% | |||
| Totals | 0.625 s | 100% |
| Total lines in function | 19 |
| Non-code lines (comments, blank lines) | 11 |
| Code lines (lines that can run) | 8 |
| Code lines that did run | 4 |
| Code lines that did not run | 4 |
| Coverage (did run/can run) | 50.00 % |
time | Calls | line | |
|---|---|---|---|
1 | function closereq | ||
2 | %CLOSEREQ Figure close request function. | ||
3 | % CLOSEREQ deletes the current figure window. By default, CLOSEREQ is | ||
4 | % the CloseRequestFcn for new figures. | ||
5 | |||
6 | % Copyright 1984-2012 The MathWorks, Inc. | ||
7 | |||
8 | % Note that closereq now honors the user's ShowHiddenHandles setting | ||
9 | % during figure deletion. This means that deletion listeners and | ||
10 | % DeleteFcns will now operate in an environment which is not guaranteed | ||
11 | % to show hidden handles. | ||
0.004 | 10 | 12 | if isempty(gcbf) |
13 | if length(dbstack) == 1 | ||
14 | warning(message('MATLAB:closereq:ObsoleteUsage')); | ||
15 | end | ||
16 | close('force'); | ||
< 0.001 | 10 | 17 | else |
0.620 | 10 | 18 | delete(gcbf); |
< 0.001 | 10 | 19 | end |
Other subfunctions in this file are not included in this listing.