This is a static copy of a profile report

Home

rowNamesDim>rowNamesDim.lengthenTo (Calls: 785, Time: 0.005 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\rowNamesDim.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
tabular.subsasgnDotfunction785
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
84
obj.length = maxIndex;
7850.003 s55.7%
66
if obj.hasLabels
7850.000 s6.1%
85
end
7850.000 s4.3%
62
if nargin < 3
7850.000 s2.7%
71
end
7850.000 s1.1%
All other lines  0.002 s30.2%
Totals  0.005 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function25
Non-code lines (comments, blank lines)8
Code lines (lines that can run)17
Code lines that did run6
Code lines that did not run11
Coverage (did run/can run)35.29 %
Function listing
time 
Calls 
 line
  61 
        function obj = lengthenTo(obj,maxIndex,newLabels)
< 0.001 
    785 
  62
            if nargin < 3 
  63 
                % If the table has row names, create default names for the new rows, making sure
  64 
                % they don't conflict with existing names. If the table has no row names, leave
  65 
                % them that way.
< 0.001 
    785 
  66
                if obj.hasLabels 
  67 
                    newIndices = (obj.length+1):maxIndex; % don't create this unless needed
  68 
                    newLabels = obj.dfltLabels(newIndices);
  69 
                    newLabels = matlab.lang.makeUniqueStrings(newLabels,obj.labels);
  70 
                    obj.labels(newIndices,1) = newLabels(:);
< 0.001 
    785 
  71
                end 
  72 
            else
  73 
                % If the original table doesn't have row names, create default names.
  74 
                if ~obj.hasLabels
  75 
                    obj.labels = obj.dfltLabels(1:obj.length);
  76 
                    obj.hasLabels = true;
  77 
                end
  78 
                
  79 
                % Assume that newLabels has already been checked by validateNativeSubscripts,
  80 
                % and that the new names don't conflict with existing names.
  81 
                newIndices = (obj.length+1):maxIndex; % don't create this unless needed
  82 
                obj.labels(newIndices,1) = newLabels(:)';
< 0.001 
    785 
  83
            end 
  0.003 
    785 
  84
            obj.length = maxIndex; 
< 0.001 
    785 
  85
        end 

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