This is a static copy of a profile report

Home

convertDataFlagsToFlagSize (4 calls, 0.984 sec)
Generated 05-Aug-2011 13:03:46 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/flag/convertDataFlagsToFlagSize.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
packdfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
40
dflags = convSubFunc(flags, si...
40.984 s100.0%
45
return;
40 s0%
41
end
40 s0%
38
else
40 s0%
13
if(isstruct(flags))
40 s0%
All other lines  0 s0%
Totals  0.984 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
convertDataFlagsToFlagSize>convSubFuncsubfunction40.984 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.984 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function45
Non-code lines (comments, blank lines)24
Code lines (lines that can run)21
Code lines that did run5
Code lines that did not run16
Coverage (did run/can run)23.81 %
Function listing
   time   calls  line
1 function dflags = convertDataFlagsToFlagSize(flags)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function dflags = convertDataFlagsToFlagSize(flags)
6 %
7 % function that converts our flag data (whatever size it is) to the Nby3
8 % standard in the data reduction
9 %
10 % sjcm
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12
4 13 if(isstruct(flags))
14 % if it's a structure, do this
15 NUMDIMS = size(flags.fast,2);
16
17 dflags = flags;
18 % first the bits, and only the regular flags
19 bitfast = convSubFunc(flags.bit.fast, NUMDIMS);
20 if(isfield(flags.bit, 'switch'))
21 bitfast2 = convSubFunc(flags.bit.switch, 24);
22 bitfast = bitor(bitfast, bitfast2);
23 dflags.bit = rmfield(dflags.bit, 'switch');
24 end
25
26 % next the regular deal
27 fast = convSubFunc(flags.fast, NUMDIMS);
28 if(isfield(flags, 'switch'))
29 fast2 = convSubFunc(flags.bit.switch, 24);
30 fast = bitor(fast, fast2);
31 dflags = rmfield(dflags, 'switch');
32 end
33
34
35 dflags.bit.fast = bitfast;
36 dflags.fast = (bitfast | fast)>0;
37
4 38 else
39 % it's an array
0.98 4 40 dflags = convSubFunc(flags, size(flags,2));
4 41 end
42
43
44
4 45 return;

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