This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...rtOptionsSpreadsheet.getOptsFromSheetclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
18
meta.RowNames = supplied.ReadR...
20.000 s20.3%
23
|| (~supplied.ReadVariableName...
20.000 s12.8%
26
meta.VariableNamesRow = 1;
20.000 s9.0%
11
if ~obj.DetectMetaLines
20.000 s8.9%
19
if meta.RowNames
20.000 s7.4%
All other lines  0.001 s41.6%
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)3
Code lines (lines that can run)17
Code lines that did run16
Code lines that did not run1
Coverage (did run/can run)94.12 %
Function listing
time 
Calls 
 line
  10 
        function meta = setMetaLocations(obj, supplied, metarows)
< 0.001 
      2 
  11
            if ~obj.DetectMetaLines 
  12 
                metarows = 0;
< 0.001 
      2 
  13
            end 
< 0.001 
      2 
  14
            meta.DataRow = 1; 
< 0.001 
      2 
  15
            meta.VariableNamesRow = 0; 
< 0.001 
      2 
  16
            meta.RowNamesCol = 0; 
  17 

< 0.001 
      2 
  18
            meta.RowNames = supplied.ReadRowNames && obj.ReadRowNames; 
< 0.001 
      2 
  19
            if meta.RowNames 
< 0.001 
      1 
  20
                meta.RowNamesCol = 1; 
      2 
  21
            end 
< 0.001 
      2 
  22
            meta.VarNames = (supplied.ReadVariableNames && obj.ReadVariableNames)... 
      2 
  23
                || (~supplied.ReadVariableNames && metarows > 0); 
< 0.001 
      2 
  24
            if meta.VarNames 
< 0.001 
      2 
  25
                meta.DataRow = metarows + 1; 
< 0.001 
      2 
  26
                meta.VariableNamesRow = 1; 
< 0.001 
      2 
  27
            end 
  28 

< 0.001 
      2 
  29
        end 

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