This is a static copy of a profile report

Home

SpreadsheetInputs>SingleRecordNumVars (Calls: 2, Time: 0.001 s)
Generated 04-Jun-2021 04:11:22 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+shared\SpreadsheetInputs.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
SpreadsheetInputs>validateRangeclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
297
if nvars < inf && ~...
20.000 s39.1%
288
if strcmp(type,'column-only')
20.000 s0.9%
292
if ~any(rangesize(1) == [-1 1]...
20.000 s0.6%
301
end
20.000 s0.2%
294
end
20.000 s0.1%
All other lines  0.000 s59.1%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function20
Non-code lines (comments, blank lines)10
Code lines (lines that can run)10
Code lines that did run7
Code lines that did not run3
Coverage (did run/can run)70.00 %
Function listing
time 
Calls 
 line
 282 
function SingleRecordNumVars(propname,type,rangesize,nvars)
 283 
% Allowed:
 284 
%   * A single open record range
 285 
%   * The number of variables must match, or be open.
 286 
%   * An exact range.
 287 

< 0.001 
      2 
 288
if strcmp(type,'column-only') 
 289 
    error(message('MATLAB:spreadsheet:importoptions:PropSupportOpenCol',propname));
< 0.001 
      2 
 290
end 
 291 
% must be a single row, or a named range.
< 0.001 
      2 
 292
if ~any(rangesize(1) == [-1 1]) 
 293 
    error(message('MATLAB:spreadsheet:importoptions:SingleRow',propname));
< 0.001 
      2 
 294
end 
 295 
% must match the number of variables, be a start cell, be open-ended (cell/row), or a named range.
 296 

< 0.001 
      2 
 297
if nvars < inf && ~any(rangesize(2) == [nvars 1 -1]) 
 298 
    error(message('MATLAB:spreadsheet:importoptions:VarNumberMismatch',propname));
< 0.001 
      2 
 299
end 
 300 

< 0.001 
      2 
 301
end 

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