This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
varNamesDim>varNamesDim.makeValidNameclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
10
warning(msg);
20.001 s70.3%
7
warnState = warning('off', 'ba...
20.000 s10.6%
13
warning(warnState);
20.000 s9.9%
All other lines  0.000 s9.2%
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 function13
Non-code lines (comments, blank lines)10
Code lines (lines that can run)3
Code lines that did run3
Code lines that did not run0
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.