This is a static copy of a profile report

Home

SpreadsheetInputs>SpreadsheetInputs.setSheet (Calls: 4, Time: 0.004 s)
Generated 04-Jun-2021 04:11:21 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
...gt;AcceptsSheetNameOrNumber.set.Sheetclass method4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
182
if n < 0 || n > 31 || an...
40.003 s80.2%
180
elseif ischar(rhs) && ...
40.000 s5.5%
189
if isempty(rhs)
40.000 s2.9%
177
rhs = convertStringsToChars(rh...
40.000 s2.5%
192
end
40.000 s0.0%
All other lines  0.000 s8.8%
Totals  0.004 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
ismemberfunction40.003 s72.0%
Self time (built-ins, overhead, etc.)  0.001 s28.0%
Totals  0.004 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
 176 
        function [rhs,obj] = setSheet(obj,rhs)
< 0.001 
      4 
 177
            rhs = convertStringsToChars(rhs); 
< 0.001 
      4 
 178
            if isnumeric(rhs) && isscalar(rhs) && rhs > 0 && floor(rhs)==rhs 
 179 
                % nothing needed
< 0.001 
      4 
 180
            elseif ischar(rhs) && (isrow(rhs) || isempty(rhs)) 
< 0.001 
      4 
 181
                n = numel(rhs); 
  0.003 
      4 
 182
                if n < 0 || n > 31 || any(ismember(rhs,':\/?*[]')) 
 183 
                    error(message('MATLAB:spreadsheet:book:invalidSheetName'));
< 0.001 
      4 
 184
                end 
 185 
            else
 186 
                error(message('MATLAB:spreadsheet:importoptions:BadSheet'));
< 0.001 
      4 
 187
            end 
 188 
            
< 0.001 
      4 
 189
            if isempty(rhs) 
< 0.001 
      4 
 190
                rhs = ''; 
< 0.001 
      4 
 191
            end 
< 0.001 
      4 
 192
        end 

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