This is a static copy of a profile report

Home

closereq (1 call, 0.040 sec)
Generated 05-Nov-2014 07:52:55 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/graphics/closereq.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
close>request_closesubfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
24
delete(gcbf);
10.040 s100.0%
26
end
10 s0%
25
end
10 s0%
23
else
10 s0%
20
if (isa(gcbf,'ui.figure'))
10 s0%
All other lines  0 s0%
Totals  0.040 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
openfig>@(o,e)cleanUp(o,e,filename)anonymous function10.020 s50.0%
...anager>@(obj,evd)(localDelete(hThis))anonymous function10.010 s25.0%
gcbffunction30 s0%
Self time (built-ins, overhead, etc.)  0.010 s25.0%
Totals  0.040 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function26
Non-code lines (comments, blank lines)14
Code lines (lines that can run)12
Code lines that did run7
Code lines that did not run5
Coverage (did run/can run)58.33 %
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-2009 The MathWorks, Inc.
7 % $Revision: 1.9.4.4 $ $Date: 2009/10/24 19:18:02 $
8
9 % Note that closereq now honors the user's ShowHiddenHandles setting
10 % during figure deletion. This means that deletion listeners and
11 % DeleteFcns will now operate in an environment which is not guaranteed
12 % to show hidden handles.
1 13 if isempty(gcbf)
14 if length(dbstack) == 1
15 warning('MATLAB:closereq', ...
16 'Calling closereq from the command line is now obsolete, use close instead');
17 end
18 close force
1 19 else
1 20 if (isa(gcbf,'ui.figure'))
21 % Convert GBT1.5 figure to a double.
22 delete(double(gcbf));
1 23 else
0.04 1 24 delete(gcbf);
1 25 end
1 26 end