This is a static copy of a profile report

Home

HelpTopicMap>HelpTopicMap.parseTopicPath (Calls: 1, Time: 0.004 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.fromTopicPathclass method1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
167
parts = split(topicPath, "/" |...
10.004 s90.7%
171
shortname = string(parts(1));
10.000 s4.8%
160
if startsWith(topicPath,"mapke...
10.000 s1.1%
168
if length(parts) > 2
10.000 s1.0%
163
elseif endsWith(topicPath,".ma...
10.000 s0.7%
All other lines  0.000 s1.8%
Totals  0.004 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
splitfunction10.001 s25.8%
Self time (built-ins, overhead, etc.)  0.003 s74.2%
Totals  0.004 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function21
Non-code lines (comments, blank lines)2
Code lines (lines that can run)19
Code lines that did run14
Code lines that did not run5
Coverage (did run/can run)73.68 %
Function listing
time 
Calls 
 line
 157 
        function [shortname,group] = parseTopicPath(topicPath)
< 0.001 
      1 
 158
            shortname = ""; 
< 0.001 
      1 
 159
            group = ""; 
< 0.001 
      1 
 160
            if startsWith(topicPath,"mapkey:") 
 161 
                mapKey = extractAfter(topicPath,"mapkey:");
 162 
                [shortname,group] = matlab.internal.doc.csh.HelpTopicMap.findMapKeyLocation(mapKey);
< 0.001 
      1 
 163
            elseif endsWith(topicPath,".map") 
 164 
                % This is an old map file location. Parse it into a product and group.
 165 
                [shortname,group] = matlab.internal.doc.csh.HelpTopicMap.parseMapFilePath(topicPath);
< 0.001 
      1 
 166
            else 
  0.004 
      1 
 167
                parts = split(topicPath, "/" | "\"); 
< 0.001 
      1 
 168
                if length(parts) > 2 
 169 
                    return;
< 0.001 
      1 
 170
                else 
< 0.001 
      1 
 171
                    shortname = string(parts(1)); 
< 0.001 
      1 
 172
                    if length(parts) == 2 
 173 
                        group = string(parts(2));
< 0.001 
      1 
 174
                    end 
< 0.001 
      1 
 175
                end      
< 0.001 
      1 
 176
            end 
< 0.001 
      1 
 177
        end 

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