This is a static copy of a profile reportHome
warningWithoutTrace (Calls: 2, Time: 0.001 s)
Generated 04-Jun-2021 04:11:16 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\shared\matlab_datatypes\+matlab\+internal\+datatypes\warningWithoutTrace.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 |
10 | warning(msg); | 2 | 0.001 s | 70.3% |  |
7 | warnState = warning('off', 'ba... | 2 | 0.000 s | 10.6% |  |
13 | warning(warnState); | 2 | 0.000 s | 9.9% |  |
All other lines | | | 0.000 s | 9.2% |  |
Totals | | | 0.001 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
Show coverage for parent directory
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 3 |
Code lines that did run | 3 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time | Calls | line |
---|
| | 1 | function warningWithoutTrace(msg)
|
| | 2 | %WARNWITHOUTTRACE Throw a warning without displaying the back trace.
|
| | 3 |
|
| | 4 | % Copyright 2014-2020 The MathWorks, Inc.
|
| | 5 |
|
| | 6 | % Store the warning state.
|
< 0.001 | 2 | 7 | warnState = warning('off', 'backtrace');
|
| | 8 |
|
| | 9 | % Issue a warning.
|
< 0.001 | 2 | 10 | warning(msg);
|
| | 11 |
|
| | 12 | % Restore the warning state.
|
< 0.001 | 2 | 13 | warning(warnState);
|
Other subfunctions in this file are not included in this listing.