This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
7 | [~,~,ext] = fileparts(filename... | 2 | 0.000 s | 42.1% |  |
8 | if ~isempty(ext) | 2 | 0.000 s | 19.6% |  |
9 | ext = ext(2:end); | 2 | 0.000 s | 17.1% |  |
13 | end | 2 | 0.000 s | 0.2% |  |
12 | end | 2 | 0 s | 0% |  |
All other lines | | | 0.000 s | 20.9% |  |
Totals | | | 0.001 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
fileparts | function | 2 | 0.000 s | 15.6% |  |
Self time (built-ins, overhead, etc.) | | | 0.000 s | 84.4% |  |
Totals | | | 0.001 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
Show coverage for parent directory
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 7 |
Code lines that did run | 5 |
Code lines that did not run | 2 |
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.