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: 951, Time: 0.026 s)
Generated 01-May-2020 08:41:16 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
fullfilefunction951
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
139
if any(contains(f, singleDotPa...
9510.007 s26.0%
137
f = strrep(f, '/', fs);
9510.006 s24.4%
130
persistent singleDotPattern mu...
9510.003 s13.1%
143
if any(contains(f, multipleFil...
9510.003 s11.0%
147
if any(contains(f,':'))
9510.002 s9.6%
All other lines  0.004 s15.9%
Totals  0.026 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.003 
    951 
 130
    persistent singleDotPattern multipleFileSepPattern 
 131 
       
< 0.001 
    951 
 132
    if isempty(singleDotPattern) 
 133 
        singleDotPattern = [fs, '.', fs];
 134 
        multipleFileSepPattern = [fs, fs];
 135 
    end   
 136 
    
  0.006 
    951 
 137
    f = strrep(f, '/', fs); 
 138 

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

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

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

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