This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...Type>AcceptsFileType.getExtensionsclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
25
exts = matlab.io.internal.File...
20.000 s35.7%
24
case ''
20.000 s16.5%
22
type = convertStringsToChars(l...
20.000 s12.3%
23
switch(type)
20.000 s6.8%
35
end
20.000 s0.5%
All other lines  0.000 s28.2%
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 function15
Non-code lines (comments, blank lines)1
Code lines (lines that can run)14
Code lines that did run6
Code lines that did not run8
Coverage (did run/can run)42.86 %
Function listing
time 
Calls 
 line
  21 
        function exts = getExtensionsFromType(type)
< 0.001 
      2 
  22
            type = convertStringsToChars(lower(type)); 
< 0.001 
      2 
  23
            switch(type) 
< 0.001 
      2 
  24
                case '' 
< 0.001 
      2 
  25
                    exts = matlab.io.internal.FileExtensions.AllExtensions; 
  26 
                case {'text','delimitedtext','fixedwidth'}
  27 
                    exts = matlab.io.internal.FileExtensions.TextExtensions;
  28 
                case 'spreadsheet'
  29 
                    exts = matlab.io.internal.FileExtensions.SpreadsheetExtensions;
  30 
                case 'xml'
  31 
                    exts = matlab.io.internal.FileExtensions.XMLExtensions;
  32 
                otherwise
  33 
                    assert(false,"Not a valid file type");
< 0.001 
      2 
  34
            end 
< 0.001 
      2 
  35
        end 

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