This is a static copy of a profile report

Home

deglitchWrapper (1 call, 7.848 sec)
Generated 05-Aug-2011 13:03:25 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/support/deglitchWrapper.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
reduceDatafunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
44
[d flag] = packd(d, flags, 'no...
14.886 s62.3%
36
flags.new = deglitch(d, flagPa...
12.634 s33.6%
49
d = updateFlags(d, 1);
10.175 s2.2%
48
d = setNewFlag(d, flag.new.out...
10.087 s1.1%
40
setPlotDisplay(plotparams.plot...
10.044 s0.6%
All other lines  0.022 s0.3%
Totals  7.848 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
packdfunction14.886 s62.3%
deglitchfunction12.634 s33.6%
updateFlagsfunction10.175 s2.2%
setNewFlagfunction10.087 s1.1%
setPlotDisplayfunction10.044 s0.6%
logcalfunction20 s0%
checkparfunction10 s0%
Self time (built-ins, overhead, etc.)  0.022 s0.3%
Totals  7.848 s100% 
Code Analyzer results
Line numberMessage
1Extra semicolon is unnecessary.
Coverage results
[ Show coverage for parent directory ]
Total lines in function54
Non-code lines (comments, blank lines)31
Code lines (lines that can run)23
Code lines that did run14
Code lines that did not run9
Coverage (did run/can run)60.87 %
Function listing
   time   calls  line
1 function d = deglitchWrapper(d, plotparams, parm, field);
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function d = deglitchWrapper(d, plotparams, parm, field);
6 %
7 % reduceData function that calls the deglitching algorithm with
8 % parameters parm.
9 %
10 % sjcm
11 %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14 % check if we have the flagging parameters
0.01 1 15 parFlag = checkpar(parm, 'deglitch');
16
1 17 if(parFlag)
1 18 flagParams = [parm.deglitch.chan1 parm.deglitch.chan2];
19 else
20 display('Using Default deglitching parameters');
21 flagParams = [10 5];
22 end
23
1 24 [d,q] = logcal(d, 'deglitch');
1 25 if (q)
26 disp('Deglitching has already been applied')
27 disp(' ')
28 d=checkstatus(d);
29 return
30 end
31
32 % first we separate the old flags
1 33 flags.old.bit = d.flags.bit;
34
35 % if deglitching hasn't been done, do it.
2.63 1 36 flags.new = deglitch(d, flagParams);
37
1 38 display('Plotting data');
39
0.04 1 40 setPlotDisplay(plotparams.plot);
41
42 % d in packd should be unchanged.
43
4.89 1 44 [d flag] = packd(d, flags, 'none', 'deglitch', plotparams, 'Deglitching Plots', field);
45
46 % next we fix our flags -- all the ones in this stage, including
47 % interactive flagging, are in flag.new.out
0.09 1 48 d = setNewFlag(d, flag.new.out, 'deglitch');
0.17 1 49 d = updateFlags(d, 1);
50
51
1 52 d = logcal(d, 'deglitch');
53
1 54 return;

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