This is a static copy of a profile reportHome
hgbehaviorfactory>localCreate (70 calls, 0.087 sec)
Generated 05-Aug-2011 13:03:35 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/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 |
47 | bh = feval(info.constructor); | 70 | 0.033 s | 37.5% |  |
45 | if any(s) | 770 | 0.022 s | 25.0% |  |
44 | s = strcmpi(behavior_name,info... | 770 | 0.022 s | 25.0% |  |
38 | dat = localGetBehaviorInfo; | 70 | 0.011 s | 12.5% |  |
54 | end | 770 | 0 s | 0% |  |
All other lines | | | 0.000 s | 0.0% |  |
Totals | | | 0.087 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 20 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 15 |
Code lines that did run | 12 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 80.00 % |
Function listing
time calls line
35 function [ret_h] = localCreate(behavior_name)
36
70 37 ret_h = [];
0.01 70 38 dat = localGetBehaviorInfo;
39 % Note that ret_h cannot be used to accumulate both MCOS and UDD behavior
40 % objects. This should not happen currently since hgbehaviorfacotry is not
41 % called with a cell array of behavior_name.
70 42 for n = 1:length(dat)
770 43 info = dat{n};
0.02 770 44 s = strcmpi(behavior_name,info.name);
0.02 770 45 if any(s)
70 46 behavior_name(s) = [];
0.03 70 47 bh = feval(info.constructor);
70 48 if isempty(ret_h)
70 49 ret_h = bh;
50 else
51 ret_h(end+1) = bh; %#ok<AGROW>
52 end
70 53 end
770 54 end
Other subfunctions in this file are not included in this listing.