getSupportPackageDocRoot (Calls: 1, Time: 0.015 s)
Generated 18-May-2021 16:05:21 using performance time.
function in file /usr/local/MATLAB/R2021a/toolbox/matlab/helptools/+matlab/+internal/+doc/+services/getSupportPackageDocRoot.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 |
| 2 | spkgRoot = matlabshared.suppor... | 1 | 0.014 s | 99.2% | |
| 6 | spkgDocroot = string.empty; | 1 | 0.000 s | 0.5% | |
| 3 | if ~isempty(spkgRoot) | 1 | 0.000 s | 0.2% | |
| 8 | end | 1 | 0.000 s | 0.0% | |
| 5 | else | 1 | 0.000 s | 0.0% | |
| All other lines | 0.000 s | 0.1% | |||
| Totals | 0.015 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| getSupportPackageRoot | function | 1 | 0.014 s | 98.7% | |
| Self time (built-ins, overhead, etc.) | 0.000 s | 1.3% | |||
| Totals | 0.015 s | 100% |
| Total lines in function | 8 |
| Non-code lines (comments, blank lines) | 1 |
| Code lines (lines that can run) | 7 |
| Code lines that did run | 6 |
| Code lines that did not run | 1 |
| Coverage (did run/can run) | 85.71 % |
time | Calls | line | |
|---|---|---|---|
1 | function spkgDocroot = getSupportPackageDocRoot | ||
0.014 | 1 | 2 | spkgRoot = matlabshared.supportpkg.getSupportPackageRoot; |
< 0.001 | 1 | 3 | if ~isempty(spkgRoot) |
4 | spkgDocroot = fullfile(string(spkgRoot),"help"); | ||
< 0.001 | 1 | 5 | else |
< 0.001 | 1 | 6 | spkgDocroot = string.empty; |
< 0.001 | 1 | 7 | end |
< 0.001 | 1 | 8 | end |