This is a static copy of a profile report

Home

attributes>valueAttributor (Calls: 2, Time: 0.001 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
...ctedScalartext',msgId,argname,argpos)anonymous function2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
197
passedValidation = fcn(A);
20.001 s74.7%
211
end
20.000 s0.4%
204
if ~passedValidation
20.000 s0.0%
203
end
20.000 s0.0%
196
try
20.000 s0.0%
All other lines  0.000 s24.8%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...|(ischar(x)&&size(x,1)<=1)anonymous function20.000 s41.1%
Self time (built-ins, overhead, etc.)  0.000 s58.9%
Totals  0.001 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function18
Non-code lines (comments, blank lines)3
Code lines (lines that can run)15
Code lines that did run6
Code lines that did not run9
Coverage (did run/can run)40.00 %
Function listing
time 
Calls 
 line
 194 
function valueAttributor( fcn, A, attrName, fname, id, msgId, argname, argpos)
 195 

< 0.001 
      2 
 196
try 
< 0.001 
      2 
 197
    passedValidation = fcn(A); 
 198 
catch e
 199 
    if e.identifier ~= "MATLAB:UndefinedFunction"
 200 
        rethrow(e);
 201 
    end
 202 
    passedValidation = false;
< 0.001 
      2 
 203
end 
< 0.001 
      2 
 204
if ~passedValidation 
 205 
    argDes = matlab.internal.validators.getArgumentDescriptor( msgId, argname, argpos );
 206 
    attributeDes = getString(message( ['MATLAB:validateattributes:' attrName] ) );
 207 
    error( matlab.internal.validators.generateId( fname, id ), '%s', ...
 208 
        getString(message('MATLAB:validateattributes:expected', argDes, attributeDes)) )
< 0.001 
      2 
 209
end 
 210 

< 0.001 
      2 
 211
end 

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