This is a static copy of a profile report

Home

hgbehaviorfactory>localCreate (5 calls, 0.030 sec)
Generated 28-Feb-2011 19:17:59 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)

Function NameFunction TypeCalls
hgbehaviorfactoryM-function5
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
45
ret_h(end+1) = feval(info.cons...
50.010 s33.3%
40
info = dat{n};
550.010 s33.3%
38
dat = localGetBehaviorInfo;
50.010 s33.3%
47
end
550 s0%
46
end
50 s0%
All other lines  0 s0%
Totals  0.030 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
hgbehaviorfactory>localGetBehaviorInfoM-subfunction50.010 s33.3%
...loteditbehavior.schema>doEnableActionM-subfunction10 s0%
Self time (built-ins, overhead, etc.)  0.020 s66.7%
Totals  0.030 s100% 
M-Lint results
Line numberMessage
44To improve performance, use logical indexing instead of FIND.
45The 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 function13
Non-code lines (comments, blank lines)2
Code lines (lines that can run)11
Code lines that did run11
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
35 function [ret_h] = localCreate(behavior_name)
36
5 37 ret_h = handle([]);
< 0.01 5 38 dat = localGetBehaviorInfo;
5 39 for n = 1:length(dat)
< 0.01 55 40 info = dat{n};
55 41 s = strcmpi(behavior_name,info.name);
55 42 if any(s)
5 43 ind = find(s==true);
5 44 behavior_name(ind) = [];
< 0.01 5 45 ret_h(end+1) = feval(info.constructor);
5 46 end
55 47 end

Other subfunctions in this file are not included in this listing.