fullfile>refinePath (Calls: 4, Time: 0.002 s)
Generated 04-Jun-2021 04:11:06 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\iofun\fullfile.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
fullfile | function | 4 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
150 | f = fixIRI(f,fs); | 4 | 0.001 s | 51.6% | |
149 | if any(contains(f,':')) | 4 | 0.000 s | 12.0% | |
141 | if any(contains(f, singleDotPa... | 4 | 0.000 s | 7.1% | |
134 | if isempty(singleDotPattern) | 4 | 0.000 s | 6.6% | |
145 | if any(contains(f, multipleFil... | 4 | 0.000 s | 6.1% | |
All other lines | 0.000 s | 16.6% | |||
Totals | 0.002 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
fullfile>fixIRI | subfunction | 4 | 0.001 s | 42.0% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 58.0% | |||
Totals | 0.002 s | 100% |
Total lines in function | 23 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 16 |
Code lines that did run | 12 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 75.00 % |
time | Calls | line | |
---|---|---|---|
131 | function f = refinePath(f, fs) | ||
< 0.001 | 4 | 132 | persistent singleDotPattern multipleFileSepPattern |
133 | |||
< 0.001 | 4 | 134 | if isempty(singleDotPattern) |
135 | singleDotPattern = [fs, '.', fs]; | ||
136 | multipleFileSepPattern = [fs, fs]; | ||
< 0.001 | 4 | 137 | end |
138 | |||
< 0.001 | 4 | 139 | f = strrep(f, '/', fs); |
140 | |||
< 0.001 | 4 | 141 | if any(contains(f, singleDotPattern)) |
142 | f = replaceSingleDots(f, fs); | ||
< 0.001 | 4 | 143 | end |
144 | |||
< 0.001 | 4 | 145 | if any(contains(f, multipleFileSepPattern)) |
146 | f = replaceMultipleFileSeps(f, fs); | ||
< 0.001 | 4 | 147 | end |
148 | |||
< 0.001 | 4 | 149 | if any(contains(f,':')) |
< 0.001 | 4 | 150 | f = fixIRI(f,fs); |
< 0.001 | 4 | 151 | end |
152 | |||
< 0.001 | 4 | 153 | end |
Other subfunctions in this file are not included in this listing.