This is a static copy of a profile report

Home

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

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
8
if any(strcmpi(ext,matlab.io.i...
20.000 s68.2%
17
end
20.000 s0.3%
9
filetype = 'spreadsheet';
20.000 s0.1%
16
end
20.000 s0.0%
All other lines  0.000 s31.4%
Totals  0.000 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function11
Non-code lines (comments, blank lines)1
Code lines (lines that can run)10
Code lines that did run4
Code lines that did not run6
Coverage (did run/can run)40.00 %
Function listing
time 
Calls 
 line
   7 
        function filetype = getFileTypeFromExtension(ext)
< 0.001 
      2 
   8
            if any(strcmpi(ext,matlab.io.internal.FileExtensions.SpreadsheetExtensions)) 
< 0.001 
      2 
   9
                filetype = 'spreadsheet'; 
  10 
            elseif any(strcmpi(ext,matlab.io.internal.FileExtensions.XMLExtensions))
  11 
                error(message('MATLAB:textio:detectImportOptions:UnrecognizedExtension',ext));
  12 
            elseif isempty(ext) || any(strcmpi(ext, matlab.io.internal.FileExtensions.TextExtensions))
  13 
                filetype = 'text';
  14 
            else
  15 
                error(message('MATLAB:textio:detectImportOptions:UnrecognizedExtension',ext));
< 0.001 
      2 
  16
            end 
< 0.001 
      2 
  17
        end 

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