This is a static copy of a profile report

Home

AcceptsSheetNameOrNumber>AcceptsSheetNameOrNumber.get.Sheet (Calls: 8, Time: 0.004 s)
Generated 04-Jun-2021 04:11:08 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\io\spreadsheet\+matlab\+io\+internal\+functions\AcceptsSheetNameOrNumber.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...etectImportOptionsSpreadsheet.executeclass method4
...rtOptionsSpreadsheet.getOptsFromSheetclass method2
...hImportOptionsSpreadsheet.executeImplclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
31
containsOpts = any(strcmp(fiel...
80.002 s56.6%
33
if containsOpts && any...
80.001 s19.6%
34
&& strcmp(func.Sheet,'...
60.000 s6.2%
41
end
80.000 s4.7%
37
val = func.Options.Sheet;
60.000 s3.4%
All other lines  0.000 s9.5%
Totals  0.004 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)5
Code lines (lines that can run)12
Code lines that did run10
Code lines that did not run2
Coverage (did run/can run)83.33 %
Function listing
time 
Calls 
 line
  30 
        function val = get.Sheet(func)
  0.002 
      8 
  31
            containsOpts = any(strcmp(fieldnames(func),"Options")); 
< 0.001 
      8 
  32
            try 
< 0.001 
      8 
  33
                if containsOpts && any(strcmp(fieldnames(func.Options),"Sheet")) ... 
      6 
  34
                        && strcmp(func.Sheet,'') 
  35 
                    % if the Options object is well-formed and Sheet has
  36 
                    % been initialized properly
< 0.001 
      6 
  37
                    val = func.Options.Sheet; 
      2 
  38
                else 
  39 
                    % if the Sheet was supplied via NV pairs
< 0.001 
      2 
  40
                    val = func.Sheet; 
< 0.001 
      8 
  41
                end 
  42 
            catch
  43 
                % If the Options object is not well-formed
  44 
                val = func.Sheet;
< 0.001 
      8 
  45
            end 
< 0.001 
      8 
  46
        end 

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