This is a static copy of a profile report

Home

filesep (Calls: 12, Time: 0.001 s)
Generated 18-Jul-2020 08:10:36 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/iofun/filesep.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
general/private/parsedirsfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
persistent fs;
120.000 s28.3%
12
if isempty(fs)
120.000 s23.5%
19
f = fs;
120.000 s20.4%
18
end
120.000 s0.3%
All other lines  0.000 s27.6%
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 function19
Non-code lines (comments, blank lines)10
Code lines (lines that can run)9
Code lines that did run4
Code lines that did not run5
Coverage (did run/can run)44.44 %
Function listing
time 
Calls 
 line
   1 
function f = filesep
   2 
%FILESEP Directory separator for this platform.
   3 
%   F = FILESEP returns the file separator character for this platform.
   4 
%   The file separator is the character that separates
   5 
%   directory names in filenames.
   6 
%
   7 
%   See also PATHSEP, FULLFILE.
   8 

   9 
%   Copyright 1984-2003 The MathWorks, Inc.
  10 

< 0.001 
     12 
  11
persistent fs; 
< 0.001 
     12 
  12
if isempty(fs) 
  13 
    if ispc
  14 
        fs = '\';
  15 
    else  % isunix
  16 
        fs = '/';
  17 
    end
< 0.001 
     12 
  18
end 
< 0.001 
     12 
  19
f = fs; 

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