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: 1933, Time: 0.023 s)
Generated 02-May-2020 21:54:22 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>ensureTrailingFilesepsubfunction1933
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
126
str = [str, fileSeparator];
18910.008 s34.5%
121
persistent bIsPC
19330.004 s19.6%
125
if ~isempty(str) && (s...
19330.003 s14.0%
128
end
19330.001 s5.1%
122
if isempty (bIsPC)
19330.001 s4.0%
All other lines  0.005 s22.8%
Totals  0.023 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.004 
   1933 
 121
    persistent bIsPC 
< 0.001 
   1933 
 122
    if isempty (bIsPC) 
 123 
        bIsPC = ispc;
 124 
    end
  0.003 
   1933 
 125
    if ~isempty(str) && (str(end) ~= fileSeparator && ~(bIsPC && str(end) == '/')) 
  0.008 
   1891 
 126
        str = [str, fileSeparator]; 
< 0.001 
   1891 
 127
    end 
  0.001 
   1933 
 128
end 

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