This is a static copy of a profile report

Home

fullfile>refinePath (Calls: 11, Time: 0.001 s)
Generated 18-May-2021 16:05:20 using performance time.
subfunction in file /usr/local/MATLAB/R2021a/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
fullfilefunction11
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
141
if any(contains(f, singleDotPa...
110.000 s17.2%
145
if any(contains(f, multipleFil...
110.000 s15.1%
132
persistent singleDotPattern mu...
110.000 s13.9%
134
if isempty(singleDotPattern)
110.000 s13.3%
149
if any(contains(f,':'))
110.000 s13.0%
All other lines  0.000 s27.5%
Totals  0.001 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.001 
     11 
 132
    persistent singleDotPattern multipleFileSepPattern 
 133 
       
< 0.001 
     11 
 134
    if isempty(singleDotPattern) 
 135 
        singleDotPattern = [fs, '.', fs];
 136 
        multipleFileSepPattern = [fs, fs];
     11 
 137
    end    
 138 
    
< 0.001 
     11 
 139
    f = strrep(f, '/', fs); 
 140 

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

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

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

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