This is a static copy of a profile report

Home

validatestring>checkInputs (Calls: 20, Time: 0.001 s)
Generated 16-Jul-2020 17:09:40 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/lang/validatestring.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
validatestringfunction20
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
196
inputs(1:2) = [];
200.000 s36.4%
192
if ~iscellstr(validStrings) &a...
200.000 s17.3%
190
validStrings = inputs{2};
200.000 s11.7%
189
in = inputs{1};
200.000 s11.2%
197
end
200.000 s1.2%
All other lines  0.000 s22.3%
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 function11
Non-code lines (comments, blank lines)4
Code lines (lines that can run)7
Code lines that did run6
Code lines that did not run1
Coverage (did run/can run)85.71 %
Function listing
time 
Calls 
 line
 187 
function [in, validStrings, inputs] = checkInputs(inputs)
 188 
     
< 0.001 
     20 
 189
    in = inputs{1}; 
< 0.001 
     20 
 190
    validStrings = inputs{2}; 
 191 

< 0.001 
     20 
 192
    if ~iscellstr(validStrings) && ~isstring(validStrings) 
 193 
        error(message('MATLAB:validatestring:invalidStringList'))
< 0.001 
     20 
 194
    end 
 195 

< 0.001 
     20 
 196
    inputs(1:2) = []; 
< 0.001 
     20 
 197
end 

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