This is a static copy of a profile report

Home

graphics/private/getget (280 calls, 0.066 sec)
Generated 05-Aug-2011 13:03:35 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/getget.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/positionsfunction120
graphics/private/positions>LocalUnionsubfunction40
graphics/private/preparefunction40
graphics/private/renderfunction80
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
49
if ~isempty(si)
2800.022 s33.3%
44
hValue = { hValue };
2800.022 s33.3%
42
hValue = get(h(hi), propName )...
2800.011 s16.7%
13
if isempty(h)
2800.011 s16.7%
59
end
2800 s0%
All other lines  0 s0%
Totals  0.066 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function59
Non-code lines (comments, blank lines)28
Code lines (lines that can run)31
Code lines that did run19
Code lines that did not run12
Coverage (did run/can run)61.29 %
Function listing
   time   calls  line
1 function propValue = getget( h, propName )
2 %GETGET Call GET on a Handle Graphics object or GET_PARAM on a Simulink object.
3 % GETGET(H, PN) GET property PN for Handle Graphics object H.
4 % GETGET(H, PN) GET_PARAM property PN for Simulink object H.
5 % GETGET(N, PN) GET_PARAM property PN for Simulink object named N.
6 % If H is a vector, result is concatenated value from vectorized GET and GET_PARAM.
7 %
8 % See also GET, GET_PARAM.
9
10 % Copyright 1984-2005 The MathWorks, Inc.
11 % $Revision: 1.4.4.1 $
12
0.01 280 13 if isempty(h)
14 propValue = [];
15 return
16 end
17
280 18 if ischar(h)
19 h = get_param(h,'handle');
20 end
21
22 %
23 % find the indices for the HG objects and
24 % the indices for the Simulink objects - these
25 % will be used below to populate the result vector
26 % for the case when the input is a non-homogenous
27 % array of handles (e.g., some HG, some Simulink).
28 % Note that the Simulink part is guarded so that we
29 % don't call Simulink when it's not necessary.
30 %
280 31 hi = find(ishghandle(h));
280 32 if length(hi) ~= length(h)
33 si = find(isslhandle(h));
280 34 else
280 35 si = [];
280 36 end
37
38 %Put values into same order as handles
280 39 propValue = cell(size(h));
40
280 41 if ~isempty(hi)
0.01 280 42 hValue = get(h(hi), propName );
280 43 if ~iscell( hValue )
0.02 280 44 hValue = { hValue };
280 45 end
280 46 propValue(hi) = hValue;
280 47 end
48
0.02 280 49 if ~isempty(si)
50 sValue = get_param(h(si), propName );
51 if ~iscell( sValue )
52 sValue = { sValue };
53 end
54 propValue(si) = sValue;
55 end
56
280 57 if length(h) == 1 && ~iscell(h)
280 58 propValue = propValue{1};
280 59 end