This is a static copy of a profile reportHome
cutObs>framecutSub (468 calls, 3.126 sec)
Generated 05-Aug-2011 13:03:46 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/cutObs.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 |
102 | eval(sprintf('d.%s=regcut(d.%s... | 486 | 2.022 s | 64.7% |  |
104 | eval(sprintf('d.%s=regcut(d.%s... | 1170 | 0.328 s | 10.5% |  |
97 | if(eval(sprintf('isstruct(d.%s... | 2502 | 0.317 s | 10.1% |  |
100 | eval(sprintf('thisSize = size(... | 2052 | 0.295 s | 9.4% |  |
106 | eval(sprintf('d.%s=regcut(d.%s... | 396 | 0.066 s | 2.1% |  |
All other lines | | | 0.098 s | 3.1% |  |
Totals | | | 3.126 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
cutObs>regcut | subfunction | 2052 | 2.088 s | 66.8% |  |
cutObs>framecutSub | subfunction | 450 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 1.038 s | 33.2% |  |
Totals | | | 3.126 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
93 function d = framecutSub(d, indRx, indServ, indReg)
94
0.01 468 95 names=fieldnames(d);
468 96 for i=1:length(names)
0.32 2502 97 if(eval(sprintf('isstruct(d.%s)',names{i})))
0.04 450 98 eval(sprintf('d.%s=framecutSub(d.%s,indRx, indServ, indReg);',names{i},names{i}));
2052 99 else
0.30 2052 100 eval(sprintf('thisSize = size(d.%s,1);', names{i}));
0.02 2052 101 if(thisSize == length(indRx))
2.02 486 102 eval(sprintf('d.%s=regcut(d.%s,indRx);',names{i},names{i}));
1566 103 elseif(thisSize == length(indReg))
0.33 1170 104 eval(sprintf('d.%s=regcut(d.%s,indReg);',names{i},names{i}));
396 105 elseif(thisSize == length(indServ))
0.07 396 106 eval(sprintf('d.%s=regcut(d.%s,indServ);',names{i},names{i}));
107 else
108 error('Do not know which dimensino to cut over');
109 end
2052 110 end
0.01 2502 111 end
112
468 113 return
Other subfunctions in this file are not included in this listing.