This is a static copy of a profile report

Home

FastVarOpts>FastVarOpts.get.Names (Calls: 20, Time: 0.012 s)
Generated 04-Jun-2021 04:11:17 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\FastVarOpts.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
FastVarOpts>FastVarOpts.getVarOptsclass method10
...portOptions.get.SelectedVariableNamesclass method2
...ns>ImportOptions.get.VariableNamesclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
253
names(isEmptyName) = matlab.la...
200.011 s95.3%
247
names = obj.OptionsStruct.Name...
200.000 s2.0%
251
isEmptyName = (names == "");
200.000 s1.0%
258
end
200.000 s0.1%
248
if isempty(names)
200.000 s0.0%
All other lines  0.000 s1.6%
Totals  0.012 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
makeUniqueStringsfunction200.007 s62.8%
composefunction200.002 s18.9%
Self time (built-ins, overhead, etc.)  0.002 s18.3%
Totals  0.012 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)2
Code lines (lines that can run)11
Code lines that did run9
Code lines that did not run2
Coverage (did run/can run)81.82 %
Function listing
time 
Calls 
 line
 246 
        function names = get.Names(obj)
< 0.001 
     20 
 247
            names = obj.OptionsStruct.Names; 
< 0.001 
     20 
 248
            if isempty(names) 
 249 
                names = {};
< 0.001 
     20 
 250
            else 
< 0.001 
     20 
 251
                isEmptyName = (names == ""); 
 252 
                % Only generate custom names on demand. And only modify the custom names to make them unique, not the prescribed names.
  0.011 
     20 
 253
                names(isEmptyName) = matlab.lang.makeUniqueStrings(compose('Var%d',find(isEmptyName)),names(~isEmptyName)); 
< 0.001 
     20 
 254
            end 
< 0.001 
     20 
 255
            if isempty(names) 
 256 
                names = cell(0, 0);
< 0.001 
     20 
 257
            end 
< 0.001 
     20 
 258
        end 

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