This is a static copy of a profile report

Home

mustBeFinite (Calls: 6, Time: 0.001 s)
Generated 18-May-2021 16:05:26 using performance time.
function in file /usr/local/MATLAB/R2021a/toolbox/matlab/validators/mustBeFinite.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...lugin>PostUpdatePlugin.doCacheLoadclass method2
...>AxesToolbarButton.setStandardIconclass method4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
14
if ~all(isfinite(A),'all')
60.000 s67.4%
17
end
60.000 s3.1%
16
end
60.000 s2.0%
All other lines  0.000 s27.5%
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 function17
Non-code lines (comments, blank lines)13
Code lines (lines that can run)4
Code lines that did run3
Code lines that did not run1
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
   1 
function mustBeFinite(A)
   2 
%MUSTBEFINITE Validate that value is finite
   3 
%   MUSTBEFINITE(A) throws an error if A contains nonfinite values.
   4 
%   MATLAB calls isfinite to determine if A is finite.
   5 
%
   6 
%   Class support:
   7 
%   All numeric classes, logical, char
   8 
%   MATLAB classes that define a isfinite method.
   9 
%    
  10 
%   See also ISFINITE.
  11 

  12 
%   Copyright 2019-2020 The MathWorks, Inc.
  13 

< 0.001 
      6 
  14
    if ~all(isfinite(A),'all') 
  15 
        throwAsCaller(createValidatorException('MATLAB:validators:mustBeFinite'));
< 0.001 
      6 
  16
    end 
< 0.001 
      6 
  17
end 

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