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
| Function Name | Function Type | Calls |
| HelpTopicMap>HelpTopicMap.mapSingleTopic | class method | 1 |
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 131 | cshData = jsondecode(fileread(... | 1 | 0.069 s | 61.8% | |
| 128 | files = matlab.internal.doc.cs... | 1 | 0.042 s | 37.3% | |
| 133 | if isfield(cshData, "helptarge... | 1 | 0.000 s | 0.3% | |
| 134 | obj.allHelpTargets{end+1} = cs... | 1 | 0.000 s | 0.2% | |
| 137 | obj.helpLocation = cshData.hel... | 1 | 0.000 s | 0.1% | |
| All other lines | 0.000 s | 0.2% | |||
| Totals | 0.112 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| findDocCatalogFiles | function | 1 | 0.039 s | 34.7% | |
| makeStructure | function | 1 | 0.010 s | 9.3% | |
| fileread | function | 1 | 0.007 s | 5.9% | |
| makeValidName | function | 1 | 0.004 s | 3.8% | |
| Self time (built-ins, overhead, etc.) | 0.052 s | 46.2% | |||
| Totals | 0.112 s | 100% |
| Total lines in function | 20 |
| Non-code lines (comments, blank lines) | 3 |
| Code lines (lines that can run) | 17 |
| Code lines that did run | 16 |
| Code lines that did not run | 1 |
| Coverage (did run/can run) | 94.12 % |
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.