This is a static copy of a profile report

Home

TextVarOptsInputs>TextVarOptsInputs.setType (Calls: 15, Time: 0.001 s)
Generated 04-Jun-2021 04:11:08 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+shared\TextVarOptsInputs.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
46
val = validatestring(val,{'cha...
150.001 s78.7%
57
end
150.000 s0.4%
56
end
150.000 s0.1%
45
try
150.000 s0.1%
All other lines  0.000 s20.8%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
validatestringfunction150.001 s59.9%
Self time (built-ins, overhead, etc.)  0.000 s40.1%
Totals  0.001 s100% 
Code Analyzer results
Line numberMessage
48This import statement runs before any other code in function 'setType'. Consider placing it at the top of the function body.
Coverage results
Show coverage for parent directory
Total lines in function14
Non-code lines (comments, blank lines)3
Code lines (lines that can run)11
Code lines that did run4
Code lines that did not run7
Coverage (did run/can run)36.36 %
Function listing
time 
Calls 
 line
  44 
        function val = setType(obj,val)
< 0.001 
     15 
  45
        try 
< 0.001 
     15 
  46
            val = validatestring(val,{'char','string'}); 
  47 
        catch ME
  48 
            import matlab.io.internal.supportedTypeNames
  49 
            if strcmp(ME.identifier,'MATLAB:unrecognizedStringChoice') && any(strcmp(supportedTypeNames,val))
  50 
                % additional information to help with debugging
  51 
                newMsg = ['\n\n',getString(message('MATLAB:textio:io:Setdatatype')), '\n', ...
  52 
                    getString(message('MATLAB:textio:io:SetvartypeSyntax',obj.Name,val))];
  53 
                throw(MException('MATLAB:unrecognizedStringChoice',[ME.message, newMsg]));
  54 
            end
  55 
            throw(ME);
< 0.001 
     15 
  56
        end 
< 0.001 
     15 
  57
        end 

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