This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
graphics/private/clofunction253
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
125
end
30 s0%
124
end
90 s0%
123
end
90 s0%
122
kid = parent;
90 s0%
121
else
90 s0%
All other lines  0.033 s100.0%
Totals  0.033 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
118Use && instead of & as the AND operator in (scalar) conditional statements.
119The variable 'hsave_out' appears to change size on every loop iteration. Consider preallocating for speed.
122Loop index 'kid' is changed inside of a FOR loop.
Coverage results
[ Show coverage for parent directory ]
Total lines in function16
Non-code lines (comments, blank lines)4
Code lines (lines that can run)12
Code lines that did run10
Code lines that did not run2
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.