This is a static copy of a profile reportHome
flagData>dataFilter (1 call, 0.208 sec)
Generated 05-Aug-2011 13:00:37 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/flag/flagData.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
flagData | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
65 | remFast = (bitand(repmat(d.fl... | 1 | 0.186 s | 89.5% |  |
91 | d.flags.fast = d.flags.bit.f... | 1 | 0.011 s | 5.3% |  |
64 | remMed = (bitand(d.flags.mas... | 1 | 0.011 s | 5.3% |  |
93 | return; | 1 | 0 s | 0% |  |
90 | d.flags.medium = d.flags.bit.m... | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.208 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
repmat | function | 1 | 0.011 s | 5.3% |  |
Self time (built-ins, overhead, etc.) | | | 0.197 s | 94.7% |  |
Totals | | | 0.208 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 34 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 24 |
Code lines that did run | 14 |
Code lines that did not run | 10 |
Coverage (did run/can run) | 58.33 % |
Function listing
time calls line
60 function d = dataFilter(d, bitmask, flagTime)
61
62 % first we flag on the bitmask
1 63 remSlow = (bitand(d.flags.mask.slow, sum(2.^bitmask))) & 1;
0.01 1 64 remMed = (bitand(d.flags.mask.medium, sum(2.^bitmask))) & 1;
0.19 1 65 remFast = (bitand(repmat(d.flags.mask.fast, [1 3]), sum(2.^bitmask))) & 1;
66
1 67 f = find(remSlow);
1 68 d.flags.bit.slow(f) = bitset(d.flags.bit.slow(f),1);
1 69 f = find(remMed);
1 70 d.flags.bit.medium(f) = bitset(d.flags.bit.medium(f),1);
1 71 f = find(remFast);
1 72 d.flags.bit.fast(f) = bitset(d.flags.bit.fast(f),1);
73
74 % next we do the time flagging
1 75 if(~isempty(flagTime))
76 flagTime = flagTime*6.944444444e-4;
77 t = flagTime(:,2) - flagTime(:,1);
78 if any(t<0)
79 error('stop time should be after start time');
80 end
81 s = size(flagTime, 1);
82
83 for m=1:s
84 d = userTimeFlag(d, flagTime(m,:));
85 end
86 end
87
88 % set the boolean flags
1 89 d.flags.slow = d.flags.bit.slow>0;
1 90 d.flags.medium = d.flags.bit.medium>0;
0.01 1 91 d.flags.fast = d.flags.bit.fast>0;
92
1 93 return;
Other subfunctions in this file are not included in this listing.