This is a static copy of a profile reportHome
hgbehaviorfactory>localCreate (10 calls, 0.041 sec)
Generated 18-Mar-2011 23:32:57 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/toolbox/matlab/graphics/hgbehaviorfactory.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 |
38 | dat = localGetBehaviorInfo; | 10 | 0.031 s | 75.0% |  |
40 | info = dat{n}; | 110 | 0.010 s | 25.0% |  |
47 | end | 110 | 0 s | 0% |  |
46 | end | 10 | 0 s | 0% |  |
45 | ret_h(end+1) = feval(info.cons... | 10 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.041 s | 100% | |
Children (called functions)
M-Lint results
Line number | Message |
44 | To improve performance, use logical indexing instead of FIND. |
45 | The variable 'ret_h' appears to change size on every loop iteration. Consider preallocating for speed. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 11 |
Code lines that did run | 11 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
35 function [ret_h] = localCreate(behavior_name)
36
10 37 ret_h = handle([]);
0.03 10 38 dat = localGetBehaviorInfo;
10 39 for n = 1:length(dat)
0.01 110 40 info = dat{n};
110 41 s = strcmpi(behavior_name,info.name);
110 42 if any(s)
10 43 ind = find(s==true);
10 44 behavior_name(ind) = [];
10 45 ret_h(end+1) = feval(info.constructor);
10 46 end
110 47 end
Other subfunctions in this file are not included in this listing.