AcceptsFileType>AcceptsFileType.set.FileType (Calls: 2, Time: 0.015 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\+functions\AcceptsFileType.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
...tions>DetectImportOptions.validate | class method | 2 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
96 | func.FileType = char(validates... | 2 | 0.015 s | 96.7% | |
95 | rhs = strip(string(rhs)); | 2 | 0.000 s | 1.0% | |
92 | if ~isCorrectString &&... | 2 | 0.000 s | 0.6% | |
91 | isCorrectChar = ischar(rhs) &a... | 2 | 0.000 s | 0.5% | |
98 | end | 2 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 1.2% | |||
Totals | 0.015 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
validatestring | function | 2 | 0.014 s | 91.3% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 8.7% | |||
Totals | 0.015 s | 100% |
Line number | Message |
Total lines in function | 11 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 9 |
Code lines that did run | 7 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 77.78 % |
time | Calls | line | |
---|---|---|---|
88 | function func = set.FileType(func,rhs) | ||
< 0.001 | 2 | 89 | isCorrectString = isstring(rhs) && isscalar(rhs) && ... |
90 | ~ismissing(rhs) && rhs ~= ""; | ||
< 0.001 | 2 | 91 | isCorrectChar = ischar(rhs) && ~isempty(rhs); |
< 0.001 | 2 | 92 | if ~isCorrectString && ~isCorrectChar |
93 | error(message("MATLAB:textio:textio:IncorrectTypeFileType")); | ||
< 0.001 | 2 | 94 | end |
< 0.001 | 2 | 95 | rhs = strip(string(rhs)); |
0.015 | 2 | 96 | func.FileType = char(validatestring(rhs,func.SupportedFileTypes, ... |
97 | "","'FileType'")); | ||
< 0.001 | 2 | 98 | end |
Other subfunctions in this file are not included in this listing.