This is a static copy of a profile report

Home

mdbfileonpath>removePackageDirs (2 calls, 0.010 sec)
Generated 14-Nov-2016 07:47:07 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/codetools/mdbfileonpath.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
mdbfileonpath>filepartsWithoutPackagessubfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
155
while (~isempty(result) &&...
20.010 s100.0%
158
end
20 s0%
151
result = inDir;
20 s0%
All other lines  0 s0%
Totals  0.010 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
strcatfunction20.010 s100.0%
mdbfileonpath>isPackageDirectorysubfunction20 s0%
filesepfunction20 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.010 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function9
Non-code lines (comments, blank lines)4
Code lines (lines that can run)5
Code lines that did run3
Code lines that did not run2
Coverage (did run/can run)60.00 %
Function listing
time 
calls 
 line
 150 
function result = removePackageDirs(inDir)
      2 
 151 
    result = inDir; 
 152 
    % Make sure that result ends in a file separator so that the last item
 153 
    % is treated as a directory rather than a file. However, we don't wish
 154 
    % to return a value ending in a file separator from the method.
  0.01 
      2 
 155 
    while (~isempty(result) && isPackageDirectory(strcat(result, filesep))) 
 156 
        result = fileparts(result);
 157 
    end
      2 
 158 
end 

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