This is a static copy of a profile report

Home

updateLegendMenuToolbar>isValidColorBarHandleObject (Calls: 22, Time: 0.001 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
159
isaColorBar = isa(cbar,'matlab...
220.001 s48.3%
158
cbar = handle(cbar);
220.000 s22.6%
162
end
220.000 s5.7%
160
if isaColorBar && isva...
220.000 s0.6%
157
tf = false;
220.000 s0.2%
All other lines  0.000 s22.7%
Totals  0.001 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 run5
Code lines that did not run1
Coverage (did run/can run)83.33 %
Function listing
time 
Calls 
 line
 155 
function tf = isValidColorBarHandleObject(cbar)
 156 
% return true if leg is a valid MCOS ColorBar
< 0.001 
     22 
 157
tf = false; 
< 0.001 
     22 
 158
cbar = handle(cbar); 
< 0.001 
     22 
 159
isaColorBar = isa(cbar,'matlab.graphics.illustration.ColorBar'); 
< 0.001 
     22 
 160
if isaColorBar && isvalid(cbar) && strcmp(cbar.BeingDeleted,'off') 
 161 
    tf = true;
< 0.001 
     22 
 162
end 

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