This is a static copy of a profile report

Home

fullfile>refinePath (11 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:07 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
fullfilefunction11
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
114
end
110 s0%
113
end
110 s0%
110
if ~isempty(strfind(f, multipl...
110 s0%
106
if ~isempty(strfind(f, singleD...
110 s0%
105
else
110 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function30
Non-code lines (comments, blank lines)6
Code lines (lines that can run)24
Code lines that did run9
Code lines that did not run15
Coverage (did run/can run)37.50 %
Function listing
time 
calls 
 line
  85 
function f = refinePath(f, fs)
     11 
  86 
    persistent singleDotPattern multipleFileSepPattern 
  87 
       
     11 
  88 
    if isempty(singleDotPattern) 
  89 
        singleDotPattern = [fs, '.', fs];
  90 
        multipleFileSepPattern = [fs, fs];
  91 
    end   
  92 
    
     11 
  93 
    f = strrep(f, '/', fs); 
  94 
          
     11 
  95 
    if iscell(f)         
  96 
        hasSingleDotCell = ~cellfun('isempty',strfind(f, singleDotPattern));
  97 
        if any(hasSingleDotCell)
  98 
            f(hasSingleDotCell) = replaceSingleDots(f(hasSingleDotCell), fs);
  99 
        end
 100 
        
 101 
        hasMultipleFileSepCell = ~cellfun('isempty',strfind(f, multipleFileSepPattern));
 102 
        if any(hasMultipleFileSepCell)
 103 
            f(hasMultipleFileSepCell) = replaceMultipleFileSeps(f(hasMultipleFileSepCell), fs);
 104 
        end
     11 
 105 
    else 
     11 
 106 
        if ~isempty(strfind(f, singleDotPattern)) 
 107 
            f = replaceSingleDots(f, fs);
 108 
        end
 109 
        
     11 
 110 
        if ~isempty(strfind(f, multipleFileSepPattern)) 
 111 
            f = replaceMultipleFileSeps(f, fs);
 112 
        end          
     11 
 113 
    end 
     11 
 114 
end 

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