This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
1103 | children = allchild(get(ax,'Pa... | 171 | 0.164 s | 78.9% |  |
1108 | if ind > peerIndex | 165 | 0.011 s | 5.3% |  |
1107 | ind = find(double(ch) == child... | 165 | 0.011 s | 5.3% |  |
1102 | list = [inlist(:);outlist(:)].... | 171 | 0.011 s | 5.3% |  |
1101 | outlist = getappdata(ax,'Legen... | 171 | 0.011 s | 5.3% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.208 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
allchild | function | 171 | 0.164 s | 78.9% |  |
opaque.double | function | 165 | 0.011 s | 5.3% |  |
Self time (built-ins, overhead, etc.) | | | 0.033 s | 15.8% |  |
Totals | | | 0.208 s | 100% | |
Code Analyzer results
No Code Analyzer 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
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.