This is a static copy of a profile report

Home

Function details for fullfile>refinePathThis is a static copy of a profile report

Home

fullfile>refinePath (Calls: 310, Time: 0.013 s)
Generated 19-Apr-2020 09:41:42 using performance time.
subfunction in file /Applications/MATLAB_R2018a.app/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
fullfilefunction310
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
139
if any(contains(f, singleDotPa...
3100.003 s21.7%
137
f = strrep(f, '/', fs);
3100.003 s21.5%
130
persistent singleDotPattern mu...
3100.002 s13.9%
143
if any(contains(f, multipleFil...
3100.002 s13.7%
147
if any(contains(f,':'))
3100.001 s10.6%
All other lines  0.002 s18.6%
Totals  0.013 s100% 
Children (called functions)
No children
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 run7
Code lines that did not run9
Coverage (did run/can run)43.75 %
Function listing
time 
Calls 
 line
 129 
function f = refinePath(f, fs)
  0.002 
    310 
 130
    persistent singleDotPattern multipleFileSepPattern 
 131 
       
< 0.001 
    310 
 132
    if isempty(singleDotPattern) 
 133 
        singleDotPattern = [fs, '.', fs];
 134 
        multipleFileSepPattern = [fs, fs];
 135 
    end   
 136 
    
  0.003 
    310 
 137
    f = strrep(f, '/', fs); 
 138 

  0.003 
    310 
 139
    if any(contains(f, singleDotPattern)) 
 140 
        f = replaceSingleDots(f, fs);
 141 
    end
 142 

  0.002 
    310 
 143
    if any(contains(f, multipleFileSepPattern)) 
 144 
        f = replaceMultipleFileSeps(f, fs);
 145 
    end
 146 

  0.001 
    310 
 147
    if any(contains(f,':')) 
 148 
        f = fixIRI(f,fs);
 149 
    end
 150 
    
< 0.001 
    310 
 151
end 

Other subfunctions in this file are not included in this listing.