This is a static copy of a profile report

Home

Function details for hggetbehavior>localPeekThis is a static copy of a profile report

Home

hggetbehavior>localPeek (Calls: 4, Time: 0.002 s)
Generated 02-May-2020 21:54:31 using performance time.
subfunction in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/hggetbehavior.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
hggetbehaviorfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
120
if isprop(handle(h),'Behavior'...
40.001 s27.0%
119
ret_h = handle([]);
40.000 s21.3%
121
bb = get(h,'Behavior');
40.000 s19.3%
125
if isfield(bb,behavior_name)
40.000 s14.4%
124
end
40.000 s0.0%
All other lines  0.000 s18.0%
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 run5
Code lines that did not run4
Coverage (did run/can run)55.56 %
Function listing
time 
Calls 
 line
 116 
function [ret_h] = localPeek(h,behavior_name)
 117 
% Loop through available behavior objects
 118 

< 0.001 
      4 
 119
ret_h = handle([]); 
< 0.001 
      4 
 120
if isprop(handle(h),'Behavior') 
< 0.001 
      4 
 121
    bb = get(h,'Behavior'); 
 122 
else
 123 
    return
< 0.001 
      4 
 124
end 
< 0.001 
      4 
 125
if isfield(bb,behavior_name) 
 126 
    ret_h = bb(1).(behavior_name);
 127 
end

Other subfunctions in this file are not included in this listing.