This is a static copy of a profile report

Home

validatestring>checkInputs (Calls: 23, 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\validatestring.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
validatestringfunction23
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
196
inputs(1:2) = [];
230.000 s34.5%
192
if ~iscellstr(validStrings) &a...
230.000 s21.7%
190
validStrings = inputs{2};
230.000 s13.8%
189
in = inputs{1};
230.000 s13.6%
197
end
230.000 s1.2%
All other lines  0.000 s15.2%
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 
     23 
 189
    in = inputs{1}; 
< 0.001 
     23 
 190
    validStrings = inputs{2}; 
 191 

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

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

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