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: 1308, Time: 0.040 s)
Generated 28-Jun-2020 10:10:18 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
fullfilefunction1308
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
137
f = strrep(f, '/', fs);
13080.010 s24.0%
139
if any(contains(f, singleDotPa...
13080.009 s23.2%
130
persistent singleDotPattern mu...
13080.006 s15.0%
143
if any(contains(f, multipleFil...
13080.005 s11.5%
147
if any(contains(f,':'))
13080.004 s10.4%
All other lines  0.006 s15.8%
Totals  0.040 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.006 
   1308 
 130
    persistent singleDotPattern multipleFileSepPattern 
 131 
       
  0.001 
   1308 
 132
    if isempty(singleDotPattern) 
 133 
        singleDotPattern = [fs, '.', fs];
 134 
        multipleFileSepPattern = [fs, fs];
 135 
    end   
 136 
    
  0.010 
   1308 
 137
    f = strrep(f, '/', fs); 
 138 

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

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

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

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