findDocCatalogFiles>findFilesUnderRoot (Calls: 1, Time: 0.021 s)
Generated 18-May-2021 16:05:20 using performance time.
subfunction in file /usr/local/MATLAB/R2021a/toolbox/matlab/helptools/+matlab/+internal/+doc/+csh/findDocCatalogFiles.m
Copy to new window for comparing multiple runs
| Function Name | Function Type | Calls |
| findDocCatalogFiles | function | 1 |
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 13 | enFile = fullfile(rootFolder, ... | 1 | 0.015 s | 70.1% | |
| 18 | docLang = matlab.internal.doc.... | 1 | 0.006 s | 27.4% | |
| 19 | if docLang ~= matlab.internal.... | 1 | 0.000 s | 1.1% | |
| 14 | if isfile(enFile) | 1 | 0.000 s | 0.5% | |
| 11 | files = string.empty; | 1 | 0.000 s | 0.3% | |
| All other lines | 0.000 s | 0.6% | |||
| Totals | 0.021 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| fullfile | function | 1 | 0.014 s | 69.0% | |
| ...Map>HelpTopicMap.accessDocLanguage | class method | 1 | 0.005 s | 26.1% | |
| Self time (built-ins, overhead, etc.) | 0.001 s | 4.8% | |||
| Totals | 0.021 s | 100% |
| Total lines in function | 17 |
| Non-code lines (comments, blank lines) | 2 |
| Code lines (lines that can run) | 15 |
| Code lines that did run | 10 |
| Code lines that did not run | 5 |
| Coverage (did run/can run) | 66.67 % |
time | Calls | line | |
|---|---|---|---|
10 | function files = findFilesUnderRoot(rootFolder, catalogFolder, shortname) | ||
< 0.001 | 1 | 11 | files = string.empty; |
< 0.001 | 1 | 12 | enFileName = shortname + ".json"; |
0.015 | 1 | 13 | enFile = fullfile(rootFolder, "docCatalog", catalogFolder, enFileName); |
< 0.001 | 1 | 14 | if isfile(enFile) |
< 0.001 | 1 | 15 | files = [files enFile]; |
< 0.001 | 1 | 16 | end |
17 | |||
0.006 | 1 | 18 | docLang = matlab.internal.doc.csh.HelpTopicMap.accessDocLanguage; |
< 0.001 | 1 | 19 | if docLang ~= matlab.internal.doc.services.DocLanguage.ENGLISH |
20 | locFileName = shortname + "_" + docLang.getDirectory + ".json"; | ||
21 | locFile = fullfile(rootFolder, "docCatalog", catalogFolder, locFileName); | ||
22 | if isfile(locFile) | ||
23 | files = [locFile files]; | ||
24 | end | ||
< 0.001 | 1 | 25 | end |
< 0.001 | 1 | 26 | end |
Other subfunctions in this file are not included in this listing.