This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
table.table>table.initclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
275
t.varDim = t.varDim.createLike...
80.026 s72.2%
274
t.rowDim = t.rowDim.createLike...
80.008 s23.0%
276
t.data(1,1:nvars) = vars; % fo...
80.001 s3.0%
280
end
80.000 s0.0%
273
try
80.000 s0.0%
All other lines  0.001 s1.7%
Totals  0.037 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
varNamesDim>varNamesDim.createLikeclass method80.025 s68.1%
...ension>tabularDimension.createLikeclass method80.007 s17.9%
Self time (built-ins, overhead, etc.)  0.005 s14.0%
Totals  0.037 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)4
Code lines (lines that can run)8
Code lines that did run6
Code lines that did not run2
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
 269 
        function t = initInternals(t, vars, nrows, rowLabels, nvars, varnames)
 270 
            % INITINTERNALS Fills an empty tabular object with data and dimension objects. This
 271 
            % function is for internal use only and will change in a future release.  Do not use
 272 
            % this function.
< 0.001 
      8 
 273
            try 
  0.008 
      8 
 274
                t.rowDim = t.rowDim.createLike(nrows,rowLabels); 
  0.026 
      8 
 275
                t.varDim = t.varDim.createLike(nvars,varnames); % error if invalid, duplicate, or empty 
  0.001 
      8 
 276
                t.data(1,1:nvars) = vars; % force 1xN, and hard error if vars is the wrong length 
 277 
            catch ME
 278 
                throwAsCaller(ME)
< 0.001 
      8 
 279
            end 
< 0.001 
      8 
 280
        end 

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