This is a static copy of a profile report

Home

fullfile>refinePath (Calls: 1518, Time: 0.043 s)
Generated 18-Jul-2020 08:10:33 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
fullfilefunction1518
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
139
f = strrep(f, '/', fs);
15180.013 s29.3%
141
if any(contains(f, singleDotPa...
15180.008 s18.3%
132
persistent singleDotPattern mu...
15180.008 s17.6%
149
if any(contains(f,':'))
15180.003 s6.4%
145
if any(contains(f, multipleFil...
15180.002 s5.1%
All other lines  0.010 s23.3%
Totals  0.043 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 run11
Code lines that did not run5
Coverage (did run/can run)68.75 %
Function listing
time 
Calls 
 line
 131 
function f = refinePath(f, fs)
  0.008 
   1518 
 132
    persistent singleDotPattern multipleFileSepPattern 
 133 
       
< 0.001 
   1518 
 134
    if isempty(singleDotPattern) 
 135 
        singleDotPattern = [fs, '.', fs];
 136 
        multipleFileSepPattern = [fs, fs];
< 0.001 
   1518 
 137
    end    
 138 
    
  0.013 
   1518 
 139
    f = strrep(f, '/', fs); 
 140 

  0.008 
   1518 
 141
    if any(contains(f, singleDotPattern)) 
 142 
        f = replaceSingleDots(f, fs);
< 0.001 
   1518 
 143
    end 
 144 

  0.002 
   1518 
 145
    if any(contains(f, multipleFileSepPattern)) 
 146 
        f = replaceMultipleFileSeps(f, fs);
< 0.001 
   1518 
 147
    end 
 148 

  0.003 
   1518 
 149
    if any(contains(f,':')) 
 150 
        f = fixIRI(f,fs);
< 0.001 
   1518 
 151
    end 
 152 
    
  0.002 
   1518 
 153
end 

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