Home | History | Annotate | Download | only in esan

Lines Matching refs:BitIdx

121 // It does *not* clear for BitIdx==TotalWorkingSetBitIdx, as that top bit
123 static u32 countAndClearShadowValues(u32 BitIdx, uptr ShadowStart,
126 u32 ByteValue = 0x1 << BitIdx;
131 bool Accum = getFlags()->record_snapshots && BitIdx < MaxAccumBitIdx;
133 bool Clear = BitIdx < TotalWorkingSetBitIdx;
156 // i.e., the number of non-zero bits indexed by BitIdx in each shadow byte.
158 // We do *not* clear for BitIdx==TotalWorkingSetBitIdx, as that top bit
160 static u32 computeWorkingSizeAndReset(u32 BitIdx) {
171 WorkingSetSize += countAndClearShadowValues(BitIdx, Start, End);
180 u32 BitIdx = CurWorkingSetBitIdx;
183 while (BitIdx <= MaxAccumBitIdx && (SnapshotNum % Freq) == 0) {
184 u32 NumLines = computeWorkingSizeAndReset(BitIdx);
186 SnapshotNum, BitIdx, Freq, NumLines);
187 SizePerFreq[BitIdx].push_back(NumLines);
189 BitIdx++;