This is a static copy of a profile report

Home

read_arc>cutDesiredData (1 call, 0.361 sec)
Generated 05-Aug-2011 13:00:59 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/read_arc.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
read_arcfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
281
d = framecut(d, ind, 'regular'...
10.339 s93.9%
270
indFs = mean(mean(indF,3),2)==...
10.011 s3.0%
269
indF = permute(indF, [3 1 2]);
10.011 s3.0%
283
return;
10 s0%
276
ind  = indMs & indFs &...
10 s0%
All other lines  0.000 s0.0%
Totals  0.361 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
framecutfunction10.339 s93.9%
meanfunction30.011 s3.0%
Self time (built-ins, overhead, etc.)  0.011 s3.0%
Totals  0.361 s100% 
Code Analyzer results
Line numberMessage
255Use || instead of | as the OR operator in (scalar) conditional statements.
Coverage results
[ Show coverage for parent directory ]
Total lines in function38
Non-code lines (comments, blank lines)16
Code lines (lines that can run)22
Code lines that did run17
Code lines that did not run5
Coverage (did run/can run)77.27 %
Function listing
   time   calls  line
246 function d = cutDesiredData(d, mjdstartorig, mjdstoporig)
247
1 248 if(~isfield(d, 'array'))
249 return;
250 end
251
1 252 if(~isfield(d, 'antenna0'))
253 return;
1 254 else
1 255 if(~isfield(d.antenna0, 'receiver') | ~isfield(d.antenna0, 'servo'))
256 return;
257 end
1 258 end
259
260
1 261 indFast = d.antenna0.receiver.utc>=mjdstartorig & ...
262 d.antenna0.receiver.utc<mjdstoporig;
1 263 indMed = d.antenna0.servo.utc>=mjdstartorig & ...
264 d.antenna0.servo.utc<mjdstoporig;
1 265 indSlow = d.array.frame.utc>=mjdstartorig & d.array.frame.utc<mjdstoporig;
266
267
1 268 indF = reshape(indFast, [5 20 length(indSlow)]);
0.01 1 269 indF = permute(indF, [3 1 2]);
0.01 1 270 indFs = mean(mean(indF,3),2)==1;
271
1 272 indM = reshape(indMed, [5 length(indSlow)]);
1 273 indM = permute(indM, [2 1]);
1 274 indMs = mean(indM,2)==1;
275
1 276 ind = indMs & indFs & indSlow;
277
278 % these are the real ind on the slow scale. now we up it to the longer
279 % scales -- already done in framecut.
280
0.34 1 281 d = framecut(d, ind, 'regular');
282
1 283 return;

Other subfunctions in this file are not included in this listing.