This is a static copy of a profile report

Home

tabularDimension>tabularDimension.createLike (Calls: 16, Time: 0.029 s)
Generated 16-Jul-2020 17:09:53 using performance time.
class method in file /Applications/MATLAB_R2020a.app/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 method8
varNamesDim>varNamesDim.createLikeclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
67
obj = obj.setLabels(dimLabels,...
160.028 s94.1%
57
obj.length = dimLength;
160.001 s3.7%
69
end
160.000 s0.1%
58
if nargin < 3
160.000 s0.0%
66
else
160.000 s0.0%
All other lines  0.001 s2.1%
Totals  0.029 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...mension>tabularDimension.setLabelsclass method160.026 s88.6%
Self time (built-ins, overhead, etc.)  0.003 s11.4%
Totals  0.029 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 run6
Code lines that did not run6
Coverage (did run/can run)50.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 
     16 
  57
            obj.length = dimLength; 
< 0.001 
     16 
  58
            if nargin < 3 
  59 
                if obj.hasLabels
  60 
                    % These are invalid empty labels that must be filled in later.
  61 
                    obj.labels = obj.emptyLabels(dimLength); 
  62 
                else
  63 
                    obj.hasLabels = false;
  64 
                    obj.labels = obj.labels([]);
  65 
                end
< 0.001 
     16 
  66
            else 
  0.028 
     16 
  67
                obj = obj.setLabels(dimLabels,[]); 
< 0.001 
     16 
  68
            end 
< 0.001 
     16 
  69
        end 

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