This is a static copy of a profile report

Home

fullfile>refinePath (Calls: 1942, Time: 0.039 s)
Generated 16-Jul-2020 17:08:27 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
fullfilefunction1942
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
139
f = strrep(f, '/', fs);
19420.013 s32.9%
141
if any(contains(f, singleDotPa...
19420.006 s16.4%
132
persistent singleDotPattern mu...
19420.006 s14.6%
149
if any(contains(f,':'))
19420.002 s6.2%
145
if any(contains(f, multipleFil...
19420.002 s6.0%
All other lines  0.009 s23.9%
Totals  0.039 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.006 
   1942 
 132
    persistent singleDotPattern multipleFileSepPattern 
 133 
       
  0.001 
   1942 
 134
    if isempty(singleDotPattern) 
 135 
        singleDotPattern = [fs, '.', fs];
 136 
        multipleFileSepPattern = [fs, fs];
< 0.001 
   1942 
 137
    end    
 138 
    
  0.013 
   1942 
 139
    f = strrep(f, '/', fs); 
 140 

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

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

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

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