This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
findDocCatalogFilesfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
13
enFile = fullfile(rootFolder, ...
10.015 s70.1%
18
docLang = matlab.internal.doc....
10.006 s27.4%
19
if docLang ~= matlab.internal....
10.000 s1.1%
14
if isfile(enFile)
10.000 s0.5%
11
files = string.empty;
10.000 s0.3%
All other lines  0.000 s0.6%
Totals  0.021 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
fullfilefunction10.014 s69.0%
...Map>HelpTopicMap.accessDocLanguageclass method10.005 s26.1%
Self time (built-ins, overhead, etc.)  0.001 s4.8%
Totals  0.021 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)2
Code lines (lines that can run)15
Code lines that did run10
Code lines that did not run5
Coverage (did run/can run)66.67 %
Function listing
time 
Calls 
 line
  10 
function files = findFilesUnderRoot(rootFolder, catalogFolder, shortname)
< 0.001 
      1 
  11
    files = string.empty; 
< 0.001 
      1 
  12
    enFileName = shortname + ".json"; 
  0.015 
      1 
  13
    enFile = fullfile(rootFolder, "docCatalog", catalogFolder, enFileName); 
< 0.001 
      1 
  14
    if isfile(enFile) 
< 0.001 
      1 
  15
        files = [files enFile]; 
< 0.001 
      1 
  16
    end 
  17 

  0.006 
      1 
  18
    docLang = matlab.internal.doc.csh.HelpTopicMap.accessDocLanguage; 
< 0.001 
      1 
  19
    if docLang ~= matlab.internal.doc.services.DocLanguage.ENGLISH 
  20 
        locFileName = shortname + "_" + docLang.getDirectory + ".json";
  21 
        locFile = fullfile(rootFolder, "docCatalog", catalogFolder, locFileName);
  22 
        if isfile(locFile)
  23 
            files = [locFile files];
  24 
        end
< 0.001 
      1 
  25
    end 
< 0.001 
      1 
  26
end 

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