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
| Function Name | Function Type | Calls |
| HelpTopicMap>HelpTopicMap.fromTopicPath | class method | 1 |
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 167 | parts = split(topicPath, "/" |... | 1 | 0.004 s | 90.7% | |
| 171 | shortname = string(parts(1)); | 1 | 0.000 s | 4.8% | |
| 160 | if startsWith(topicPath,"mapke... | 1 | 0.000 s | 1.1% | |
| 168 | if length(parts) > 2 | 1 | 0.000 s | 1.0% | |
| 163 | elseif endsWith(topicPath,".ma... | 1 | 0.000 s | 0.7% | |
| All other lines | 0.000 s | 1.8% | |||
| Totals | 0.004 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| split | function | 1 | 0.001 s | 25.8% | |
| Self time (built-ins, overhead, etc.) | 0.003 s | 74.2% | |||
| Totals | 0.004 s | 100% |
| Total lines in function | 21 |
| Non-code lines (comments, blank lines) | 2 |
| Code lines (lines that can run) | 19 |
| Code lines that did run | 14 |
| Code lines that did not run | 5 |
| Coverage (did run/can run) | 73.68 % |
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.