This is a static copy of a profile reportHome
hggetbehavior>localPeek (21675 calls, 4.886 sec)
Generated 05-Aug-2011 13:02:34 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/hggetbehavior.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 |
121 | if isprop(handle(h),'Behavior'... | 21675 | 3.771 s | 77.2% |  |
122 | bb = get(h,'Behavior'); | 21675 | 0.448 s | 9.2% |  |
126 | if isfield(bb,behavior_name) | 21675 | 0.251 s | 5.1% |  |
120 | ret_h = handle([]); | 21675 | 0.197 s | 4.0% |  |
All other lines | | | 0.219 s | 4.5% |  |
Totals | | | 4.886 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
isprop | function | 21675 | 3.279 s | 67.1% |  |
Self time (built-ins, overhead, etc.) | | | 1.607 s | 32.9% |  |
Totals | | | 4.886 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 9 |
Code lines that did run | 4 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 44.44 % |
Function listing
time calls line
117 function [ret_h] = localPeek(h,behavior_name)
118 % Loop through available behavior objects
119
0.20 21675 120 ret_h = handle([]);
3.77 21675 121 if isprop(handle(h),'Behavior')
0.45 21675 122 bb = get(h,'Behavior');
123 else
124 return
125 end
0.25 21675 126 if isfield(bb,behavior_name)
127 ret_h = bb(1).(behavior_name);
128 end