This is a static copy of a profile report

Home

ImportOptions.ImportOptions>ImportOptions.set.VariableTypes (Calls: 2, Time: 0.034 s)
Generated 04-Jun-2021 04:11:20 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\@ImportOptions\ImportOptions.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...rtOptionsSpreadsheet.getOptsFromSheetclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
132
obj.fast_var_opts = vopts.setT...
20.033 s96.9%
127
n = vopts.numVars;
20.001 s2.3%
126
vopts = obj.fast_var_opts;
20.000 s0.3%
133
end
20.000 s0.0%
129
if numel(types) ~= n
20.000 s0.0%
All other lines  0.000 s0.5%
Totals  0.034 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
FastVarOpts>FastVarOpts.setTypesclass method20.032 s94.7%
FastVarOpts>FastVarOpts.numVarsclass method20.000 s1.1%
Self time (built-ins, overhead, etc.)  0.001 s4.2%
Totals  0.034 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function9
Non-code lines (comments, blank lines)1
Code lines (lines that can run)8
Code lines that did run7
Code lines that did not run1
Coverage (did run/can run)87.50 %
Function listing
time 
Calls 
 line
 125 
        function obj = set.VariableTypes(obj,types)
< 0.001 
      2 
 126
            vopts = obj.fast_var_opts; 
< 0.001 
      2 
 127
            n = vopts.numVars; 
< 0.001 
      2 
 128
            if ischar(types), types = {types}; end 
< 0.001 
      2 
 129
            if numel(types) ~= n 
 130 
                error(message('MATLAB:textio:io:ExpectedCellStrSize',n))
< 0.001 
      2 
 131
            end 
  0.033 
      2 
 132
            obj.fast_var_opts = vopts.setTypes(1:n,types(:)); 
< 0.001 
      2 
 133
        end 

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