This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
packd | function | 4 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
40 | dflags = convSubFunc(flags, si... | 4 | 0.984 s | 100.0% |  |
45 | return; | 4 | 0 s | 0% |  |
41 | end | 4 | 0 s | 0% |  |
38 | else | 4 | 0 s | 0% |  |
13 | if(isstruct(flags)) | 4 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.984 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 45 |
Non-code lines (comments, blank lines) | 24 |
Code lines (lines that can run) | 21 |
Code lines that did run | 5 |
Code lines that did not run | 16 |
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.