This is a static copy of a profile report

Home

tabular.matchPropertyName (Calls: 8, Time: 0.002 s)
Generated 16-Jul-2020 17:09:56 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/tabular/@tabular/matchPropertyName.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
6
if ~matlab.internal.datatypes....
80.001 s57.9%
13
j = find(strcmp(name,propertyN...
80.000 s13.8%
21
name = propertyNames{j};
80.000 s10.2%
10
if nargin < 2 || ~exact
80.000 s0.1%
15
if isempty(j)
80.000 s0.0%
All other lines  0.000 s18.0%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
isScalarTextfunction80.001 s27.8%
Self time (built-ins, overhead, etc.)  0.002 s72.2%
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 run10
Code lines that did not run4
Coverage (did run/can run)71.43 %
Function listing
time 
Calls 
 line
   1 
function name = matchPropertyName(name,propertyNames,exact)
   2 
%MATCHPROPERTYNAME Validate a table property name.
   3 

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

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

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

< 0.001 
      8 
  21
name = propertyNames{j}; 

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