This is a static copy of a profile report

Home

TextVariableImportOptions>TextVariableImportOptions.addTypeSpecificOpts (Calls: 5, Time: 0.002 s)
Generated 04-Jun-2021 04:11:19 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\TextVariableImportOptions.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...;VariableImportOptions.makeOptsStructclass method5
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
52
s.(n{:}) = opts.(n{:});
300.001 s32.5%
51
for n = names(:)'
50.000 s24.1%
54
if s.Type=="string"
50.000 s12.2%
53
end
300.000 s12.2%
48
if isempty(names)
50.000 s7.1%
All other lines  0.000 s11.9%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)1
Code lines (lines that can run)16
Code lines that did run9
Code lines that did not run7
Coverage (did run/can run)56.25 %
Function listing
time 
Calls 
 line
  46 
        function s = addTypeSpecificOpts(opts,s)
< 0.001 
      5 
  47
            persistent names 
< 0.001 
      5 
  48
            if isempty(names) 
  49 
                names = setdiff(fieldnames(opts),matlab.io.VariableImportOptions.ProtectedNames);
< 0.001 
      5 
  50
            end 
< 0.001 
      5 
  51
            for n = names(:)' 
< 0.001 
     30 
  52
                s.(n{:}) = opts.(n{:}); 
< 0.001 
     30 
  53
            end 
< 0.001 
      5 
  54
            if s.Type=="string" 
  55 
                c = s.FillValue;
  56 
                if ismissing(c)
  57 
                    s.FillValue = [];
  58 
                else
  59 
                    s.FillValue = char(c);
  60 
                end
< 0.001 
      5 
  61
            end 
< 0.001 
      5 
  62
        end 

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