This is a static copy of a profile report

Home

varNamesDim>varNamesDim.selectFrom (Calls: 38264, Time: 1.071 s)
Generated 04-Jun-2021 04:11:12 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\tabular\+matlab\+internal\+tabular\+private\varNamesDim.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...mension>tabularDimension.subs2indsclass method38264
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
200
obj = obj.selectFrom@matlab.in...
382640.847 s79.1%
204
if obj.hasDescrs, obj.descrs =...
382640.165 s15.4%
215
end
382640.006 s0.6%
205
if obj.hasUnits, obj.units = o...
382640.005 s0.4%
207
if obj.hasCustomProps
382640.004 s0.4%
All other lines  0.044 s4.1%
Totals  1.071 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...ension>tabularDimension.selectFromclass method382640.811 s75.7%
Self time (built-ins, overhead, etc.)  0.260 s24.3%
Totals  1.071 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function19
Non-code lines (comments, blank lines)6
Code lines (lines that can run)13
Code lines that did run7
Code lines that did not run6
Coverage (did run/can run)53.85 %
Function listing
time 
Calls 
 line
 197 
        function obj = selectFrom(obj,toSelect)
 198 
            %SELECTFROM Return a subset of a tableDimProps for the specified indices.
 199 
            % The indices might be out of order or repeated, that's OK.
  0.847 
  38264 
 200
            obj = obj.selectFrom@matlab.internal.tabular.private.tabularDimension(toSelect); 
 201 
            
 202 
            % Var-based or properties need to be selected. Make sure they stay
 203 
            % row vectors, even if selectFrom is empty.
  0.165 
  38264 
 204
            if obj.hasDescrs, obj.descrs = obj.descrs(1,toSelect); end 
  0.005 
  38264 
 205
            if obj.hasUnits, obj.units = obj.units(1,toSelect); end 
  0.003 
  38264 
 206
            if obj.hasContinuity, obj.continuity = obj.continuity(1,toSelect); end 
  0.004 
  38264 
 207
            if obj.hasCustomProps 
 208 
                p = fieldnames(obj.customProps);
 209 
                for i = 1:numel(p)
 210 
                    if ~isempty(obj.customProps.(p{i})) % leave alone props that are []
 211 
                        obj.customProps.(p{i}) = obj.customProps.(p{i})(1,toSelect);
 212 
                    end
 213 
                end
  0.001 
  38264 
 214
            end 
  0.006 
  38264 
 215
        end 

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