This is a static copy of a profile report

Home

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

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
15
a_arrayProps.TableCustomProper...
40.001 s55.8%
6
if isempty(a_arrayProps.Descri...
40.000 s14.1%
9
if isempty(a_arrayProps.UserDa...
40.000 s12.9%
12
if isempty(a_arrayProps.TableC...
40.000 s8.2%
17
end
40.000 s0.3%
All other lines  0.000 s8.7%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...ayProps>mergeNonemptyScalarStructssubfunction40.000 s30.8%
Self time (built-ins, overhead, etc.)  0.001 s69.2%
Totals  0.001 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)5
Code lines (lines that can run)12
Code lines that did run9
Code lines that did not run3
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
   1 
function a_arrayProps = mergeArrayProps(a_arrayProps,b_arrayProps)
   2 
% Use b's per-array property values where a's were empty.
   3 

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

< 0.001 
      4 
   6
if isempty(a_arrayProps.Description) && ~isempty(b_arrayProps.Description) 
   7 
    a_arrayProps.Description = b_arrayProps.Description;
< 0.001 
      4 
   8
end 
< 0.001 
      4 
   9
if isempty(a_arrayProps.UserData) && ~isempty(b_arrayProps.UserData) 
  10 
    a_arrayProps.UserData = b_arrayProps.UserData;
< 0.001 
      4 
  11
end 
< 0.001 
      4 
  12
if isempty(a_arrayProps.TableCustomProperties) && ~isempty(b_arrayProps.TableCustomProperties) 
  13 
    a_arrayProps.TableCustomProperties = b_arrayProps.TableCustomProperties;
< 0.001 
      4 
  14
else % Merge custom properties structs 
< 0.001 
      4 
  15
    a_arrayProps.TableCustomProperties = mergeNonemptyScalarStructs(a_arrayProps.TableCustomProperties,b_arrayProps.TableCustomProperties); 
< 0.001 
      4 
  16
end 
< 0.001 
      4 
  17
end 

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