readSpreadsheet>readVariableMetadata (Calls: 2, Time: 0.003 s)
Generated 04-Jun-2021 04:11:19 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\io\spreadsheet\+matlab\+io\+spreadsheet\+internal\readSpreadsheet.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
readSpreadsheet | function | 2 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
238 | names = matlab.io.spreadsheet.... | 2 | 0.001 s | 51.2% | |
237 | vopts = matlab.io.TextVariable... | 2 | 0.001 s | 27.7% | |
236 | range = matlab.io.spreadsheet.... | 2 | 0.000 s | 7.6% | |
234 | range = sheet.getRange(loc,fal... | 2 | 0.000 s | 5.3% | |
239 | end | 2 | 0.000 s | 1.0% | |
All other lines | 0.000 s | 7.2% | |||
Totals | 0.003 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
readSpreadsheetVariable | function | 2 | 0.001 s | 31.6% | |
...portOptions.TextVariableImportOptions | class method | 2 | 0.001 s | 20.0% | |
VarOptsInputs>VarOptsInputs.get.Type | class method | 2 | 0.000 s | 2.1% | |
subRange | function | 2 | 0.000 s | 1.0% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 45.3% | |||
Totals | 0.003 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 | 8 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 72.73 % |
time | Calls | line | |
---|---|---|---|
227 | function names = readVariableMetadata(sheet,loc,numVars) | ||
< 0.001 | 2 | 228 | if isnumeric(loc) && isscalar(loc) |
229 | % Row number | ||
230 | range = sheet.getRange(sheet.usedRange,false); | ||
231 | range(1) = loc; | ||
232 | range(3) = 1; | ||
< 0.001 | 2 | 233 | else |
< 0.001 | 2 | 234 | range = sheet.getRange(loc,false); |
< 0.001 | 2 | 235 | end |
< 0.001 | 2 | 236 | range = matlab.io.spreadsheet.internal.subRange(range,1:numVars); |
< 0.001 | 2 | 237 | vopts = matlab.io.TextVariableImportOptions(); |
0.001 | 2 | 238 | names = matlab.io.spreadsheet.internal.readSpreadsheetVariable(vopts.Type,vopts,sheet,range,sheet.types(range)); |
< 0.001 | 2 | 239 | end |
Other subfunctions in this file are not included in this listing.