This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
151 | if isaLegend && isvali... | 22 | 0.002 s | 65.4% | |
149 | leg = handle(leg); | 22 | 0.000 s | 15.5% | |
153 | end | 22 | 0.000 s | 3.8% | |
148 | tf = false; | 22 | 0.000 s | 0.1% | |
152 | tf = true; | 22 | 0.000 s | 0.1% | |
All other lines | | | 0.000 s | 15.1% | |
Totals | | | 0.002 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
Show coverage for parent directory
Total lines in function | 8 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
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.