This is a static copy of a profile reportHome
legendcolorbarlayout>doParentResize (2 calls, 0.218 sec)
Generated 18-Mar-2011 23:32:23 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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
328 | if strcmp(get(ch,'ActivePositi... | 2 | 0.197 s | 90.5% |  |
331 | doLayout(ch); | 2 | 0.021 s | 9.5% |  |
334 | end | 24 | 0 s | 0% |  |
333 | end | 4 | 0 s | 0% |  |
332 | end | 2 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.218 s | 100% | |
Children (called functions)
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 22 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 20 |
Code lines that did run | 18 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 90.00 % |
Function listing
time calls line
313 function doParentResize(hSrc,eventdata) %#ok
2 314 child = allchild(double(hSrc));
2 315 ppos = get(hSrc,'Position');
2 316 if any(isnan(ppos)) || any(ppos(3:4) <= 0)
317 return;
318 end
2 319 par = double(hSrc);
2 320 fig = ancestor(par,'figure');
2 321 ppos = hgconvertunits(fig,ppos,get(par,'Units'),'points',get(par,'Parent'));
2 322 for k=1:length(child)
24 323 ch = child(k);
24 324 if strcmp(get(ch,'type'),'axes')
4 325 if isappdata(ch,'LegendColorbarText') && ...
326 isappdata(ch,'LegendColorbarInnerList')
2 327 setappdata(ch,'LegendColorbarOriginalSize',ppos);
0.20 2 328 if strcmp(get(ch,'ActivePositionProperty'),'outerposition')
2 329 legendcolorbarlayout(ch,'resetOuterLayout');
2 330 end
0.02 2 331 doLayout(ch);
2 332 end
4 333 end
24 334 end
Other subfunctions in this file are not included in this listing.