This is a static copy of a profile report

Home

flagData>reportFlags (1 call, 0.579 sec)
Generated 05-Aug-2011 13:01:32 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
154
rem(m) = sum(bitand(d.flags.ma...
90.579 s100.0%
172
return;
10 s0%
170
display(sprintf('\n%s %6d \n\n...
10 s0%
169
end
90 s0%
168
display(sprintf('%s %6d ', bit...
90 s0%
All other lines  0 s0%
Totals  0.579 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
151Use of brackets [] is unnecessary. Use parentheses to group, if needed.
154The variable 'rem' appears to change size on every loop iteration. Consider preallocating for speed.
Coverage results
[ Show coverage for parent directory ]
Total lines in function43
Non-code lines (comments, blank lines)26
Code lines (lines that can run)17
Code lines that did run17
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
130 function reportFlags(d, bitmask)
131
1 132 numFrames = length(d.flags.mask.fast);
1 133 bitlist = [
134 ' FRAME: ';
135 ' RX COLD: ';
136 ' TRACKER STATE: ';
137 ' TRACKER LACK: ';
138 ' ELEVATION: ';
139 ' WEATHER: ';
140 ' CONTINUOUS: ';
141 ' DATA BACKLOG: ';
142 ' BACKEND CLOCK: ';
143 ' BACKEND 1PPS: ';
144 ' SERVO/CRYO 1PPS: ';
145 ' BACKEND COMMS: ';
146 ' INTEGRATION SHORTFALL: ';
147 ' SUN OVER HORIZON: ';
148 ' MOON PROXIMITY: ';
149 ' CONTROL BUILDING: '];
150
1 151 last = [' TOTAL: '];
152
1 153 for m=1:length(bitmask)
0.58 9 154 rem(m) = sum(bitand(d.flags.mask.fast, 2^bitmask(m)) & 1);
9 155 end
1 156 total = sum(d.flags.fast(:,1));
157
158
1 159 display(sprintf(' -----------------------------------------------------'))
1 160 display(sprintf(' ------------------ FLAGGING REPORT ------------------'));
1 161 display(sprintf(' -----------------------------------------------------\n'))
162
163
164
1 165 display(sprintf(' Out of %6d frames, the number flagged follows:\n', numFrames));
1 166 display(sprintf(' ------------------- ANTENNA FLAGS ----------------'));
1 167 for m=1:length(bitmask)
9 168 display(sprintf('%s %6d ', bitlist(bitmask(m)+1,:), rem(m)));
9 169 end
1 170 display(sprintf('\n%s %6d \n\n', last(:), total));
171
1 172 return;