This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
hggetbehavior>localGetsubfunction6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
120
if isprop(handle(h),'Behavior'...
60.001 s37.6%
121
bb = get(h,'Behavior');
60.001 s26.0%
125
if isfield(bb,behavior_name)
60.000 s13.6%
119
ret_h = handle([]);
60.000 s12.3%
127
end
60.000 s2.0%
All other lines  0.000 s8.4%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)3
Code lines (lines that can run)9
Code lines that did run6
Code lines that did not run3
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.