This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...etectImportOptionsSpreadsheet.executeclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
44
obj.SheetObj = obj.WorkbookObj...
20.000 s62.3%
43
if isempty(sheetNameOrNum) || ...
20.000 s12.4%
48
end
20.000 s0.5%
47
end
20.000 s0.0%
All other lines  0.000 s24.7%
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 function7
Non-code lines (comments, blank lines)1
Code lines (lines that can run)6
Code lines that did run4
Code lines that did not run2
Coverage (did run/can run)66.67 %
Function listing
time 
Calls 
 line
  42 
        function openSheet(obj,sheetNameOrNum)
< 0.001 
      2 
  43
            if isempty(sheetNameOrNum) || numel(obj.WorkbookObj.SheetNames) == 1 
< 0.001 
      2 
  44
                obj.SheetObj = obj.WorkbookObj.getSheet(1); 
  45 
            else
  46 
                obj.SheetObj = obj.WorkbookObj.getSheet(sheetNameOrNum);
< 0.001 
      2 
  47
            end 
< 0.001 
      2 
  48
        end 

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