this contains many slices of times the idea you put mem status in the current time slice and then after a certain period of time, it rolls off so we check again
More...
this contains many slices of times the idea you put mem status in the current time slice and then after a certain period of time, it rolls off so we check again
◆ Rolling()
| mongo::RecordAccessTracker::Rolling::Rolling |
( |
| ) |
|
|
default |
◆ _rotate()
| void mongo::RecordAccessTracker::Rolling::_rotate |
( |
ClockSource * |
cs | ) |
|
|
private |
◆ access()
| bool mongo::RecordAccessTracker::Rolling::access |
( |
size_t |
region, |
|
|
short |
offset, |
|
|
bool |
doHalf, |
|
|
ClockSource * |
cs |
|
) |
| |
After this call, we assume the page is in RAM.
- Parameters
-
| doHalf | if this is a known good access, want to put in first half. |
- Returns
- whether we know the page is in RAM
◆ updateLastRotate()
| void mongo::RecordAccessTracker::Rolling::updateLastRotate |
( |
ClockSource * |
cs | ) |
|
Updates _lastRotate to the current time.
◆ _curSlice
| int mongo::RecordAccessTracker::Rolling::_curSlice = 0 |
|
private |
◆ _lastRotate
| Date_t mongo::RecordAccessTracker::Rolling::_lastRotate |
|
private |
◆ _lock
| SimpleMutex mongo::RecordAccessTracker::Rolling::_lock |
|
private |
◆ _slices
The documentation for this class was generated from the following files: