This is a static copy of a profile report

Home

updateLegendMenuToolbar>isValidLegendHandleObject (Calls: 22, Time: 0.002 s)
Generated 16-Jul-2020 17:09:21 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/illustration/+matlab/+graphics/+illustration/+internal/updateLegendMenuToolbar.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
updateLegendMenuToolbarfunction22
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
151
if isaLegend && isvali...
220.002 s65.4%
149
leg = handle(leg);
220.000 s15.5%
153
end
220.000 s3.8%
148
tf = false;
220.000 s0.1%
152
tf = true;
220.000 s0.1%
All other lines  0.000 s15.1%
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 function8
Non-code lines (comments, blank lines)2
Code lines (lines that can run)6
Code lines that did run6
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 146 
function tf = isValidLegendHandleObject(leg)
 147 
% return true if leg is a valid MCOS Legend
< 0.001 
     22 
 148
tf = false; 
< 0.001 
     22 
 149
leg = handle(leg); 
< 0.001 
     22 
 150
isaLegend = isa(leg,'matlab.graphics.illustration.Legend'); 
  0.002 
     22 
 151
if isaLegend && isvalid(leg) && strcmp(leg.BeingDeleted,'off') 
< 0.001 
     22 
 152
    tf = true; 
< 0.001 
     22 
 153
end 

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