This is a static copy of a profile report

Home

table.table>table.init (Calls: 2, Time: 0.031 s)
Generated 04-Jun-2021 04:11:17 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\tabular\@table\table.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
ReadTable>ReadTable.buildTableFromDataclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
404
t = t.initInternals(vars, numR...
20.018 s59.6%
406
t.metaDim = t.metaDim.setLabel...
20.006 s18.6%
409
t.metaDim = t.metaDim.checkAga...
20.004 s12.8%
403
t = table();
20.002 s6.3%
410
end
20.000 s1.0%
All other lines  0.001 s1.7%
Totals  0.031 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
tabular.tabular>tabular.initInternalsclass method20.018 s58.0%
...mension>tabularDimension.setLabelsclass method20.005 s17.2%
metaDim>metaDim.checkAgainstVarLabelsclass method20.003 s10.9%
table.table>table.tableclass method20.001 s3.8%
Self time (built-ins, overhead, etc.)  0.003 s10.1%
Totals  0.031 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function19
Non-code lines (comments, blank lines)8
Code lines (lines that can run)11
Code lines that did run10
Code lines that did not run1
Coverage (did run/can run)90.91 %
Function listing
time 
Calls 
 line
 395 
        function t = init(vars, numRows, rowNames, numVars, varNames, dimNames)
 396 
            % This function is for internal use only and will change in a future release.
 397 
            % Do not use this function.
 398 
            
< 0.001 
      2 
 399
            try %#ok<ALIGN> 
 400 
            
 401 
            % INIT creates a table from data and metadata.  It bypasses the input parsing
 402 
            % done by the constructor, but still checks the metadata.
  0.002 
      2 
 403
            t = table(); 
  0.018 
      2 
 404
            t = t.initInternals(vars, numRows, rowNames, numVars, varNames); 
< 0.001 
      2 
 405
            if nargin == 6 
  0.006 
      2 
 406
                t.metaDim = t.metaDim.setLabels(dimNames); 
< 0.001 
      2 
 407
            end 
< 0.001 
      2 
 408
            if numVars > 0 
  0.004 
      2 
 409
                t.metaDim = t.metaDim.checkAgainstVarLabels(t.varDim.labels); 
< 0.001 
      2 
 410
            end 
 411 
            
 412 
            catch ME, throwAsCaller(ME); end
< 0.001 
      2 
 413
        end 

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