This is a static copy of a profile report

Home

tabular.matchPropertyName (Calls: 18, Time: 0.002 s)
Generated 04-Jun-2021 04:11:11 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\tabular\@tabular\matchPropertyName.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
6
if ~matlab.internal.datatypes....
180.001 s48.9%
13
j = find(matches(propertyNames...
160.000 s12.9%
21
name = propertyNames{j};
180.000 s9.8%
11
j = find(strncmpi(name,propert...
20.000 s9.8%
10
if nargin < 2 || ~exact
180.000 s7.9%
All other lines  0.000 s10.8%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
isScalarTextfunction180.000 s28.9%
Self time (built-ins, overhead, etc.)  0.001 s71.1%
Totals  0.002 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function21
Non-code lines (comments, blank lines)7
Code lines (lines that can run)14
Code lines that did run11
Code lines that did not run3
Coverage (did run/can run)78.57 %
Function listing
time 
Calls 
 line
   1 
function name = matchPropertyName(name,propertyNames,exact)
   2 
%MATCHPROPERTYNAME Validate a table property name.
   3 

   4 
%   Copyright 2012-2019 The MathWorks, Inc.
   5 

< 0.001 
     18 
   6
if ~matlab.internal.datatypes.isScalarText(name) 
   7 
    error(message('MATLAB:table:InvalidPropertyName'));
< 0.001 
     18 
   8
end 
   9 

< 0.001 
     18 
  10
if nargin < 2 || ~exact 
< 0.001 
      2 
  11
    j = find(strncmpi(name,propertyNames,length(name))); 
< 0.001 
     16 
  12
else 
< 0.001 
     16 
  13
    j = find(matches(propertyNames,name)); 
< 0.001 
     18 
  14
end 
< 0.001 
     18 
  15
if isempty(j) 
  16 
    error(message('MATLAB:table:UnknownProperty', name));
< 0.001 
     18 
  17
elseif ~isscalar(j) 
  18 
    error(message('MATLAB:table:AmbiguousProperty', name));
< 0.001 
     18 
  19
end 
  20 

< 0.001 
     18 
  21
name = propertyNames{j}; 

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