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
Function Name | Function Type | Calls |
tabular.dotParenReference | function | 6 |
tabular.subsrefBraces | function | 278 |
tabular.subsrefParens | function | 139110 |
categorical.subsref | function | 618310 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
19 | obj.codes = parenReference_1D(... | 618310 | 3.989 s | 63.5% | |
21 | obj.codes = parenReference_2D(... | 139394 | 0.994 s | 15.8% | |
25 | end | 757704 | 0.159 s | 2.5% | |
18 | case 1 % 1-D subscripting | 757704 | 0.049 s | 0.8% | |
16 | nsubs = nargin-1; | 757704 | 0.037 s | 0.6% | |
All other lines | 1.054 s | 16.8% | |||
Totals | 6.282 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
parenReference_1D | function | 618310 | 0.790 s | 12.6% | |
parenReference_2D | function | 139394 | 0.348 s | 5.5% | |
Self time (built-ins, overhead, etc.) | 5.143 s | 81.9% | |||
Totals | 6.282 s | 100% |
Total lines in function | 25 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 10 |
Code lines that did run | 7 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 70.00 % |
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 |