This is a static copy of a profile report

Home

getExtension (Calls: 2, Time: 0.001 s)
Generated 04-Jun-2021 04:11:06 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\shared\spreadsheet\+matlab\+io\+spreadsheet\+internal\getExtension.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...etectImportOptionsSpreadsheet.executeclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
7
[~,~,ext] = fileparts(filename...
20.000 s42.1%
8
if ~isempty(ext)
20.000 s19.6%
9
ext = ext(2:end);
20.000 s17.1%
13
end
20.000 s0.2%
12
end
20 s0%
All other lines  0.000 s20.9%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
filepartsfunction20.000 s15.6%
Self time (built-ins, overhead, etc.)  0.000 s84.4%
Totals  0.001 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)6
Code lines (lines that can run)7
Code lines that did run5
Code lines that did not run2
Coverage (did run/can run)71.43 %
Function listing
time 
Calls 
 line
   1 
function ext = getExtension(filename)
   2 
%GETEXTENSION Returns the extension for a given filename.  If there is no
   3 
%extension, returns 'xlsx'.
   4 

   5 
% Copyright 2016 The MathWorks, Inc.
   6 

< 0.001 
      2 
   7
[~,~,ext] = fileparts(filename); 
< 0.001 
      2 
   8
if ~isempty(ext) 
< 0.001 
      2 
   9
    ext = ext(2:end); 
  10 
else
  11 
    ext = 'xlsx';
      2 
  12
end 
< 0.001 
      2 
  13
end 

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