This is a static copy of a profile report

Home

chunk_finish (202 calls, 0.110 sec)
Generated 05-Nov-2014 07:53:55 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/3D/diffeomorphic/chunk_finish.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
img2modelfunction202
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
27
if exist(temp_name, 'file')
2020.060 s54.5%
28
delete(temp_name);
2020.030 s27.3%
29
end
2020.010 s9.1%
20
temp_name = path;
2020.010 s9.1%
23
if ~strcmpi(temp_name(end-3:en...
2020 s0%
All other lines  0 s0%
Totals  0.110 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function29
Non-code lines (comments, blank lines)18
Code lines (lines that can run)11
Code lines that did run8
Code lines that did not run3
Coverage (did run/can run)72.73 %
Function listing
   time   calls  line
1 function chunk_finish(path, fname)
2 %[can_start, final_name, final_exists] = chunk_start(path, fname, final_extension, should_block)
3 %chunk_finish(path, fname, unique_filename)
4 % chunk_start checks if a certain unit of work has been done or is being
5 % computed. The path is the location of both the final and temporary/lock
6 % files. Final files are assumed to be named [fname, '.mat'] by default,
7 % but the extension can be changed with the optional argument
8 % final_extension. Temporary files are named [fname, '.tmp']. Save to
9 % final_name and then call chunk_finish to delete the temporary file.
10 %
11 % Copyright 2008-2013 Taraz Buck/tebuck at cmu.
12 %
13 % Aug 2, 2013 - G. Johnson - Added flexability for path names
14
15
16
202 17 if exist('fname', 'var')
18 temp_name = [path, '/', fname];
202 19 else
0.01 202 20 temp_name = path;
202 21 end
22
202 23 if ~strcmpi(temp_name(end-3:end), '.tmp')
24 temp_name = [temp_name '.tmp'];
25 end
26
0.06 202 27 if exist(temp_name, 'file')
0.03 202 28 delete(temp_name);
0.01 202 29 end

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