This is a static copy of a profile report

Home

attributes>checkInputs (Calls: 2, Time: 0.003 s)
Generated 04-Jun-2021 04:11:07 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\lang\+matlab\+internal\+validators\attributes.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
attributesfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
442
inputs(4:end), 'validateattrib...
20.003 s84.4%
433
elseif ~iscellstr( classes )
20.000 s4.8%
423
attrs = inputs{3};
20.000 s2.9%
421
A = inputs{1};
20.000 s1.8%
422
classes = inputs{2};
20.000 s1.7%
All other lines  0.000 s4.4%
Totals  0.003 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
generateArgumentDescriptorfunction20.002 s65.5%
Self time (built-ins, overhead, etc.)  0.001 s34.5%
Totals  0.003 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function26
Non-code lines (comments, blank lines)7
Code lines (lines that can run)19
Code lines that did run12
Code lines that did not run7
Coverage (did run/can run)63.16 %
Function listing
time 
Calls 
 line
 419 
function [ A, classes, attrs, fname, msgId, argname, argpos ]  = checkInputs( inputs )
 420 

< 0.001 
      2 
 421
A = inputs{1}; 
< 0.001 
      2 
 422
classes = inputs{2}; 
< 0.001 
      2 
 423
attrs = inputs{3}; 
 424 

< 0.001 
      2 
 425
if (isstring(classes)) 
 426 
    if any(ismissing(classes))
 427 
        error(message('MATLAB:validateattributes:missingValueInClassList'))
 428 
    end
 429 
    
 430 
    classes = cellstr(classes);
< 0.001 
      2 
 431
elseif ischar(classes) 
 432 
    classes = {classes};
< 0.001 
      2 
 433
elseif ~iscellstr( classes ) 
 434 
    error(message('MATLAB:validateattributes:badClassList'))
< 0.001 
      2 
 435
end 
 436 

< 0.001 
      2 
 437
if ~iscell( attrs ) 
 438 
    error( message('MATLAB:validateattributes:badAttributeList') ) 
< 0.001 
      2 
 439
end 
 440 

  0.003 
      2 
 441
[ fname, msgId, argname, argpos ] = matlab.internal.validators.generateArgumentDescriptor( ... 
      2 
 442
    inputs(4:end), 'validateattributes' ); 
 443 

< 0.001 
      2 
 444
end 

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