This is a static copy of a profile report

Home

fullfile>addTrailingFileSep (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>ensureTrailingFilesepsubfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
127
if ~isempty(str) && (s...
40.000 s67.0%
124
if isempty (bIsPC)
40.000 s10.3%
123
persistent bIsPC
40.000 s6.5%
128
str = [str, fileSeparator];
40.000 s3.0%
130
end
40.000 s0.3%
All other lines  0.000 s12.8%
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 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.001 
      4 
 123
    persistent bIsPC 
< 0.001 
      4 
 124
    if isempty (bIsPC) 
 125 
        bIsPC = ispc;
< 0.001 
      4 
 126
    end 
< 0.001 
      4 
 127
    if ~isempty(str) && (str(end) ~= fileSeparator && ~(bIsPC && str(end) == '/')) 
< 0.001 
      4 
 128
        str = [str, fileSeparator]; 
< 0.001 
      4 
 129
    end 
< 0.001 
      4 
 130
end 

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