This is a static copy of a profile reportHome
ml_dir (2 calls, 0.030 sec)
Generated 05-Nov-2014 07:52:33 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/3D/vesicles/ml_dir.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
38 | filelisting = sort_nat( fileli... | 2 | 0.030 s | 100.0% |  |
39 | end | 2 | 0 s | 0% |  |
37 | [filelisting{1:L,1}] = deal( f... | 2 | 0 s | 0% |  |
36 | else | 2 | 0 s | 0% |  |
34 | if( L == 0) | 2 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.030 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
sort_nat | function | 2 | 0.030 s | 100.0% |  |
deal | function | 2 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.030 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 39 |
Non-code lines (comments, blank lines) | 31 |
Code lines (lines that can run) | 8 |
Code lines that did run | 7 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 87.50 % |
Function listing
time calls line
1 function filelisting = ml_dir( pattern )
2 % FILELISTING = ML_DIR( PATTERN) Returns file listing of wildcard PATTERN (e.g. '*.jpg').
3 % FILELISTING is a cell array of strings of filenames without path.
4 % the listing is sorted by name alphabetically
5
6 % Copyright (C) 2006-2012 Murphy Lab
7 % Lane Center for Computational Biology
8 % School of Computer Science
9 % Carnegie Mellon University
10 %
11 % 1-March-2013 Arun Sampath fixed a bug in sorting, use sort_nat function
12 % instead of natural sorting.
13 %
14 % This program is free software; you can redistribute it and/or modify
15 % it under the terms of the GNU General Public License as published
16 % by the Free Software Foundation; either version 2 of the License,
17 % or (at your option) any later version.
18 %
19 % This program is distributed in the hope that it will be useful, but
20 % WITHOUT ANY WARRANTY; without even the implied warranty of
21 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 % General Public License for more details.
23 %
24 % You should have received a copy of the GNU General Public License
25 % along with this program; if not, write to the Free Software
26 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 % 02110-1301, USA.
28 %
29 % For additional information visit http://murphylab.web.cmu.edu or
30 % send email to murphy@cmu.edu
31
2 32 files = dir( pattern);
2 33 L = length( files );
2 34 if( L == 0)
35 filelisting = {};
2 36 else
2 37 [filelisting{1:L,1}] = deal( files.name);
0.03 2 38 filelisting = sort_nat( filelisting );
2 39 end