This is a static copy of a profile report

Home

hgbehaviorfactory (10 calls, 0.041 sec)
Generated 18-Mar-2011 23:32:57 using cpu time.
M-function 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
hggetbehavior>localGetM-subfunction10
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
31
b = localCreate(behavior_name)...
100.041 s100.0%
32
end
100 s0%
30
else
100 s0%
26
if nargin==0
100 s0%
All other lines  0 s0%
Totals  0.041 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
hgbehaviorfactory>localCreateM-subfunction100.041 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.041 s100% 
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function32
Non-code lines (comments, blank lines)26
Code lines (lines that can run)6
Code lines that did run4
Code lines that did not run2
Coverage (did run/can run)66.67 %
Function listing
   time   calls  line
1 function [b] = hgbehaviorfactory(behavior_name)
2 % This internal helper function may be removed in a future release.
3
4 %HGBEHAVIORFACTORY Convenience for creating behavior objects
5 %
6 % HGGETBEHAVIOR
7 % With no arguments, a list of all registered behavior
8 % objects is generated to the command window.
9 %
10 % BH = HGBEHAVIORFACTORY(NAME)
11 % Specify NAME (string or cell array of strings) to create
12 % behavior objects.
13 %
14 % Example 1:
15 % bh = hgbehaviorfactory('Zoom');
16 %
17 % Example 2:
18 % h = line;
19 % bh = hgbehaviorfactory({'Zoom','DataCursor','Rotate3d'});
20 % set(h,'Behavior',bh);
21 %
22 % See also hgaddbehavior, hggetbehavior.
23
24 % Copyright 2003-2007 The MathWorks, Inc.
25
10 26 if nargin==0
27 % Pretty print output
28 info = localGetBehaviorInfo;
29 localPrettyPrint(info);
10 30 else
0.04 10 31 b = localCreate(behavior_name);
10 32 end

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