This is a static copy of a profile report

Home

legendcolorbarlayout>doLayoutCB (364 calls, 0.710 sec)
Generated 05-Aug-2011 13:02:05 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/legendcolorbarlayout.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
titlefunction8
legendcolorbarlayout>doLayoutCBsubfunction30
allchildfunction42
legendcolorbarlayout>doParentResizesubfunction168
hardcopyfunction78
ylabelfunction2
subplotfunction36
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
310
doLayout(double(hax));
820.503 s70.8%
296
if ~isprop(hObj,'CachedPositio...
3640.098 s13.8%
298
if isappdata(double(hObj),'Leg...
3390.044 s6.2%
287
if isappdata(double(hax),'Lege...
3640.022 s3.1%
283
warnState = warning('off','MAT...
3640.022 s3.1%
All other lines  0.022 s3.1%
Totals  0.710 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
legendcolorbarlayout>doLayoutsubfunction820.503 s70.8%
ispropfunction3640.098 s13.8%
opaque.doublefunction8820.055 s7.7%
legendcolorbarlayout>doLayoutCBsubfunction300 s0%
Self time (built-ins, overhead, etc.)  0.055 s7.7%
Totals  0.710 s100% 
Code Analyzer results
No Code Analyzer 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 run18
Code lines that did not run3
Coverage (did run/can run)85.71 %
Function listing
   time   calls  line
277 function doLayoutCB(obj,evd,hax) %#ok
278 % Does the legend/colorbar layout to account for XLabel and YLabel
364 279 hObj = evd.AffectedObject;
280
281 % DIsable tex/latex warnings to prevent too much information being
282 % output to the command window
0.02 364 283 warnState = warning('off','MATLAB:tex');
0.01 364 284 warnState(2) = warning('off','MATLAB:gui:latexsup:BadTeXString');
285
286 % Short circuit if we are in the process of reclaiming space
0.02 364 287 if isappdata(double(hax),'LegendColorbarReclaimSpace')
288 warning(warnState);
289 return;
290 end
291
292 % Short circuit if the label has been thrown into "Manual" mode or the user
293 % has manually specified the label. The "CachedPosition" property is
294 % temporary and will go away in a future release as there will be a
295 % "PositionMode" property on the text object.
0.10 364 296 if ~isprop(hObj,'CachedPosition') || ...
297 ~isequal(get(hObj,'CachedPosition'),get(hObj,'Position'))
0.04 339 298 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
282 299 warning(warnState);
282 300 return;
57 301 else
0.01 57 302 setappdata(double(hObj),'LegendColorbarLayoutTextMode','manual');
57 303 end
25 304 else
25 305 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
15 306 rmappdata(double(hObj),'LegendColorbarLayoutTextMode');
15 307 end
25 308 end
309
0.50 82 310 doLayout(double(hax));
311
312 % Restore tex/latex warnings which were disabled at the beginning of this
313 % function
82 314 warning(warnState);

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