This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
fullfilefunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
150
f = fixIRI(f,fs);
40.001 s51.6%
149
if any(contains(f,':'))
40.000 s12.0%
141
if any(contains(f, singleDotPa...
40.000 s7.1%
134
if isempty(singleDotPattern)
40.000 s6.6%
145
if any(contains(f, multipleFil...
40.000 s6.1%
All other lines  0.000 s16.6%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
fullfile>fixIRIsubfunction40.001 s42.0%
Self time (built-ins, overhead, etc.)  0.001 s58.0%
Totals  0.002 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function23
Non-code lines (comments, blank lines)7
Code lines (lines that can run)16
Code lines that did run12
Code lines that did not run4
Coverage (did run/can run)75.00 %
Function listing
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.