This is a static copy of a profile reportHome
cellfit_percell (202 calls, 16262.414 sec)
Generated 05-Nov-2014 07:52:31 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/3D/cellfit_percell.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 |
10 | find_cell_codes( dna_image_fil... | 202 | 16255.344 s | 100.0% |  |
21 | [rad_ratio,cellnucratios,nucbo... | 201 | 6.659 s | 0.0% |  |
9 | if ~exist(cellcodefile) | 202 | 0.210 s | 0.0% |  |
20 | if exist(cellcodefile, 'file')... | 201 | 0.130 s | 0.0% |  |
7 | cellcodefile = [param.celltemp... | 202 | 0.070 s | 0.0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 16262.414 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
find_cell_codes | function | 202 | 16255.334 s | 100.0% |  |
extract_radius_ratio | function | 201 | 6.649 s | 0.0% |  |
num2str | function | 202 | 0.060 s | 0.0% |  |
filesep | function | 202 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.371 s | 0.0% |  |
Totals | | | 16262.414 s | 100% | |
Code Analyzer results
Line number | Message |
9 | EXIST with two input arguments is generally faster and clearer than with one input argument. |
21 | The value assigned here to 'rad_ratio' appears to be unused. Consider replacing it by ~. |
21 | The value assigned here to 'cellnucratios' appears to be unused. Consider replacing it by ~. |
21 | The value assigned to variable 'nucbottomslices' might be unused. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 28 |
Non-code lines (comments, blank lines) | 19 |
Code lines (lines that can run) | 9 |
Code lines that did run | 6 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 66.67 % |
Function listing
time calls line
1 function cellfit_percell(dna_image_file,cell_image_file, ...
2 prot_image_file,mask_image_file,...
3 param,currfile)
4 %Trains per-cell cell shape model
5
6 %First check if they exist already
0.07 202 7 cellcodefile = [param.celltemppath filesep...
8 'cellcodes_' num2str(currfile) '.mat'];
0.21 202 9 if ~exist(cellcodefile)
16255.34 202 10 find_cell_codes( dna_image_file, ...
11 cell_image_file, ...
12 prot_image_file, ...
13 mask_image_file,...
14 param.celltemppath, param,currfile );
15
16 % add the cell-nuc ratios for each cell, could combine these
17 % two files in the future
18
19
0.13 201 20 if exist(cellcodefile, 'file') %this gets set in find_cell_codes... this should be made better grj 7/9/13
6.66 201 21 [rad_ratio,cellnucratios,nucbottomslices] =...
22 extract_radius_ratio(cellcodefile);
201 23 end
24 elseif param.verbose
25 disp(['Found cell shape model for cell ',num2str(currfile),...
26 '. Skipping']);
27
28 end