This is a static copy of a profile report

Home

legendcolorbarlayout>validateTextObjects (20 calls, 0.031 sec)
Generated 18-Mar-2011 23:32:21 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>doLayoutM-subfunction20
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
1097
peerIndex = find(double(ax) ==...
200.010 s33.3%
1096
children = allchild(get(ax,'Pa...
200.010 s33.3%
1087
p = get(textObjs,'Parent');
200.010 s33.3%
1109
if needs_restack
200 s0%
1108
end
200 s0%
All other lines  0 s0%
Totals  0.031 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
allchildM-function200.010 s33.3%
opaque.doubleM-function200 s0%
Self time (built-ins, overhead, etc.)  0.021 s66.7%
Totals  0.031 s100% 
M-Lint results
No M-Lint 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
1080 function out = validateTextObjects(textObjs,ax)
20 1081 out = true;
20 1082 if length(textObjs) ~= 2
1083 out = false;
20 1084 elseif ~ishandle(textObjs(1)) || ~ishandle(textObjs(2))
1085 out = false;
20 1086 else
0.01 20 1087 p = get(textObjs,'Parent');
20 1088 if p{1} ~= ax || p{2} ~= ax
1089 out = false;
1090 end
20 1091 end
1092 %also validate child order wrt peer axis and legends/colorbars
20 1093 inlist = getappdata(ax,'LegendColorbarInnerList');
20 1094 outlist = getappdata(ax,'LegendColorbarOuterList');
20 1095 list = [inlist(:);outlist(:)].';
0.01 20 1096 children = allchild(get(ax,'Parent'));
0.01 20 1097 peerIndex = find(double(ax) == children);
20 1098 needs_restack = false;
20 1099 for ch=list
20 1100 ind = find(double(ch) == children);
20 1101 if ind > peerIndex
1102 children = [children(1:peerIndex-1);children(ind);...
1103 children(peerIndex:ind-1); ...
1104 children(ind+1:end)];
1105 peerIndex = peerIndex+1;
1106 needs_restack = true;
1107 end
20 1108 end
20 1109 if needs_restack
1110 set(get(ax,'Parent'),'Children',children);
1111 end

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