This is a static copy of a profile reportHome
flagMask>applyFlag (14 calls, 0.175 sec)
Generated 05-Aug-2011 13:00:37 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/flag/flagMask.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
flagMask | function | 14 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
186 | d.flags.mask.fast = d.flags.... | 14 | 0.109 s | 62.5% |  |
174 | flagRegTemp = mean(flagRegTemp... | 7 | 0.011 s | 6.3% |  |
171 | flagRxTemp = flagRxTemp(:); | 2 | 0.011 s | 6.3% |  |
161 | flagRxTemp = flagRxTemp'; | 5 | 0.011 s | 6.3% |  |
160 | flagRxTemp = repmat(flagRegT... | 5 | 0.011 s | 6.3% |  |
All other lines | | | 0.022 s | 12.5% |  |
Totals | | | 0.175 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
repmat | function | 12 | 0.022 s | 12.5% |  |
mean | function | 16 | 0.011 s | 6.3% |  |
Self time (built-ins, overhead, etc.) | | | 0.142 s | 81.2% |  |
Totals | | | 0.175 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 37 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 28 |
Code lines that did run | 25 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 89.29 % |
Function listing
time calls line
152 function d = applyFlag(d, flagRegTemp, flagServTemp, ...
153 flagRxTemp, bitNum)
154
14 155 if(~isempty(flagRegTemp))
0.01 5 156 flagServTemp = repmat(flagRegTemp, [1 5]);
5 157 flagServTemp = flagServTemp';
5 158 flagServTemp = flagServTemp(:);
159
0.01 5 160 flagRxTemp = repmat(flagRegTemp, [1 100]);
0.01 5 161 flagRxTemp = flagRxTemp';
5 162 flagRxTemp = flagRxTemp(:);
163
9 164 elseif(~isempty(flagServTemp))
2 165 flagRegTemp = reshape(flagServTemp, [5, length(flagServTemp)/5]);
2 166 flagRegTemp = mean(flagRegTemp) == 1;
2 167 flagRegTemp = flagRegTemp';
168
2 169 flagRxTemp = repmat(flagServTemp, [1 20]);
2 170 flagRxTemp = flagRxTemp';
0.01 2 171 flagRxTemp = flagRxTemp(:);
7 172 elseif(~isempty(flagRxTemp))
7 173 flagRegTemp = reshape(flagRxTemp, [100, length(flagRxTemp)/100]);
0.01 7 174 flagRegTemp = mean(flagRegTemp) == 1;
7 175 flagRegTemp = flagRegTemp';
176
7 177 flagServTemp = reshape(flagRxTemp, [20, length(flagRxTemp)/20]);
7 178 flagServTemp = mean(flagServTemp) == 1;
7 179 flagServTemp = flagServTemp';
180 else
181 error('No flags passed');
182 end
183
14 184 d.flags.mask.slow = d.flags.mask.slow + 2^(bitNum)*double(flagRegTemp);
14 185 d.flags.mask.medium = d.flags.mask.medium + 2^(bitNum)*double(flagServTemp);
0.11 14 186 d.flags.mask.fast = d.flags.mask.fast+ 2^(bitNum)*double(flagRxTemp);
187
14 188 return;
Other subfunctions in this file are not included in this listing.