This is a static copy of a profile report

Home

rowNamesDim>rowNamesDim.makeValidName (Calls: 8, Time: 0.003 s)
Generated 16-Jul-2020 17:09:50 using performance time.
class method in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/tabular/+matlab/+internal/+tabular/+private/rowNamesDim.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...t;rowNamesDim.validateAndAssignLabelsclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
224
checkReservedNames(names);
80.002 s70.4%
221
if strcmp(modException,'error'...
80.000 s9.7%
225
modified = false(size(names));
80.000 s9.2%
244
end
80.000 s0.3%
223
if ischar(names), names = { na...
80.000 s0.1%
All other lines  0.000 s10.3%
Totals  0.003 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...Dim>rowNamesDim.checkReservedNamesclass method80.002 s55.4%
Self time (built-ins, overhead, etc.)  0.001 s44.6%
Totals  0.003 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function34
Non-code lines (comments, blank lines)11
Code lines (lines that can run)23
Code lines that did run7
Code lines that did not run16
Coverage (did run/can run)30.43 %
Function listing
time 
Calls 
 line
 211 
        function [validNames, modified] = makeValidName(names, modException)
 212 
            %MAKEVALIDNAME Construct valid table row names. The only row
 213 
            %   not allowed is ':' to avoid ambiguous subscripting.
 214 
            %
 215 
            %   MODEXCEPTION controls warning or error response when NAMES
 216 
            %   contains invalid names. Valid values for MODEXCEPTION are
 217 
            %   'silent' and 'error'.
 218 
            import matlab.internal.datatypes.warningWithoutTrace;
 219 
            import matlab.internal.tabular.private.rowNamesDim.checkReservedNames;
 220 

< 0.001 
      8 
 221
            if strcmp(modException,'error') 
< 0.001 
      8 
 222
                validNames = names; % return the originals, or possibly error 
< 0.001 
      8 
 223
                if ischar(names), names = { names }; end % unusual case, not optimized 
  0.002 
      8 
 224
                checkReservedNames(names); 
< 0.001 
      8 
 225
                modified = false(size(names)); 
 226 
            else % make names valid
 227 
                validNames = names;
 228 
                conflicted = checkReservedNames(names);
 229 
                if any(conflicted)
 230 
                    validNames(conflicted) = matlab.lang.makeUniqueStrings(validNames(conflicted), validNames,namelengthmax);
 231 
                end
 232 
                modified = conflicted;
 233 
                if any(modified)
 234 
                    switch modException % error or warn per level specified
 235 
                        case 'silent'
 236 
                            % Only used by readtable
 237 
                        case 'warn' % Only used by loadobj
 238 
                            warningWithoutTrace(message('MATLAB:table:RowNameReservedBackCompat'));
 239 
                        otherwise
 240 
                            assert(false);
 241 
                    end
 242 
                end
< 0.001 
      8 
 243
            end 
< 0.001 
      8 
 244
        end 

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