This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
readSpreadsheetfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
238
names = matlab.io.spreadsheet....
20.001 s51.2%
237
vopts = matlab.io.TextVariable...
20.001 s27.7%
236
range = matlab.io.spreadsheet....
20.000 s7.6%
234
range = sheet.getRange(loc,fal...
20.000 s5.3%
239
end
20.000 s1.0%
All other lines  0.000 s7.2%
Totals  0.003 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
readSpreadsheetVariablefunction20.001 s31.6%
...portOptions.TextVariableImportOptionsclass method20.001 s20.0%
VarOptsInputs>VarOptsInputs.get.Typeclass method20.000 s2.1%
subRangefunction20.000 s1.0%
Self time (built-ins, overhead, etc.)  0.001 s45.3%
Totals  0.003 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)2
Code lines (lines that can run)11
Code lines that did run8
Code lines that did not run3
Coverage (did run/can run)72.73 %
Function listing
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.