This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
31 | b = localCreate(behavior_name)... | 70 | 0.087 s | 88.9% |  |
32 | end | 70 | 0 s | 0% |  |
30 | else | 70 | 0 s | 0% |  |
26 | if nargin==0 | 70 | 0 s | 0% |  |
All other lines | | | 0.011 s | 11.1% |  |
Totals | | | 0.098 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
hgbehaviorfactory>localCreate | subfunction | 70 | 0.087 s | 88.9% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 11.1% |  |
Totals | | | 0.098 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 32 |
Non-code lines (comments, blank lines) | 26 |
Code lines (lines that can run) | 6 |
Code lines that did run | 4 |
Code lines that did not run | 2 |
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.