This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
tabular.dotParenReferencefunction6
tabular.subsrefBracesfunction278
tabular.subsrefParensfunction139110
categorical.subsreffunction618310
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
19
obj.codes = parenReference_1D(...
6183103.989 s63.5%
21
obj.codes = parenReference_2D(...
1393940.994 s15.8%
25
end
7577040.159 s2.5%
18
case 1 % 1-D subscripting    
7577040.049 s0.8%
16
nsubs = nargin-1;
7577040.037 s0.6%
All other lines  1.054 s16.8%
Totals  6.282 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
parenReference_1Dfunction6183100.790 s12.6%
parenReference_2Dfunction1393940.348 s5.5%
Self time (built-ins, overhead, etc.)  5.143 s81.9%
Totals  6.282 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function25
Non-code lines (comments, blank lines)15
Code lines (lines that can run)10
Code lines that did run7
Code lines that did not run3
Coverage (did run/can run)70.00 %
Function listing
time 
Calls 
 line
   1 
function obj = parenReference(obj,rowIndices,colIndices,varargin)
   2 
%
   3 
% OBJ = PARENREFERENCE(OBJ,LINEARINDICES)
   4 
% OBJ = PARENREFERENCE(OBJ,ROWINDICES,COLINDICES)
   5 
% OBJ = PARENREFERENCE(OBJ,ROWINDICES,COLINDICES,PAGEINDICES,...)
   6 

   7 
%   Copyright 2019-2020 The MathWorks, Inc.
   8 

   9 
% Only simple paren references get here; multi-level paren references like
  10 
% d(i).Property go to subsref.
  11 

  12 
import matlab.internal.datatypes.parenReference_1D;
  13 
import matlab.internal.datatypes.parenReference_2D;
  14 
import matlab.internal.datatypes.parenReference_ND;
  15 

  0.037 
 757704 
  16
nsubs = nargin-1; 
  0.033 
 757704 
  17
switch nsubs 
  0.049 
 757704 
  18
    case 1 % 1-D subscripting     
  3.989 
 618310 
  19
        obj.codes = parenReference_1D(obj.codes, rowIndices); 
  0.007 
 139394 
  20
    case 2 % 2-D subscripting 
  0.994 
 139394 
  21
        obj.codes = parenReference_2D(obj.codes, rowIndices, colIndices); 
  22 
    case 0 % obj() is legal syntax but a no-op - return as is
  23 
    otherwise % >= 3, N-D subscripting
  24 
        obj.codes = parenReference_ND(obj.codes, nsubs, rowIndices, colIndices, varargin);
  0.159 
 757704 
  25
end