This is a static copy of a profile report

Home

hgbehaviorfactory (70 calls, 0.098 sec)
Generated 05-Aug-2011 13:03:36 using cpu time.
function 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
hggetbehavior>localGetsubfunction70
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
31
b = localCreate(behavior_name)...
700.087 s88.9%
32
end
700 s0%
30
else
700 s0%
26
if nargin==0
700 s0%
All other lines  0.011 s11.1%
Totals  0.098 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
hgbehaviorfactory>localCreatesubfunction700.087 s88.9%
Self time (built-ins, overhead, etc.)  0.011 s11.1%
Totals  0.098 s100% 
Code Analyzer 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-2010 The MathWorks, Inc.
25
70 26 if nargin==0
27 % Pretty print output
28 info = localGetBehaviorInfo;
29 localPrettyPrint(info);
70 30 else
0.09 70 31 b = localCreate(behavior_name);
70 32 end

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