This is a static copy of a profile reportHome
legendcolorbarlayout>doParentResize (29 calls, 0.612 sec)
Generated 05-Aug-2011 13:02:08 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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
335 | if strcmp(get(ch,'ActivePositi... | 41 | 0.317 s | 51.8% |  |
338 | doLayout(ch); | 41 | 0.284 s | 46.4% |  |
331 | if strcmp(get(ch,'type'),'axes... | 507 | 0.011 s | 1.8% |  |
341 | end | 507 | 0 s | 0% |  |
340 | end | 205 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.612 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer 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 | 16 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 80.00 % |
Function listing
time calls line
320 function doParentResize(hSrc,eventdata) %#ok
29 321 child = allchild(double(hSrc));
29 322 ppos = get(hSrc,'Position');
29 323 if any(isnan(ppos)) || any(ppos(3:4) <= 0)
324 return;
325 end
29 326 par = double(hSrc);
29 327 fig = ancestor(par,'figure');
29 328 ppos = hgconvertunits(fig,ppos,get(par,'Units'),'points',get(par,'Parent'));
29 329 for k=1:length(child)
507 330 ch = child(k);
0.01 507 331 if strcmp(get(ch,'type'),'axes')
205 332 if isappdata(ch,'LegendColorbarText') && ...
333 isappdata(ch,'LegendColorbarInnerList')
41 334 setappdata(ch,'LegendColorbarOriginalSize',ppos);
0.32 41 335 if strcmp(get(ch,'ActivePositionProperty'),'outerposition')
336 legendcolorbarlayout(ch,'resetOuterLayout');
337 end
0.28 41 338 doLayout(ch);
41 339 end
205 340 end
507 341 end
Other subfunctions in this file are not included in this listing.