This is a static copy of a profile report

Home

legendcolorbarlayout>doLayoutCB (12 calls, 0.176 sec)
Generated 18-Mar-2011 23:32:02 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/toolbox/matlab/scribe/legendcolorbarlayout.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
legendcolorbarlayout>doParentResizeM-subfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
303
doLayout(double(hax));
120.156 s88.2%
277
warnState(2) = warning('off','...
120.010 s5.9%
276
warnState = warning('off','MAT...
120.010 s5.9%
307
warning(warnState);
120 s0%
301
end
60 s0%
All other lines  0 s0%
Totals  0.176 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
legendcolorbarlayout>doLayoutM-subfunction120.145 s82.4%
opaque.doubleM-function480.010 s5.9%
ispropM-function120 s0%
Self time (built-ins, overhead, etc.)  0.021 s11.8%
Totals  0.176 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function38
Non-code lines (comments, blank lines)17
Code lines (lines that can run)21
Code lines that did run16
Code lines that did not run5
Coverage (did run/can run)76.19 %
Function listing
   time   calls  line
270 function doLayoutCB(obj,evd,hax) %#ok
271 % Does the legend/colorbar layout to account for XLabel and YLabel
12 272 hObj = evd.AffectedObject;
273
274 % DIsable tex/latex warnings to prevent too much information being
275 % output to the command window
0.01 12 276 warnState = warning('off','MATLAB:tex');
0.01 12 277 warnState(2) = warning('off','MATLAB:gui:latexsup:BadTeXString');
278
279 % Short circuit if we are in the process of reclaiming space
12 280 if isappdata(double(hax),'LegendColorbarReclaimSpace')
281 warning(warnState);
282 return;
283 end
284
285 % Short circuit if the label has been thrown into "Manual" mode or the user
286 % has manually specified the label. The "CachedPosition" property is
287 % temporary and will go away in a future release as there will be a
288 % "PositionMode" property on the text object.
12 289 if ~isprop(hObj,'CachedPosition') || ...
290 ~isequal(get(hObj,'CachedPosition'),get(hObj,'Position'))
6 291 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
292 warning(warnState);
293 return;
6 294 else
6 295 setappdata(double(hObj),'LegendColorbarLayoutTextMode','manual');
6 296 end
6 297 else
6 298 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
6 299 rmappdata(double(hObj),'LegendColorbarLayoutTextMode');
6 300 end
6 301 end
302
0.16 12 303 doLayout(double(hax));
304
305 % Restore tex/latex warnings which were disabled at the beginning of this
306 % function
12 307 warning(warnState);

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