This is a static copy of a profile report

Home

close>request_close (19 calls, 0.240 sec)
Generated 05-Aug-2011 13:01:35 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/close.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
closefunction19
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
176
hgclose(figh);
170.230 s95.5%
166
for lp = 1:length(h)
190.011 s4.5%
193
end
170 s0%
192
end
170 s0%
189
if ishghandle(figh)
170 s0%
All other lines  0 s0%
Totals  0.240 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
closereqfunction170.230 s95.5%
close>request_close_helpersubfunction340 s0%
Self time (built-ins, overhead, etc.)  0.011 s4.5%
Totals  0.240 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function40
Non-code lines (comments, blank lines)15
Code lines (lines that can run)25
Code lines that did run14
Code lines that did not run11
Coverage (did run/can run)56.00 %
Function listing
   time   calls  line
154 function status = request_close(h)
155 % return 1 if requested handles were closed.
156 % return 0 if any of the requested handles were not closed.
157 % throw an error if calling the CloseRequestFcn on any of the
158 % requested handles throws an error.
159 % throw a warning and delete the requested handle if calling
160 % the CloseRequestFcn on any of the requested handles calls
161 % back into close.
162 % make the figure the current figure and turn ShowHiddenHandles
163 % on before calling the CloseRequestFcn on handle.
19 164 result = 1;
19 165 status = 1;
0.01 19 166 for lp = 1:length(h)
17 167 figh = h(lp);
17 168 if ~ishghandle(figh)
169 continue;
170 end
171
17 172 doubleH = double(figh);
17 173 if (request_close_helper(doubleH,'pre'))
174
17 175 try
0.23 17 176 hgclose(figh);
177 catch ex
178 result = 0;
179 %cause = MException(ex.identifier,ex.message);
180 exToThrow = MException('MATLAB:UndefinedFunction','Error while evaluating figure CloseRequestFcn');
181 ex = ex.addCause(exToThrow);
182 end
17 183 request_close_helper(doubleH,'post');
184
17 185 if ~result
186 throw(ex);
187 end
188
17 189 if ishghandle(figh)
190 status = 0;
191 end
17 192 end
17 193 end

Other subfunctions in this file are not included in this listing.