This is a static copy of a profile report

Home

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)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
121
bb = get(h,'Behavior');
900.006 s40.3%
120
if isprop(handle(h),'Behavior'...
900.003 s20.4%
119
ret_h = handle([]);
900.002 s11.2%
125
if isfield(bb,behavior_name)
900.001 s9.9%
127
end
900.001 s7.1%
All other lines  0.002 s11.1%
Totals  0.014 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 run7
Code lines that did not run2
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.