This is a static copy of a profile reportHome
TextVariableImportOptions>TextVariableImportOptions.addTypeSpecificOpts (Calls: 5, Time: 0.002 s)
Generated 04-Jun-2021 04:11:19 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\TextVariableImportOptions.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 |
52 | s.(n{:}) = opts.(n{:}); | 30 | 0.001 s | 32.5% |  |
51 | for n = names(:)' | 5 | 0.000 s | 24.1% |  |
54 | if s.Type=="string" | 5 | 0.000 s | 12.2% |  |
53 | end | 30 | 0.000 s | 12.2% |  |
48 | if isempty(names) | 5 | 0.000 s | 7.1% |  |
All other lines | | | 0.000 s | 11.9% |  |
Totals | | | 0.002 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
Show coverage for parent directory
Total lines in function | 17 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 16 |
Code lines that did run | 9 |
Code lines that did not run | 7 |
Coverage (did run/can run) | 56.25 % |
Function listing
time | Calls | line |
---|
| | 46 | function s = addTypeSpecificOpts(opts,s)
|
< 0.001 | 5 | 47 | persistent names
|
< 0.001 | 5 | 48 | if isempty(names)
|
| | 49 | names = setdiff(fieldnames(opts),matlab.io.VariableImportOptions.ProtectedNames);
|
< 0.001 | 5 | 50 | end
|
< 0.001 | 5 | 51 | for n = names(:)'
|
< 0.001 | 30 | 52 | s.(n{:}) = opts.(n{:});
|
< 0.001 | 30 | 53 | end
|
< 0.001 | 5 | 54 | if s.Type=="string"
|
| | 55 | c = s.FillValue;
|
| | 56 | if ismissing(c)
|
| | 57 | s.FillValue = [];
|
| | 58 | else
|
| | 59 | s.FillValue = char(c);
|
| | 60 | end
|
< 0.001 | 5 | 61 | end
|
< 0.001 | 5 | 62 | end
|
Other subfunctions in this file are not included in this listing.