This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
massageDatafunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
159
dfinal = framecutSub(d, logica...
10.208 s46.3%
153
dreceiver = framecutSub(drecei...
10.197 s43.9%
160
clear d;
10.022 s4.9%
161
dfinal.antenna0.receiver = dre...
10.011 s2.4%
157
dthermal = framecutSub(dtherma...
10.011 s2.4%
All other lines  0 s0%
Totals  0.448 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
massageData>framecutSubsubfunction40.415 s92.7%
Self time (built-ins, overhead, etc.)  0.033 s7.3%
Totals  0.448 s100% 
Code Analyzer results
Line numberMessage
134Use || instead of | as the OR operator in (scalar) conditional statements.
134Use || instead of | as the OR operator in (scalar) conditional statements.
148The value assigned to variable 'indFinal' might be unused.
Coverage results
[ Show coverage for parent directory ]
Total lines in function45
Non-code lines (comments, blank lines)15
Code lines (lines that can run)30
Code lines that did run28
Code lines that did not run2
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.