This is a static copy of a profile report

Home

getDocLanguageLocale (Calls: 1, Time: 0.002 s)
Generated 18-May-2021 16:05:20 using performance time.
function in file /usr/local/MATLAB/R2021a/toolbox/matlab/helptools/+matlab/+internal/+doc/+services/getDocLanguageLocale.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...Map>HelpTopicMap.accessDocLanguageclass method1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
6
s = settings;
10.001 s48.0%
16
settingDocLanguage = matlab.in...
10.001 s23.4%
7
settingDocLocale = s.matlab.de...
10.000 s20.9%
9
if (isempty(settingDocLocale.A...
10.000 s5.1%
17
docLanguage = settingDocLangua...
10.000 s1.0%
All other lines  0.000 s1.6%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
settingsfunction10.001 s42.1%
DocLanguage>DocLanguage.fromLanguageStrclass method10.000 s6.2%
Self time (built-ins, overhead, etc.)  0.001 s51.7%
Totals  0.002 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function18
Non-code lines (comments, blank lines)8
Code lines (lines that can run)10
Code lines that did run7
Code lines that did not run3
Coverage (did run/can run)70.00 %
Function listing
time 
Calls 
 line
   1 
function docLanguage = getDocLanguageLocale()
   2 
%
   3 

   4 
%   Copyright 2020 The MathWorks, Inc.
   5 

  0.001 
      1 
   6
    s = settings; 
< 0.001 
      1 
   7
    settingDocLocale = s.matlab.desktop.help.DocLanguage; 
   8 
    
< 0.001 
      1 
   9
    if (isempty(settingDocLocale.ActiveValue)) 
  10 
        %TODO g2093784
  11 
        sysLang = get(0, 'Language');
  12 
        docLanguage = matlab.internal.doc.services.DocLanguage.fromLanguageStr(sysLang);
  13 
        return;
< 0.001 
      1 
  14
    end 
  15 
    
< 0.001 
      1 
  16
    settingDocLanguage = matlab.internal.doc.services.DocLanguage.fromLanguageStr(settingDocLocale.ActiveValue); 
< 0.001 
      1 
  17
    docLanguage = settingDocLanguage; 
< 0.001 
      1 
  18
end 

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