This is a static copy of a profile report

Home

table.table>table.init (Calls: 8, Time: 0.065 s)
Generated 16-Jul-2020 17:09:49 using performance time.
class method in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/tabular/@table/table.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
array2tablefunction8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
404
t = t.initInternals(vars, numR...
80.038 s59.0%
409
t.metaDim = t.metaDim.checkAga...
80.020 s31.6%
403
t = table();
80.005 s8.0%
410
end
80.000 s0.4%
408
if numVars > 0
80.000 s0.3%
All other lines  0.001 s0.8%
Totals  0.065 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
tabular.tabular>tabular.initInternalsclass method80.037 s56.6%
metaDim>metaDim.checkAgainstVarLabelsclass method80.019 s29.1%
table.table>table.tableclass method80.003 s5.2%
Self time (built-ins, overhead, etc.)  0.006 s9.1%
Totals  0.065 s100% 
Code Analyzer results
No Code Analyzer messages.
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 run9
Code lines that did not run2
Coverage (did run/can run)81.82 %
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 
      8 
 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.005 
      8 
 403
            t = table(); 
  0.038 
      8 
 404
            t = t.initInternals(vars, numRows, rowNames, numVars, varNames); 
< 0.001 
      8 
 405
            if nargin == 6 
 406 
                t.metaDim = t.metaDim.setLabels(dimNames);
< 0.001 
      8 
 407
            end 
< 0.001 
      8 
 408
            if numVars > 0 
  0.020 
      8 
 409
                t.metaDim = t.metaDim.checkAgainstVarLabels(t.varDim.labels); 
< 0.001 
      8 
 410
            end 
 411 
            
 412 
            catch ME, throwAsCaller(ME); end
< 0.001 
      8 
 413
        end 

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