This is a static copy of a profile report

Home

DetectImportOptions>DetectImportOptions.validate (Calls: 2, Time: 0.068 s)
Generated 04-Jun-2021 04:11:05 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\io\functions\+matlab\+io\+internal\+functions\DetectImportOptions.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
ReadTable>ReadTable.validateclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
46
validate@matlab.io.internal.fu...
20.042 s62.5%
54
func.FileType = matlab.io.inte...
20.017 s25.0%
43
[func,varargin] = getFileTypeF...
20.008 s11.4%
53
if ~supplied.FileType
20.000 s0.2%
48
if (supplied.Range || supplied...
20.000 s0.2%
All other lines  0.000 s0.7%
Totals  0.068 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...nction>ExecutableFunction.validateclass method20.042 s61.4%
...eType>AcceptsFileType.set.FileTypeclass method20.015 s22.5%
...e>AcceptsFileType.getFileTypeFirstclass method20.007 s10.6%
...leExtensions.getFileTypeFromExtensionclass method20.000 s0.6%
Self time (built-ins, overhead, etc.)  0.003 s4.8%
Totals  0.068 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)7
Code lines (lines that can run)10
Code lines that did run9
Code lines that did not run1
Coverage (did run/can run)90.00 %
Function listing
time 
Calls 
 line
  40 
        function [func, supplied, additionalArgs] = validate(func,varargin)
  41 
            % Need to set FileType before validating the file name so we
  42 
            % will pick the correct set of extensions to match against.
  0.008 
      2 
  43
            [func,varargin] = getFileTypeFirst(func,varargin); 
  44 
            
  0.042 
      2 
  45
            [func, supplied, additionalArgs] = ... 
      2 
  46
                validate@matlab.io.internal.functions.ExecutableFunction(func,varargin{:}); 
  47 
            
< 0.001 
      2 
  48
            if (supplied.Range || supplied.DataRange) && supplied.NumHeaderLines 
  49 
                error(message('MATLAB:spreadsheet:sheet:RangeAndHeaderLines'));
< 0.001 
      2 
  50
            end 
  51 
            
  52 
            % without an extension, or an explicit FileType, error
< 0.001 
      2 
  53
            if ~supplied.FileType 
  0.017 
      2 
  54
                func.FileType = matlab.io.internal.DetectImportOptionsFileExtensions.getFileTypeFromExtension(func.Extension); 
< 0.001 
      2 
  55
            end 
< 0.001 
      2 
  56
        end 

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