This is a static copy of a profile reportHome
hggetbehavior>localPeek (Calls: 90, Time: 0.014 s)
Generated 16-Jul-2020 17:09:26 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/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 | bb = get(h,'Behavior'); | 90 | 0.006 s | 40.3% | |
120 | if isprop(handle(h),'Behavior'... | 90 | 0.003 s | 20.4% | |
119 | ret_h = handle([]); | 90 | 0.002 s | 11.2% | |
125 | if isfield(bb,behavior_name) | 90 | 0.001 s | 9.9% | |
127 | end | 90 | 0.001 s | 7.1% | |
All other lines | | | 0.002 s | 11.1% | |
Totals | | | 0.014 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 | 7 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 77.78 % |
Function listing
time | Calls | line |
---|
| | 116 | function [ret_h] = localPeek(h,behavior_name)
|
| | 117 | % Loop through available behavior objects
|
| | 118 |
|
0.002 | 90 | 119 | ret_h = handle([]);
|
0.003 | 90 | 120 | if isprop(handle(h),'Behavior')
|
0.006 | 90 | 121 | bb = get(h,'Behavior');
|
| | 122 | else
|
| | 123 | return
|
< 0.001 | 90 | 124 | end
|
0.001 | 90 | 125 | if isfield(bb,behavior_name)
|
< 0.001 | 14 | 126 | ret_h = bb(1).(behavior_name);
|
< 0.001 | 90 | 127 | end
|
Other subfunctions in this file are not included in this listing.