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: 289, Time: 0.010 s)
Generated 25-Apr-2020 01:45:53 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
fullfilefunction289
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
137
f = strrep(f, '/', fs);
2890.002 s23.9%
139
if any(contains(f, singleDotPa...
2890.002 s23.1%
130
persistent singleDotPattern mu...
2890.001 s13.4%
147
if any(contains(f,':'))
2890.001 s11.1%
143
if any(contains(f, multipleFil...
2890.001 s10.8%
All other lines  0.002 s17.7%
Totals  0.010 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.001 
    289 
 130
    persistent singleDotPattern multipleFileSepPattern 
 131 
       
< 0.001 
    289 
 132
    if isempty(singleDotPattern) 
 133 
        singleDotPattern = [fs, '.', fs];
 134 
        multipleFileSepPattern = [fs, fs];
 135 
    end   
 136 
    
  0.002 
    289 
 137
    f = strrep(f, '/', fs); 
 138 

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

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

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

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