This is a static copy of a profile report

Home

closereq (17 calls, 0.230 sec)
Generated 05-Aug-2011 13:01:36 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/closereq.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
24
delete(gcbf);
170.208 s90.5%
20
if (isa(gcbf,'ui.figure'))
170.011 s4.8%
13
if isempty(gcbf)
170.011 s4.8%
26
end
170 s0%
25
end
170 s0%
All other lines  0 s0%
Totals  0.230 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
scribe.legend.init>legendDeletedsubfunction40.033 s14.3%
gcbffunction510.011 s4.8%
scribe.legend.init>PlotAxesClearedsubfunction40 s0%
legendcolorbarlayoutfunction40 s0%
gcbofunction40 s0%
scribe.legend.init>PlotAxesDeletedsubfunction40 s0%
subplot>axesDestroyedsubfunction1030 s0%
Self time (built-ins, overhead, etc.)  0.186 s81.0%
Totals  0.230 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.
0.01 17 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
17 19 else
0.01 17 20 if (isa(gcbf,'ui.figure'))
21 % Convert GBT1.5 figure to a double.
22 delete(double(gcbf));
17 23 else
0.21 17 24 delete(gcbf);
17 25 end
17 26 end