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: 1635, Time: 0.046 s)
Generated 28-Jun-2020 22:32:30 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
fullfilefunction1635
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
137
f = strrep(f, '/', fs);
16350.011 s23.5%
139
if any(contains(f, singleDotPa...
16350.011 s23.3%
130
persistent singleDotPattern mu...
16350.006 s13.1%
143
if any(contains(f, multipleFil...
16350.006 s12.1%
147
if any(contains(f,':'))
16350.005 s10.5%
All other lines  0.008 s17.4%
Totals  0.046 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 
   1635 
 130
    persistent singleDotPattern multipleFileSepPattern 
 131 
       
  0.001 
   1635 
 132
    if isempty(singleDotPattern) 
 133 
        singleDotPattern = [fs, '.', fs];
 134 
        multipleFileSepPattern = [fs, fs];
 135 
    end   
 136 
    
  0.011 
   1635 
 137
    f = strrep(f, '/', fs); 
 138 

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

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

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

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