This is a static copy of a profile report

Home

tabular.tabular>tabular.initInternals (Calls: 10, Time: 0.026 s)
Generated 04-Jun-2021 04:11:17 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\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 method2
table.table>table.tableclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
276
t.varDim = t.varDim.createLike...
100.016 s59.4%
275
t.rowDim = t.rowDim.createLike...
100.009 s35.0%
277
t.data(1,1:nvars) = vars; % fo...
100.001 s3.2%
281
end
100.000 s0.0%
274
try
100.000 s0.0%
All other lines  0.001 s2.3%
Totals  0.026 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
varNamesDim>varNamesDim.createLikeclass method100.015 s55.6%
...ension>tabularDimension.createLikeclass method100.008 s31.5%
Self time (built-ins, overhead, etc.)  0.003 s12.9%
Totals  0.026 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
 270 
        function t = initInternals(t, vars, nrows, rowLabels, nvars, varnames)
 271 
            % INITINTERNALS Fills an empty tabular object with data and dimension objects. This
 272 
            % function is for internal use only and will change in a future release.  Do not use
 273 
            % this function.
< 0.001 
     10 
 274
            try 
  0.009 
     10 
 275
                t.rowDim = t.rowDim.createLike(nrows,rowLabels); 
  0.016 
     10 
 276
                t.varDim = t.varDim.createLike(nvars,varnames); % error if invalid, duplicate, or empty 
< 0.001 
     10 
 277
                t.data(1,1:nvars) = vars; % force 1xN, and hard error if vars is the wrong length 
 278 
            catch ME
 279 
                throwAsCaller(ME)
< 0.001 
     10 
 280
            end 
< 0.001 
     10 
 281
        end 

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