AcceptsReadableFilename>AcceptsReadableFilename.validateFilename (Calls: 2, Time: 0.026 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\+functions\AcceptsReadableFilename.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
...;AcceptsReadableFilename.set.Filename | class method | 2 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
47 | [fn, exts] = matlab.io.interna... | 2 | 0.021 s | 78.8% | |
51 | path = fileparts(fn{1}); | 2 | 0.003 s | 11.5% | |
52 | if isempty(path) || isfolder(f... | 2 | 0.002 s | 8.6% | |
46 | if obj.LegacyFilenameValidatio... | 2 | 0.000 s | 0.4% | |
55 | end | 2 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 0.6% | |||
Totals | 0.026 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
validateFileName | function | 2 | 0.019 s | 71.4% | |
fileparts | function | 2 | 0.003 s | 10.7% | |
fullfile | function | 2 | 0.002 s | 6.0% | |
ReadTable>ReadTable.getExtensions | class method | 2 | 0.001 s | 4.8% | |
pwd | function | 2 | 0.000 s | 0.1% | |
Self time (built-ins, overhead, etc.) | 0.002 s | 7.0% | |||
Totals | 0.026 s | 100% |
Total lines in function | 11 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 10 |
Code lines that did run | 7 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 70.00 % |
time | Calls | line | |
---|---|---|---|
45 | function [fn,exts] = validateFilename(obj,filename) | ||
< 0.001 | 2 | 46 | if obj.LegacyFilenameValidation |
0.021 | 2 | 47 | [fn, exts] = matlab.io.internal.validators.validateFileName(filename, obj.getExtensions()); |
48 | else | ||
49 | [fn, exts] = matlab.io.internal.validators.validateFileName(filename); | ||
< 0.001 | 2 | 50 | end |
0.003 | 2 | 51 | path = fileparts(fn{1}); |
0.002 | 2 | 52 | if isempty(path) || isfolder(fullfile(pwd,path)) |
53 | fn{1} = fullfile(pwd,fn{1}); | ||
< 0.001 | 2 | 54 | end |
< 0.001 | 2 | 55 | end |
Other subfunctions in this file are not included in this listing.