This is a static copy of a profile reportHome
isMOTW (Calls: 4, Time: 0.009 s)
Generated 16-Jul-2020 17:08:39 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/toolstrip/+matlab/+ui/+internal/+desktop/isMOTW.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 |
8 | flag = strcmp(mls.internal.fea... | 4 | 0.008 s | 90.0% | |
12 | warning(status); | 4 | 0.000 s | 4.3% | |
5 | status = warning('query'); | 4 | 0.000 s | 3.9% | |
7 | try | 4 | 0.000 s | 0.0% | |
11 | end | 4 | 0.000 s | 0.0% | |
All other lines | | | 0.000 s | 1.8% | |
Totals | | | 0.009 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
feature | function | 4 | 0.008 s | 84.5% | |
Self time (built-ins, overhead, etc.) | | | 0.001 s | 15.5% | |
Totals | | | 0.009 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
Show coverage for parent directory
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 7 |
Code lines that did run | 5 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 71.43 % |
Function listing
time | Calls | line |
---|
| | 1 | function flag = isMOTW()
|
| | 2 | % isMOTW returns true if MATLAB session is in the MATLAB Online mode
|
| | 3 |
|
| | 4 | % must store warning status for reset afterwards
|
< 0.001 | 4 | 5 | status = warning('query');
|
| | 6 | % must use catch because connector might not be on
|
< 0.001 | 4 | 7 | try
|
0.008 | 4 | 8 | flag = strcmp(mls.internal.feature('graphicsAndGuis','status'),'on');
|
| | 9 | catch
|
| | 10 | flag = false;
|
< 0.001 | 4 | 11 | end
|
< 0.001 | 4 | 12 | warning(status);
|
Other subfunctions in this file are not included in this listing.