This is a static copy of a profile report

Home

Function details for fullfile>addTrailingFileSepThis is a static copy of a profile report

Home

fullfile>addTrailingFileSep (Calls: 310, Time: 0.008 s)
Generated 19-Apr-2020 09:41:41 using performance time.
subfunction in file /Applications/MATLAB_R2018a.app/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
125
if ~isempty(str) && (s...
3100.002 s27.0%
126
str = [str, fileSeparator];
3030.002 s24.1%
121
persistent bIsPC
3100.002 s19.6%
122
if isempty (bIsPC)
3100.001 s6.4%
128
end
3100.000 s3.5%
All other lines  0.002 s19.5%
Totals  0.008 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 run6
Code lines that did not run2
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
 120 
function str = addTrailingFileSep(str, fileSeparator)
  0.002 
    310 
 121
    persistent bIsPC 
< 0.001 
    310 
 122
    if isempty (bIsPC) 
 123 
        bIsPC = ispc;
 124 
    end
  0.002 
    310 
 125
    if ~isempty(str) && (str(end) ~= fileSeparator && ~(bIsPC && str(end) == '/')) 
  0.002 
    303 
 126
        str = [str, fileSeparator]; 
< 0.001 
    303 
 127
    end 
< 0.001 
    310 
 128
end 

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