This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
hgbehaviorfactoryfunction70
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
47
bh = feval(info.constructor);
700.033 s37.5%
45
if any(s)
7700.022 s25.0%
44
s = strcmpi(behavior_name,info...
7700.022 s25.0%
38
dat = localGetBehaviorInfo;
700.011 s12.5%
54
end
7700 s0%
All other lines  0.000 s0.0%
Totals  0.087 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics.schemafunction10.011 s12.5%
hgbehaviorfactory>localGetBehaviorInfosubfunction700.011 s12.5%
...loteditbehavior.schema>doEnableActionsubfunction140 s0%
graphics.ploteditbehavior.schemafunction10 s0%
graphics.datacursorbehavior.schemafunction10 s0%
graphics.rotate3dbehavior.schemafunction10 s0%
graphics.zoombehavior.schemafunction10 s0%
graphics.panbehavior.schemafunction10 s0%
Self time (built-ins, overhead, etc.)  0.066 s75.0%
Totals  0.087 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function20
Non-code lines (comments, blank lines)5
Code lines (lines that can run)15
Code lines that did run12
Code lines that did not run3
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.