This is a static copy of a profile report

Home

HelpTopicMap>HelpTopicMap.mapSingleTopic (Calls: 1, Time: 0.116 s)
Generated 18-May-2021 16:05:19 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.mapTopicclass method1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
97
retrieveHelpTargets(obj);
10.112 s96.4%
119
relPath = matlab.internal.doc....
10.002 s1.8%
102
mapping = matlab.internal.doc....
10.002 s1.3%
89
if obj.isFallbackTopic(id)
10.000 s0.3%
100
for i = 1:length(obj.allHelpTa...
10.000 s0.1%
All other lines  0.000 s0.1%
Totals  0.116 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...p>HelpTopicMap.retrieveHelpTargetsclass method10.112 s96.3%
...icMap>HelpTopicMap.getMappingForIdclass method10.001 s1.0%
...icMap>HelpTopicMap.isFallbackTopicclass method10.000 s0.1%
mapSpecialCaseTopicfunction10.000 s0.1%
Self time (built-ins, overhead, etc.)  0.003 s2.6%
Totals  0.116 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function33
Non-code lines (comments, blank lines)5
Code lines (lines that can run)28
Code lines that did run13
Code lines that did not run15
Coverage (did run/can run)46.43 %
Function listing
time 
Calls 
 line
  88 
        function relPath = mapSingleTopic(obj, id)
< 0.001 
      1 
  89
            if obj.isFallbackTopic(id) 
  90 
                 relPath = matlab.internal.doc.csh.mapTopicUsingMapfile(obj.shortname, id);
  91 
                 if ~isempty(relPath)
  92 
                     return;
  93 
                 end
< 0.001 
      1 
  94
            end 
  95 
            
< 0.001 
      1 
  96
            if isempty(obj.allHelpTargets) 
  0.112 
      1 
  97
                retrieveHelpTargets(obj); 
< 0.001 
      1 
  98
            end 
  99 
            
< 0.001 
      1 
 100
            for i = 1:length(obj.allHelpTargets) 
< 0.001 
      1 
 101
                helpTargets = obj.allHelpTargets{i}; 
  0.002 
      1 
 102
                mapping = matlab.internal.doc.csh.HelpTopicMap.getMappingForId(helpTargets, id); 
< 0.001 
      1 
 103
                if ~isempty(mapping) 
 104 
                    if isValidGroup(obj) && isfield(mapping, 'group')
 105 
                        for j = 1:length(mapping)
 106 
                            if strcmp(obj.group, mapping(j).group)
 107 
                                relPath = mapping(j).path;
 108 
                                return;
 109 
                            end
 110 
                        end
 111 
                    else
 112 
                        relPath = mapping(1).path;
 113 
                        return;
 114 
                    end
< 0.001 
      1 
 115
                end 
< 0.001 
      1 
 116
            end 
 117 
            
 118 
            % If we get here we might have a special case...
  0.002 
      1 
 119
            relPath = matlab.internal.doc.csh.mapSpecialCaseTopic(obj.shortname, id); 
< 0.001 
      1 
 120
        end     

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