This is a static copy of a profile report

Home

NumericVarOptsInputs>NumericVarOptsInputs.setType (Calls: 15, Time: 0.001 s)
Generated 04-Jun-2021 04:11:18 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+shared\NumericVarOptsInputs.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
VarOptsInputs>VarOptsInputs.set.Typeclass method15
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
85
|| ~any(strcmp(val,...
150.000 s22.3%
84
if ~(isstring(val) && ...
150.000 s22.1%
99
val = char(val);
150.000 s13.6%
83
val = convertCharsToStrings(va...
150.000 s13.6%
100
end
150.000 s1.2%
All other lines  0.000 s27.1%
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 function20
Non-code lines (comments, blank lines)7
Code lines (lines that can run)13
Code lines that did run6
Code lines that did not run7
Coverage (did run/can run)46.15 %
Function listing
time 
Calls 
 line
  81 
        function val = setType(obj,val)
  82 
        import matlab.io.internal.supportedTypeNames
< 0.001 
     15 
  83
        val = convertCharsToStrings(val); 
< 0.001 
     15 
  84
        if ~(isstring(val) && isscalar(val)) ... 
     15 
  85
                || ~any(strcmp(val,... 
  86 
                {'double','single',...
  87 
                'int8','uint8',...
  88 
                'int16','uint16',...
  89 
                'int32','uint32',...
  90 
                'int64','uint64','auto'}))
  91 
            if any(strcmp(supportedTypeNames,val))
  92 
                newMsg = [getString(message('MATLAB:textio:io:NumericType')), ...
  93 
                    '\n\n',getString(message('MATLAB:textio:io:Setdatatype')), '\n', ...
  94 
                    getString(message('MATLAB:textio:io:SetvartypeSyntax',obj.Name,val))];
  95 
                throw(MException('MATLAB:textio:io:StaticOptionsType',newMsg));
  96 
            end
  97 
            error(message('MATLAB:textio:io:NumericType'));
< 0.001 
     15 
  98
        end 
< 0.001 
     15 
  99
        val = char(val); 
< 0.001 
     15 
 100
        end 

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