This is a static copy of a profile report

Home

settings (Calls: 22, Time: 0.001 s)
Generated 16-Jul-2020 17:09:19 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/configtools/+matlab/+settings/+internal/settings.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
settingsfunction22
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
42
if isempty(settingsgroup)
220.000 s29.2%
40
persistent settingsgroup;
220.000 s16.4%
45
rootgroup = settingsgroup;    
220.000 s13.6%
46
end
220.000 s2.4%
38
narginchk(minargs, maxargs);
220.000 s0.6%
All other lines  0.000 s37.8%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function46
Non-code lines (comments, blank lines)37
Code lines (lines that can run)9
Code lines that did run8
Code lines that did not run1
Coverage (did run/can run)88.89 %
Function listing
time 
Calls 
 line
   1 
function rootgroup = settings()
   2 
% SETTINGS    Access the SettingsGroup root object.
   3 
%
   4 
%    SETTINGS returns the root SettingsGroup object in the settings
   5 
%    hierarchical tree
   6 
%
   7 
%  Example
   8 
%    Assume the settings tree contains these SettingsGroup and Setting objects:
   9 
%
  10 
%                             root
  11 
%                             /  \     
  12 
%                       matlab   mytoolbox
  13 
%                       /         /    \
  14 
%                    ...    FontSize  MainWindow   
  15 
%
  16 
%    Use the SETTINGS function to access the root SettingsGroup object.
  17 
%    >> S = settings;
  18 
%
  19 
%    Then, access the desired Setting object in the settings tree. 
  20 
%    For example,
  21 
%    >> S.mytoolbox.FontSize
  22 
%
  23 
%       ans = 
  24 
%       Setting 'mytoolbox.FontSize' with properties:
  25 
%
  26 
%            ActiveValue: 12
  27 
%         TemporaryValue: 12
  28 
%          PersonalValue: <no value>
  29 
%           FactoryValue: 10
  30 
%
  31 
%
  32 
%   See also matlab.settings.Setting, matlab.settings.SettingsGroup
  33 

  34 
%    Copyright 2014-2018 The MathWorks, Inc. 
  35 
    
< 0.001 
     22 
  36
    minargs = 0; 
< 0.001 
     22 
  37
    maxargs = 0; 
< 0.001 
     22 
  38
    narginchk(minargs, maxargs); 
  39 
    
< 0.001 
     22 
  40
    persistent settingsgroup; 
  41 
    
< 0.001 
     22 
  42
    if isempty(settingsgroup) 
  43 
        settingsgroup = matlab.settings.SettingsGroup();
< 0.001 
     22 
  44
    end 
< 0.001 
     22 
  45
    rootgroup = settingsgroup;     
< 0.001 
     22 
  46
end 

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