FastVarOpts>FastVarOpts.get.Names (Calls: 20, Time: 0.012 s)
Generated 04-Jun-2021 04:11:17 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\FastVarOpts.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
FastVarOpts>FastVarOpts.getVarOpts | class method | 10 |
...portOptions.get.SelectedVariableNames | class method | 2 |
...ns>ImportOptions.get.VariableNames | class method | 8 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
253 | names(isEmptyName) = matlab.la... | 20 | 0.011 s | 95.3% | |
247 | names = obj.OptionsStruct.Name... | 20 | 0.000 s | 2.0% | |
251 | isEmptyName = (names == ""); | 20 | 0.000 s | 1.0% | |
258 | end | 20 | 0.000 s | 0.1% | |
248 | if isempty(names) | 20 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 1.6% | |||
Totals | 0.012 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
makeUniqueStrings | function | 20 | 0.007 s | 62.8% | |
compose | function | 20 | 0.002 s | 18.9% | |
Self time (built-ins, overhead, etc.) | 0.002 s | 18.3% | |||
Totals | 0.012 s | 100% |
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 11 |
Code lines that did run | 9 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 81.82 % |
time | Calls | line | |
---|---|---|---|
246 | function names = get.Names(obj) | ||
< 0.001 | 20 | 247 | names = obj.OptionsStruct.Names; |
< 0.001 | 20 | 248 | if isempty(names) |
249 | names = {}; | ||
< 0.001 | 20 | 250 | else |
< 0.001 | 20 | 251 | isEmptyName = (names == ""); |
252 | % Only generate custom names on demand. And only modify the custom names to make them unique, not the prescribed names. | ||
0.011 | 20 | 253 | names(isEmptyName) = matlab.lang.makeUniqueStrings(compose('Var%d',find(isEmptyName)),names(~isEmptyName)); |
< 0.001 | 20 | 254 | end |
< 0.001 | 20 | 255 | if isempty(names) |
256 | names = cell(0, 0); | ||
< 0.001 | 20 | 257 | end |
< 0.001 | 20 | 258 | end |
Other subfunctions in this file are not included in this listing.