HelpTopicMap>HelpTopicMap.getMappingForId (Calls: 1, Time: 0.001 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
| Function Name | Function Type | Calls |
| HelpTopicMap>HelpTopicMap.mapSingleTopic | class method | 1 |
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 317 | idField = matlab.lang.makeVali... | 1 | 0.001 s | 87.8% | |
| 318 | if ~strcmp(idField, id) &&... | 1 | 0.000 s | 4.7% | |
| 314 | if isfield(helpTargets, id) | 1 | 0.000 s | 3.9% | |
| 313 | mapping = []; | 1 | 0.000 s | 0.7% | |
| 322 | end | 1 | 0.000 s | 0.5% | |
| All other lines | 0.000 s | 2.3% | |||
| Totals | 0.001 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| makeValidName | function | 1 | 0.001 s | 76.7% | |
| Self time (built-ins, overhead, etc.) | 0.000 s | 23.3% | |||
| Totals | 0.001 s | 100% |
| Total lines in function | 11 |
| Non-code lines (comments, blank lines) | 1 |
| Code lines (lines that can run) | 10 |
| Code lines that did run | 8 |
| Code lines that did not run | 2 |
| Coverage (did run/can run) | 80.00 % |
time | Calls | line | |
|---|---|---|---|
312 | function mapping = getMappingForId(helpTargets, id) | ||
< 0.001 | 1 | 313 | mapping = []; |
< 0.001 | 1 | 314 | if isfield(helpTargets, id) |
315 | mapping = helpTargets.(id); | ||
< 0.001 | 1 | 316 | else |
< 0.001 | 1 | 317 | idField = matlab.lang.makeValidName(id); |
< 0.001 | 1 | 318 | if ~strcmp(idField, id) && isfield(helpTargets, idField) |
319 | mapping = helpTargets.(idField); | ||
< 0.001 | 1 | 320 | end |
< 0.001 | 1 | 321 | end |
< 0.001 | 1 | 322 | end |
Other subfunctions in this file are not included in this listing.