This is a static copy of a profile reportHome
framecut>framecutSub (206 calls, 1.935 sec)
Generated 05-Aug-2011 13:01:01 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/framecut.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 |
56 | eval(sprintf('d.%s=regcut(d.%s... | 207 | 1.377 s | 71.2% |  |
54 | eval(sprintf('thisSize = size(... | 932 | 0.153 s | 7.9% |  |
58 | eval(sprintf('d.%s=regcut(d.%s... | 555 | 0.131 s | 6.8% |  |
51 | if(eval(sprintf('isstruct(d.%s... | 1129 | 0.120 s | 6.2% |  |
60 | eval(sprintf('d.%s=regcut(d.%s... | 170 | 0.077 s | 4.0% |  |
All other lines | | | 0.077 s | 4.0% |  |
Totals | | | 1.935 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
framecut>regcut | subfunction | 932 | 1.432 s | 74.0% |  |
framecut>framecutSub | subfunction | 197 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.503 s | 26.0% |  |
Totals | | | 1.935 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 21 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 18 |
Code lines that did run | 15 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 83.33 % |
Function listing
time calls line
47 function d = framecutSub(d, indRx, indServ, indReg)
48
206 49 names=fieldnames(d);
206 50 for i=1:length(names)
0.12 1129 51 if(eval(sprintf('isstruct(d.%s)',names{i})))
0.04 197 52 eval(sprintf('d.%s=framecutSub(d.%s,indRx, indServ, indReg);',names{i},names{i}));
0.01 932 53 else
0.15 932 54 eval(sprintf('thisSize = size(d.%s,1);', names{i}));
932 55 if(thisSize == length(indRx))
1.38 207 56 eval(sprintf('d.%s=regcut(d.%s,indRx);',names{i},names{i}));
725 57 elseif(thisSize == length(indReg))
0.13 555 58 eval(sprintf('d.%s=regcut(d.%s,indReg);',names{i},names{i}));
170 59 elseif(thisSize == length(indServ))
0.08 170 60 eval(sprintf('d.%s=regcut(d.%s,indServ);',names{i},names{i}));
61 else
62 error('Do not know which dimension to cut over');
63 end
932 64 end
1129 65 end
66
206 67 return
Other subfunctions in this file are not included in this listing.