This is a static copy of a profile report

Home

logcal (18 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:49 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/support/logcal.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
deglitchWrapperfunction2
rfiWrapperfunction2
mainsWrapperfunction2
alphaWrapperfunction2
loadWrapperfunction2
tauCalWrapperfunction2
overfWrapperfunction1
reduceData>writeOutFitssubfunction1
getIVfunction4
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
64
return;
170 s0%
62
end
20 s0%
61
end
10 s0%
60
q=0;
10 s0%
59
elseif (nargout==2)
10 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function64
Non-code lines (comments, blank lines)34
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
1 function [d,q]=logcal(d,type)
2
3 % function [d,q]=logcal(d,type)
4 %
5 % logs the calibration step performed on the data in field d.pipe
6 %
7 % q output is optional - if used type will not be logged
8 % q=1 - calibration of 'type' has already been applied
9 % q=0 - calibration of 'type' has not been applied
10 %
11 % type: 'shortfall'
12 % 'deglitch'
13 % 'rfi'
14 % 'mains'
15 % 'alpha'
16 % 'alpha_PolOnly'
17 % 'rfactor'
18 % 'load'
19 % 'tau'
20 % 'astro'
21 % 'iv'
22 %
23 % SJCM
24 %
25 % MAS 20-Dec-2010 -- Updated to remove rfi1 and rfi2. Now just rfi.
26
27 % first check whether or not type is the right string
28
18 29 switch type
18 30 case {'shortfall', 'deglitch', 'rfi', 'mains', 'alpha_PolOnly', 'alpha', ...
31 'rfactor', 'load', 'tau', 'iv', 'astro'}
32
33 %do nothing and pass through
34
1 35 otherwise
1 36 disp('Invalid type argument in logcal')
1 37 return
38 end
39
17 40 if (isfield(d,'pipe'))
15 41 for i=1:length(d.pipe)
58 42 if (strcmp(d.pipe{i},type))
1 43 if (nargout==2)
1 44 q=1;
1 45 end
1 46 break;
47 end
57 48 if (i==length(d.pipe))
14 49 if (nargout==1)
6 50 d.pipe{i+1}=type;
8 51 elseif nargout==2
8 52 q=0;
8 53 end
14 54 end
57 55 end
2 56 else
2 57 if (nargout==1)
1 58 d.pipe={type};
1 59 elseif (nargout==2)
1 60 q=0;
1 61 end
2 62 end
63
17 64 return;

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