This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
1097 | peerIndex = find(double(ax) ==... | 20 | 0.010 s | 33.3% |  |
1096 | children = allchild(get(ax,'Pa... | 20 | 0.010 s | 33.3% |  |
1087 | p = get(textObjs,'Parent'); | 20 | 0.010 s | 33.3% |  |
1109 | if needs_restack | 20 | 0 s | 0% |  |
1108 | end | 20 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.031 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
allchild | M-function | 20 | 0.010 s | 33.3% |  |
opaque.double | M-function | 20 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.021 s | 66.7% |  |
Totals | | | 0.031 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 32 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 28 |
Code lines that did run | 18 |
Code lines that did not run | 10 |
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.