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: 954, Time: 0.015 s)
Generated 01-May-2020 20:23:03 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>ensureTrailingFilesepsubfunction954
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
126
str = [str, fileSeparator];
9330.005 s34.0%
121
persistent bIsPC
9540.003 s19.9%
125
if ~isempty(str) && (s...
9540.003 s17.2%
122
if isempty (bIsPC)
9540.001 s5.6%
128
end
9540.001 s4.4%
All other lines  0.003 s19.0%
Totals  0.015 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.003 
    954 
 121
    persistent bIsPC 
< 0.001 
    954 
 122
    if isempty (bIsPC) 
 123 
        bIsPC = ispc;
 124 
    end
  0.003 
    954 
 125
    if ~isempty(str) && (str(end) ~= fileSeparator && ~(bIsPC && str(end) == '/')) 
  0.005 
    933 
 126
        str = [str, fileSeparator]; 
< 0.001 
    933 
 127
    end 
< 0.001 
    954 
 128
end 

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