This is a static copy of a profile reportHome
graphics/private/clo>find_kids (253 calls, 0.033 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/clo.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 |
125 | end | 3 | 0 s | 0% |  |
124 | end | 9 | 0 s | 0% |  |
123 | end | 9 | 0 s | 0% |  |
122 | kid = parent; | 9 | 0 s | 0% |  |
121 | else | 9 | 0 s | 0% |  |
All other lines | | | 0.033 s | 100.0% |  |
Totals | | | 0.033 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Line number | Message |
118 | Use && instead of & as the AND operator in (scalar) conditional statements. |
119 | The variable 'hsave_out' appears to change size on every loop iteration. Consider preallocating for speed. |
122 | Loop index 'kid' is changed inside of a FOR loop. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 16 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 12 |
Code lines that did run | 10 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 83.33 % |
Function listing
time calls line
110 function hsave_out = find_kids(obj, hsave)
111 %
112 %
113 %
253 114 hsave_out = [];
253 115 for kid=hsave(:)'
3 116 while ~isempty(kid)
9 117 parent = get(kid,'parent');
9 118 if ~isempty(parent) & parent == obj
119 hsave_out(end + 1) = kid;
120 break;
9 121 else
9 122 kid = parent;
9 123 end
9 124 end
3 125 end
Other subfunctions in this file are not included in this listing.