This is a static copy of a profile reportHome
massageData>fixTimingOrder (1 call, 0.448 sec)
Generated 05-Aug-2011 13:00:44 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/flag/massageData.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 |
159 | dfinal = framecutSub(d, logica... | 1 | 0.208 s | 46.3% |  |
153 | dreceiver = framecutSub(drecei... | 1 | 0.197 s | 43.9% |  |
160 | clear d; | 1 | 0.022 s | 4.9% |  |
161 | dfinal.antenna0.receiver = dre... | 1 | 0.011 s | 2.4% |  |
157 | dthermal = framecutSub(dtherma... | 1 | 0.011 s | 2.4% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.448 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
massageData>framecutSub | subfunction | 4 | 0.415 s | 92.7% |  |
Self time (built-ins, overhead, etc.) | | | 0.033 s | 7.3% |  |
Totals | | | 0.448 s | 100% | |
Code Analyzer results
Line number | Message |
134 | Use || instead of | as the OR operator in (scalar) conditional statements. |
134 | Use || instead of | as the OR operator in (scalar) conditional statements. |
148 | The value assigned to variable 'indFinal' might be unused. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 45 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 30 |
Code lines that did run | 28 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 93.33 % |
Function listing
time calls line
129 function dfinal = fixTimingOrder(d)
130 % basically the servo and the receiver data are from two seconds ago,
131 % cryocon is from 1 second ago, and the data frame is current time
132
1 133 if(isfield(d, 'antenna0'))
1 134 if(~isfield(d.antenna0, 'servo') | ~isfield(d.antenna0, 'receiver') | ...
1 135 ~isfield(d.antenna0, 'thermal'))
136 return;
137 end
1 138 end
139
1 140 dservo = d.antenna0.servo;
1 141 dreceiver = d.antenna0.receiver;
1 142 dthermal = d.antenna0.thermal;
1 143 lengthOrig = size(d.array.frame.utc);
144
145 % now from dfinal we cut out the last frame and from everything else we cut
146 % out the first frame.
1 147 indFinal = ones(lengthOrig);
1 148 indFinal(length(indFinal)-1:length(indFinal)) = 0;
149
1 150 indFinal = ones(lengthOrig);
1 151 indFinal(1:2) = 0;
1 152 dservo = framecutSub(dservo, logical(indFinal));
0.20 1 153 dreceiver = framecutSub(dreceiver, logical(indFinal));
154
1 155 indFinal = ones(lengthOrig);
1 156 indFinal([1 length(indFinal)]) = 0;
0.01 1 157 dthermal = framecutSub(dthermal, logical(indFinal));
158
0.21 1 159 dfinal = framecutSub(d, logical(indFinal));
0.02 1 160 clear d;
0.01 1 161 dfinal.antenna0.receiver = dreceiver;
1 162 dfinal.antenna0.servo.utc = dservo.utc;
1 163 dfinal.antenna0.servo.fast_az_pos = dservo.fast_az_pos;
1 164 dfinal.antenna0.servo.fast_el_pos = dservo.fast_el_pos;
1 165 dfinal.antenna0.servo.fast_az_err = dservo.fast_az_err;
1 166 dfinal.antenna0.servo.fast_el_err = dservo.fast_el_err;
1 167 dfinal.antenna0.thermal.utc = dthermal.utc;
1 168 dfinal.antenna0.thermal.ccTemperatureLoad = dthermal.ccTemperatureLoad;
169
170 % now all the data should be on the same timescale, which should make things
171 % easier to cut/etc.
172
1 173 return;
Other subfunctions in this file are not included in this listing.