This is a static copy of a profile report

Home

validateNVPairs (Calls: 2, Time: 0.002 s)
Generated 04-Jun-2021 04:11:05 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+validators\validateNVPairs.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...ExecutableFunction.validateAndExecuteclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
17
for v = varargin(1:2:end)
20.001 s32.4%
18
if ~isNonEmptyScalarText(v{1})
10.000 s29.7%
21
end
10.000 s5.4%
22
end
20.000 s0.2%
13
if mod(nargin,2)~=0
20.000 s0.0%
All other lines  0.001 s32.3%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
validateNVPairs>isNonEmptyScalarTextsubfunction10.000 s20.0%
Self time (built-ins, overhead, etc.)  0.001 s80.0%
Totals  0.002 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function22
Non-code lines (comments, blank lines)13
Code lines (lines that can run)9
Code lines that did run7
Code lines that did not run2
Coverage (did run/can run)77.78 %
Function listing
time 
Calls 
 line
   1 
function validateNVPairs(varargin)
   2 
%Common checks for name-value pair validitiy
   3 
% matlab.io.internal.validators.validateNVPairs(Name1,Value1,...)
   4 
%   will error if the number of arguments is odd--I.e. when there aren't
   5 
%   values for each of the names--and when any of the names are not
   6 
%   non-empty scalar text elements.
   7 
%
   8 
% See Also matlab.io.internal.validators.FunctionInterface,
   9 
%          matlab.io.internal.validators.struct2args
  10 

  11 
% Copyright 2018 The MathWorks, Inc.
  12 

< 0.001 
      2 
  13
if mod(nargin,2)~=0 
  14 
    error(message('MATLAB:textio:textio:OddNumberNVPairs'));
< 0.001 
      2 
  15
end 
  16 

< 0.001 
      2 
  17
for v = varargin(1:2:end) 
< 0.001 
      1 
  18
    if ~isNonEmptyScalarText(v{1}) 
  19 
        error(message('MATLAB:InputParser:ParamMustBeChar'));
< 0.001 
      1 
  20
    end 
< 0.001 
      1 
  21
end 
< 0.001 
      2 
  22
end 

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