This is a static copy of a profile reportHome
hggetbehavior>localPeek (Calls: 6, Time: 0.002 s)
Generated 18-May-2021 16:05:25 using performance time.
subfunction in file /usr/local/MATLAB/R2021a/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 |
| 120 | if isprop(handle(h),'Behavior'... | 6 | 0.001 s | 37.6% |  |
| 121 | bb = get(h,'Behavior'); | 6 | 0.001 s | 26.0% |  |
| 125 | if isfield(bb,behavior_name) | 6 | 0.000 s | 13.6% |  |
| 119 | ret_h = handle([]); | 6 | 0.000 s | 12.3% |  |
| 127 | end | 6 | 0.000 s | 2.0% |  |
| All other lines | | | 0.000 s | 8.4% |  |
| Totals | | | 0.002 s | 100% | |
Children (called functions)
No childrenCode 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 | 6 |
| Code lines that did not run | 3 |
| Coverage (did run/can run) | 66.67 % |
Function listing
time | Calls | line |
|---|
| | 116 | function [ret_h] = localPeek(h,behavior_name)
|
| | 117 | % Loop through available behavior objects
|
| | 118 |
|
< 0.001 | 6 | 119 | ret_h = handle([]);
|
< 0.001 | 6 | 120 | if isprop(handle(h),'Behavior')
|
< 0.001 | 6 | 121 | bb = get(h,'Behavior');
|
| | 122 | else
|
| | 123 | return
|
< 0.001 | 6 | 124 | end
|
< 0.001 | 6 | 125 | if isfield(bb,behavior_name)
|
| | 126 | ret_h = bb(1).(behavior_name);
|
< 0.001 | 6 | 127 | end
|
Other subfunctions in this file are not included in this listing.