This is a static copy of a profile report

Home

fullfile>fixIRI (Calls: 4, Time: 0.001 s)
Generated 04-Jun-2021 04:11:06 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\iofun\fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
fullfile>refinePathsubfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
179
f = regexprep(f, pattern , rep...
40.000 s36.8%
174
needMultipleSlash = startsWith...
40.000 s23.0%
178
if(~needMultipleSlash)
40.000 s8.3%
177
if ischar(f)
40.000 s5.6%
175
pattern = ['^(\w{2,}:\' fs ')\...
40.000 s2.2%
All other lines  0.000 s24.1%
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 function12
Non-code lines (comments, blank lines)1
Code lines (lines that can run)11
Code lines that did run9
Code lines that did not run2
Coverage (did run/can run)81.82 %
Function listing
time 
Calls 
 line
 173 
function f = fixIRI(f,fs)
< 0.001 
      4 
 174
    needMultipleSlash = startsWith(f,'file:','IgnoreCase',true); 
< 0.001 
      4 
 175
    pattern = ['^(\w{2,}:\' fs ')\' fs '*']; 
< 0.001 
      4 
 176
    rep = ['$1\' fs]; 
< 0.001 
      4 
 177
    if ischar(f) 
< 0.001 
      4 
 178
        if(~needMultipleSlash) 
< 0.001 
      4 
 179
            f = regexprep(f, pattern , rep); 
< 0.001 
      4 
 180
        end 
 181 
    else
 182 
        f(~needMultipleSlash) = regexprep(f(~needMultipleSlash),pattern,rep);
< 0.001 
      4 
 183
    end 
< 0.001 
      4 
 184
end 

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