This is a static copy of a profile report

Home

FastVarOpts>FastVarOpts.getVarOpts (Calls: 10, Time: 0.050 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\FastVarOpts.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...>ImportOptions.get.VariableOptionsclass method10
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
162
opts(kk) = getTypedOpts(type,a...
300.028 s54.9%
165
theNames = obj.Names(idx);
100.012 s23.2%
166
[opts(1:numel(idx)).Name] = th...
100.005 s9.6%
145
opts = matlab.io.TextVariableI...
100.004 s8.4%
161
args = C{idx(kk)};
300.000 s0.8%
All other lines  0.002 s3.0%
Totals  0.050 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
FastVarOpts>getTypedOptsclass method300.026 s51.9%
FastVarOpts>FastVarOpts.get.Namesclass method100.011 s22.1%
...portOptions.TextVariableImportOptionsclass method100.003 s6.6%
VarOptsInputs>VarOptsInputs.set.Nameclass method300.002 s3.0%
Self time (built-ins, overhead, etc.)  0.008 s16.4%
Totals  0.050 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function24
Non-code lines (comments, blank lines)3
Code lines (lines that can run)21
Code lines that did run17
Code lines that did not run4
Coverage (did run/can run)80.95 %
Function listing
time 
Calls 
 line
 144 
        function opts = getVarOpts(obj,idx)
  0.004 
     10 
 145
            opts = matlab.io.TextVariableImportOptions().empty(); 
< 0.001 
     10 
 146
            C = obj.OptionsStruct.Options; 
< 0.001 
     10 
 147
            if nargin < 2 
< 0.001 
     10 
 148
                idx = 1:numel(C); 
 149 
            else
 150 
                idx = obj.fixSelection(idx);
< 0.001 
     10 
 151
            end 
 152 
            
< 0.001 
     10 
 153
            if ~obj.NeedsUniformCheck && numel(C) > 0 
 154 
                % just get one and Repmat
 155 
                type = obj.OptionsStruct.Types{idx(1)};
 156 
                opts = repmat(getTypedOpts(type,C{idx(1)}),1,numel(idx));
< 0.001 
     10 
 157
            else 
< 0.001 
     10 
 158
                types = obj.OptionsStruct.Types; 
< 0.001 
     10 
 159
                for kk = 1:numel(idx) 
< 0.001 
     30 
 160
                    type = types{idx(kk)}; 
< 0.001 
     30 
 161
                    args = C{idx(kk)}; 
  0.028 
     30 
 162
                    opts(kk) = getTypedOpts(type,args); 
< 0.001 
     30 
 163
                end 
< 0.001 
     10 
 164
            end 
  0.012 
     10 
 165
            theNames = obj.Names(idx); 
  0.005 
     10 
 166
            [opts(1:numel(idx)).Name] = theNames{:}; 
< 0.001 
     10 
 167
        end 

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