This is a static copy of a profile report

Home

legendcolorbarlayout>validateTextObjects (171 calls, 0.208 sec)
Generated 05-Aug-2011 13:01:57 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
legendcolorbarlayout>doLayoutsubfunction171
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
1103
children = allchild(get(ax,'Pa...
1710.164 s78.9%
1108
if ind > peerIndex
1650.011 s5.3%
1107
ind = find(double(ch) == child...
1650.011 s5.3%
1102
list = [inlist(:);outlist(:)]....
1710.011 s5.3%
1101
outlist = getappdata(ax,'Legen...
1710.011 s5.3%
All other lines  0 s0%
Totals  0.208 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
allchildfunction1710.164 s78.9%
opaque.doublefunction1650.011 s5.3%
Self time (built-ins, overhead, etc.)  0.033 s15.8%
Totals  0.208 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function32
Non-code lines (comments, blank lines)4
Code lines (lines that can run)28
Code lines that did run18
Code lines that did not run10
Coverage (did run/can run)64.29 %
Function listing
   time   calls  line
1087 function out = validateTextObjects(textObjs,ax)
171 1088 out = true;
171 1089 if length(textObjs) ~= 2
1090 out = false;
171 1091 elseif ~ishandle(textObjs(1)) || ~ishandle(textObjs(2))
1092 out = false;
171 1093 else
171 1094 p = get(textObjs,'Parent');
171 1095 if p{1} ~= ax || p{2} ~= ax
1096 out = false;
1097 end
171 1098 end
1099 %also validate child order wrt peer axis and legends/colorbars
171 1100 inlist = getappdata(ax,'LegendColorbarInnerList');
0.01 171 1101 outlist = getappdata(ax,'LegendColorbarOuterList');
0.01 171 1102 list = [inlist(:);outlist(:)].';
0.16 171 1103 children = allchild(get(ax,'Parent'));
171 1104 peerIndex = find(double(ax) == children);
171 1105 needs_restack = false;
171 1106 for ch=list
0.01 165 1107 ind = find(double(ch) == children);
0.01 165 1108 if ind > peerIndex
1109 children = [children(1:peerIndex-1);children(ind);...
1110 children(peerIndex:ind-1); ...
1111 children(ind+1:end)];
1112 peerIndex = peerIndex+1;
1113 needs_restack = true;
1114 end
165 1115 end
171 1116 if needs_restack
1117 set(get(ax,'Parent'),'Children',children);
1118 end

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