This is a static copy of a profile report

Home

fullfile>addTrailingFileSep (Calls: 1942, Time: 0.021 s)
Generated 16-Jul-2020 17:08:26 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
fullfile>ensureTrailingFilesepsubfunction1942
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
128
str = [str, fileSeparator];
18970.008 s35.4%
123
persistent bIsPC
19420.004 s20.6%
127
if ~isempty(str) && (s...
19420.002 s10.7%
130
end
19420.001 s6.0%
124
if isempty (bIsPC)
19420.001 s2.9%
All other lines  0.005 s24.4%
Totals  0.021 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function9
Non-code lines (comments, blank lines)1
Code lines (lines that can run)8
Code lines that did run7
Code lines that did not run1
Coverage (did run/can run)87.50 %
Function listing
time 
Calls 
 line
 122 
function str = addTrailingFileSep(str, fileSeparator)
  0.004 
   1942 
 123
    persistent bIsPC 
< 0.001 
   1942 
 124
    if isempty (bIsPC) 
 125 
        bIsPC = ispc;
< 0.001 
   1942 
 126
    end 
  0.002 
   1942 
 127
    if ~isempty(str) && (str(end) ~= fileSeparator && ~(bIsPC && str(end) == '/')) 
  0.008 
   1897 
 128
        str = [str, fileSeparator]; 
< 0.001 
   1942 
 129
    end 
  0.001 
   1942 
 130
end 

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