This is a static copy of a profile report

Home

HelpTopicMap>HelpTopicMap.retrieveHelpTargets (Calls: 1, Time: 0.112 s)
Generated 18-May-2021 16:05:21 using performance time.
class method in file /usr/local/MATLAB/R2021a/toolbox/matlab/helptools/+matlab/+internal/+doc/+csh/HelpTopicMap.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
131
cshData = jsondecode(fileread(...
10.069 s61.8%
128
files = matlab.internal.doc.cs...
10.042 s37.3%
133
if isfield(cshData, "helptarge...
10.000 s0.3%
134
obj.allHelpTargets{end+1} = cs...
10.000 s0.2%
137
obj.helpLocation = cshData.hel...
10.000 s0.1%
All other lines  0.000 s0.2%
Totals  0.112 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findDocCatalogFilesfunction10.039 s34.7%
makeStructurefunction10.010 s9.3%
filereadfunction10.007 s5.9%
makeValidNamefunction10.004 s3.8%
Self time (built-ins, overhead, etc.)  0.052 s46.2%
Totals  0.112 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function20
Non-code lines (comments, blank lines)3
Code lines (lines that can run)17
Code lines that did run16
Code lines that did not run1
Coverage (did run/can run)94.12 %
Function listing
time 
Calls 
 line
 122 
        function retrieveHelpTargets(obj)
< 0.001 
      1 
 123
            obj.allHelpTargets = {}; 
< 0.001 
      1 
 124
            if obj.shortname == "" 
 125 
                return;
< 0.001 
      1 
 126
            end 
 127 
            
  0.042 
      1 
 128
            files = matlab.internal.doc.csh.findDocCatalogFiles("cshapi_helptarget", obj.shortname); 
 129 
            
< 0.001 
      1 
 130
            for mappingFile = files 
  0.069 
      1 
 131
                cshData = jsondecode(fileread(mappingFile)); 
< 0.001 
      1 
 132
                if ~isempty(cshData)  
< 0.001 
      1 
 133
                    if isfield(cshData, "helptargets") 
< 0.001 
      1 
 134
                        obj.allHelpTargets{end+1} = cshData.helptargets; 
< 0.001 
      1 
 135
                    end 
< 0.001 
      1 
 136
                    if isfield(cshData, "helplocation") 
< 0.001 
      1 
 137
                        obj.helpLocation = cshData.helplocation; 
< 0.001 
      1 
 138
                    end 
< 0.001 
      1 
 139
                end 
< 0.001 
      1 
 140
            end 
< 0.001 
      1 
 141
        end 

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