This is a static copy of a profile report

Home

tabularDimension>tabularDimension.createLike (Calls: 22, Time: 0.023 s)
Generated 04-Jun-2021 04:11:17 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
tabular.tabular>tabular.initInternalsclass method10
varNamesDim>varNamesDim.createLikeclass method12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
67
obj = obj.setLabels(dimLabels,...
200.020 s87.1%
61
obj.labels = obj.emptyLabels(d...
20.001 s5.5%
57
obj.length = dimLength;
220.001 s4.0%
59
if obj.hasLabels
20.000 s0.5%
58
if nargin < 3
220.000 s0.3%
All other lines  0.001 s2.6%
Totals  0.023 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...mension>tabularDimension.setLabelsclass method200.019 s82.1%
...nsion>tabularDimension.emptyLabelsclass method20.001 s3.9%
Self time (built-ins, overhead, etc.)  0.003 s14.0%
Totals  0.023 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)3
Code lines (lines that can run)12
Code lines that did run9
Code lines that did not run3
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
  55 
        function obj = createLike(obj,dimLength,dimLabels)
  56 
            %CREATELIKE Create a tabularDimension of the same kind as an existing one.
< 0.001 
     22 
  57
            obj.length = dimLength; 
< 0.001 
     22 
  58
            if nargin < 3 
< 0.001 
      2 
  59
                if obj.hasLabels 
  60 
                    % These are invalid empty labels that must be filled in later.
  0.001 
      2 
  61
                    obj.labels = obj.emptyLabels(dimLength);  
  62 
                else
  63 
                    obj.hasLabels = false;
  64 
                    obj.labels = obj.labels([]);
< 0.001 
      2 
  65
                end 
< 0.001 
     20 
  66
            else 
  0.020 
     20 
  67
                obj = obj.setLabels(dimLabels,[]); 
< 0.001 
     22 
  68
            end 
< 0.001 
     22 
  69
        end 

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