This is a static copy of a profile report

Home

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 NameFunction TypeCalls
flagMaskfunction14
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
186
d.flags.mask.fast   = d.flags....
140.109 s62.5%
174
flagRegTemp = mean(flagRegTemp...
70.011 s6.3%
171
flagRxTemp   = flagRxTemp(:);
20.011 s6.3%
161
flagRxTemp   = flagRxTemp';
50.011 s6.3%
160
flagRxTemp   = repmat(flagRegT...
50.011 s6.3%
All other lines  0.022 s12.5%
Totals  0.175 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
repmatfunction120.022 s12.5%
meanfunction160.011 s6.3%
Self time (built-ins, overhead, etc.)  0.142 s81.2%
Totals  0.175 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function37
Non-code lines (comments, blank lines)9
Code lines (lines that can run)28
Code lines that did run25
Code lines that did not run3
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.