This is a static copy of a profile reportHome
convertFlagToDataSize (26 calls, 2.940 sec)
Generated 05-Aug-2011 13:03:46 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/flag/convertFlagToDataSize.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 20 | flags.bit.switch = convSubFunc... | 9 | 1.716 s | 58.4% |  |
| 25 | flags = convSubFunc(flag, NUMD... | 17 | 0.689 s | 23.4% |  |
| 21 | flags.bit.fast = convSubFunc... | 9 | 0.525 s | 17.8% |  |
| 16 | flags.fast = convSubFunc(fla... | 1 | 0.011 s | 0.4% |  |
| 30 | return; | 26 | 0 s | 0% |  |
| All other lines | | | 0.000 s | 0.0% |  |
| Totals | | | 2.940 s | 100% | |
Children (called functions)
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| convertFlagToDataSize>convSubFunc | subfunction | 37 | 2.940 s | 100.0% |  |
| Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
| Totals | | | 2.940 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
| Total lines in function | 30 |
| Non-code lines (comments, blank lines) | 17 |
| Code lines (lines that can run) | 13 |
| Code lines that did run | 13 |
| Code lines that did not run | 0 |
| Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function flags = convertFlagToDataSize(flag, NUMDIMS)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function flags = convertFlagToDataSize(flag, NUMDIMS)
6 %
7 % function that converts our flag data (Nby3) to the size of the data and
8 % switch data register
9 %
10 % sjcm
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12
26 13 flags = flag;
26 14 if(isfield(flag, 'fast'))
1 15 flags.switch = convSubFunc(flag.fast, 24);
0.01 1 16 flags.fast = convSubFunc(flag.fast, NUMDIMS);
1 17 end
18
26 19 if(isfield(flag, 'bit'))
1.72 9 20 flags.bit.switch = convSubFunc(flag.bit.fast, 24);
0.52 9 21 flags.bit.fast = convSubFunc(flag.bit.fast, NUMDIMS);
9 22 end
23
26 24 if(~isstruct(flag))
0.69 17 25 flags = convSubFunc(flag, NUMDIMS);
17 26 end
27
28
29
26 30 return;
Other subfunctions in this file are not included in this listing.