This is a static copy of a profile report

Home

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 NameFunction TypeCalls
flagDatafunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
65
remFast  = (bitand(repmat(d.fl...
10.186 s89.5%
91
d.flags.fast   = d.flags.bit.f...
10.011 s5.3%
64
remMed   = (bitand(d.flags.mas...
10.011 s5.3%
93
return;
10 s0%
90
d.flags.medium = d.flags.bit.m...
10 s0%
All other lines  0 s0%
Totals  0.208 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
repmatfunction10.011 s5.3%
Self time (built-ins, overhead, etc.)  0.197 s94.7%
Totals  0.208 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function34
Non-code lines (comments, blank lines)10
Code lines (lines that can run)24
Code lines that did run14
Code lines that did not run10
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.