This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
printfunction7
...ternatePrintPath>LocalUpdateViewersubfunction2
printing/private/alternatePrintPathfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
18
delete(gcbf);
100.620 s99.2%
12
if isempty(gcbf)
100.004 s0.7%
19
end
100.000 s0.0%
17
else
100.000 s0.0%
All other lines  0.000 s0.1%
Totals  0.625 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
Legend.doSetup>@(h,e)hObj.doDeleteanonymous function80.011 s1.7%
...olbarController>@(e,d)obj.delete()anonymous function100.008 s1.3%
gcbffunction200.005 s0.9%
...ernal.updateLegendMenuToolbar(h,e,[])anonymous function80.004 s0.7%
...yer.ScribeLayer>ScribeLayer.deleteclass method300.003 s0.4%
...ager>@(~,~)(hObj.MarkDirty('all'))anonymous function80.002 s0.3%
...evd)(localDestroyLayoutManager(hObj))anonymous function80.002 s0.3%
Legend.doMethod>@(h,e)delete(uic)anonymous function80.000 s0.0%
...utManager>AxesLayoutManager.deleteclass method80.000 s0.0%
Self time (built-ins, overhead, etc.)  0.589 s94.2%
Totals  0.625 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function19
Non-code lines (comments, blank lines)11
Code lines (lines that can run)8
Code lines that did run4
Code lines that did not run4
Coverage (did run/can run)50.00 %
Function listing
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.