This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
metaDim>metaDim.metaDimclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
47
obj.labels = obj.orientAs(dimL...
20.000 s46.7%
43
obj.length = dimLength;
20.000 s13.8%
45
if isvector(dimLabels) &&a...
20.000 s12.8%
46
obj.hasLabels = true;
20.000 s9.4%
44
if nargin == 3
20.000 s3.6%
All other lines  0.000 s13.7%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
metaDim>metaDim.orientAsclass method20.000 s14.3%
Self time (built-ins, overhead, etc.)  0.001 s85.7%
Totals  0.001 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function15
Non-code lines (comments, blank lines)5
Code lines (lines that can run)10
Code lines that did run8
Code lines that did not run2
Coverage (did run/can run)80.00 %
Function listing
time 
Calls 
 line
  38 
        function obj = init(obj,dimLength,dimLabels)
  39 
        % INIT is called by both the dimension objects' constructor and
  40 
        % tabular objects' loadobj method. In the latter case, because 
  41 
        % a default dimension object is already constructed, it is faster
  42 
        % to 'initialize' through INIT rather reconstruct a new one
< 0.001 
      2 
  43
            obj.length = dimLength; 
< 0.001 
      2 
  44
            if nargin == 3 
< 0.001 
      2 
  45
                if isvector(dimLabels) && (numel(dimLabels) == dimLength) 
< 0.001 
      2 
  46
                    obj.hasLabels = true; 
< 0.001 
      2 
  47
                    obj.labels = obj.orientAs(dimLabels); 
  48 
                else
  49 
                    obj.throwIncorrectNumberOfLabels();
< 0.001 
      2 
  50
                end 
< 0.001 
      2 
  51
            end 
< 0.001 
      2 
  52
        end 

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