This is a static copy of a profile report

Home

readSpreadsheet>readRowNames (Calls: 1, 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
readSpreadsheetfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
256
names = matlab.io.spreadsheet....
10.002 s68.3%
255
vopts = matlab.io.TextVariable...
10.000 s12.0%
246
[range,type] = sheet.getRange(...
10.000 s5.7%
250
range([1 3]) = dataRange([1 3]...
10.000 s4.0%
249
elseif strcmp(type,'column-onl...
10.000 s1.9%
All other lines  0.000 s8.1%
Totals  0.003 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
readSpreadsheetVariablefunction10.002 s50.0%
...portOptions.TextVariableImportOptionsclass method10.000 s6.9%
VarOptsInputs>VarOptsInputs.get.Typeclass method10.000 s0.7%
Self time (built-ins, overhead, etc.)  0.001 s42.3%
Totals  0.003 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)3
Code lines (lines that can run)14
Code lines that did run11
Code lines that did not run3
Coverage (did run/can run)78.57 %
Function listing
time 
Calls 
 line
 241 
function names = readRowNames(sheet,loc,dataRange)
< 0.001 
      1 
 242
    if isnumeric(loc) && isscalar(loc) 
 243 
        % Column Number, get the used range, and select the column
 244 
        range([1 3 2 4]) = [dataRange([1 3]) loc 1];
      1 
 245
    else 
< 0.001 
      1 
 246
        [range,type] = sheet.getRange(loc,false); 
< 0.001 
      1 
 247
        if strcmp(type,'single-cell') 
 248 
            range(3) = dataRange(3);
< 0.001 
      1 
 249
        elseif strcmp(type,'column-only') 
< 0.001 
      1 
 250
            range([1 3]) = dataRange([1 3]); 
 251 
        else
 252 
            % will error if it's not correct.
< 0.001 
      1 
 253
        end 
< 0.001 
      1 
 254
    end 
< 0.001 
      1 
 255
    vopts = matlab.io.TextVariableImportOptions(); 
  0.002 
      1 
 256
    names = matlab.io.spreadsheet.internal.readSpreadsheetVariable(vopts.Type,vopts,sheet,range,sheet.types(range)); 
< 0.001 
      1 
 257
end 

Other subfunctions in this file are not included in this listing.