This is a static copy of a profile report

Home

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)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
38
dat = localGetBehaviorInfo;
100.031 s75.0%
40
info = dat{n};
1100.010 s25.0%
47
end
1100 s0%
46
end
100 s0%
45
ret_h(end+1) = feval(info.cons...
100 s0%
All other lines  0 s0%
Totals  0.041 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
hgbehaviorfactory>localGetBehaviorInfoM-subfunction100.031 s75.0%
...loteditbehavior.schema>doEnableActionM-subfunction20 s0%
Self time (built-ins, overhead, etc.)  0.010 s25.0%
Totals  0.041 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
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.