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
Function Name | Function Type | Calls |
mdbfileonpath>filepartsWithoutPackages | subfunction | 2 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
155 | while (~isempty(result) &&... | 2 | 0.010 s | 100.0% | ![]() |
158 | end | 2 | 0 s | 0% | ![]() |
151 | result = inDir; | 2 | 0 s | 0% | ![]() |
All other lines | 0 s | 0% | ![]() | ||
Totals | 0.010 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
strcat | function | 2 | 0.010 s | 100.0% | ![]() |
mdbfileonpath>isPackageDirectory | subfunction | 2 | 0 s | 0% | ![]() |
filesep | function | 2 | 0 s | 0% | ![]() |
Self time (built-ins, overhead, etc.) | 0 s | 0% | ![]() | ||
Totals | 0.010 s | 100% |
Total lines in function | 9 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 5 |
Code lines that did run | 3 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 60.00 % |
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.