This is a static copy of a profile report

Home

VarOptsInputs>VarOptsInputs.set.Name (Calls: 30, Time: 0.002 s)
Generated 04-Jun-2021 04:11:21 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+shared\VarOptsInputs.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
FastVarOpts>FastVarOpts.getVarOptsclass method30
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
57
obj.Name_ = char(rhs);
300.001 s43.7%
46
if ~(isstring(rhs) && ...
300.000 s12.3%
52
stringLength = strlength(rhs);
300.000 s9.7%
45
rhs = convertCharsToStrings(rh...
300.000 s9.4%
58
end
300.000 s1.0%
All other lines  0.000 s23.9%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
57The set method for the property 'Name' should not access another property ('Name_').
Coverage results
Show coverage for parent directory
Total lines in function15
Non-code lines (comments, blank lines)5
Code lines (lines that can run)10
Code lines that did run8
Code lines that did not run2
Coverage (did run/can run)80.00 %
Function listing
time 
Calls 
 line
  44 
        function obj = set.Name(obj,rhs)
< 0.001 
     30 
  45
            rhs = convertCharsToStrings(rhs); 
< 0.001 
     30 
  46
            if ~(isstring(rhs) && isscalar(rhs)) 
  47 
                error(message('MATLAB:textio:textio:InvalidStringProperty','Name'));
< 0.001 
     30 
  48
            end 
  49 

  50 
            % Make sure that the Variable Options name is non-empty and
  51 
            % not greater than namelengthmax.
< 0.001 
     30 
  52
            stringLength = strlength(rhs); 
< 0.001 
     30 
  53
            if stringLength == 0 || stringLength > namelengthmax 
  54 
                error(message('MATLAB:table:VariableNameNotValidIdentifier', rhs));
< 0.001 
     30 
  55
            end 
  56 

< 0.001 
     30 
  57
            obj.Name_ = char(rhs); 
< 0.001 
     30 
  58
        end 

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