This is a static copy of a profile reportHome
fullfile>addTrailingFileSep (Calls: 11, Time: 0.001 s)
Generated 18-May-2021 16:05:20 using performance time.
subfunction in file /usr/local/MATLAB/R2021a/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 127 | if ~isempty(str) && (s... | 11 | 0.001 s | 68.9% |  |
| 124 | if isempty (bIsPC) | 11 | 0.000 s | 8.9% |  |
| 123 | persistent bIsPC | 11 | 0.000 s | 7.1% |  |
| 128 | str = [str, fileSeparator]; | 11 | 0.000 s | 3.3% |  |
| 130 | end | 11 | 0.000 s | 0.6% |  |
| All other lines | | | 0.000 s | 11.2% |  |
| Totals | | | 0.001 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
Show coverage for parent directory
| Total lines in function | 9 |
| Non-code lines (comments, blank lines) | 1 |
| Code lines (lines that can run) | 8 |
| Code lines that did run | 7 |
| Code lines that did not run | 1 |
| Coverage (did run/can run) | 87.50 % |
Function listing
time | Calls | line |
|---|
| | 122 | function str = addTrailingFileSep(str, fileSeparator)
|
< 0.001 | 11 | 123 | persistent bIsPC
|
< 0.001 | 11 | 124 | if isempty (bIsPC)
|
| | 125 | bIsPC = ispc;
|
< 0.001 | 11 | 126 | end
|
< 0.001 | 11 | 127 | if ~isempty(str) && (str(end) ~= fileSeparator && ~(bIsPC && str(end) == '/'))
|
< 0.001 | 11 | 128 | str = [str, fileSeparator];
|
< 0.001 | 11 | 129 | end
|
< 0.001 | 11 | 130 | end
|
Other subfunctions in this file are not included in this listing.