MySQL 9.1.0
Source Code Documentation
|
Per index buffer pool statistics - contains how many pages for each index are cached in the buffer pool(s). More...
#include <buf0stats.h>
Public Member Functions | |
buf_stat_per_index_t () | |
Constructor. More... | |
~buf_stat_per_index_t () | |
Destructor. More... | |
void | inc (const index_id_t &id) |
Increment the number of pages for a given index with 1. More... | |
void | dec (const index_id_t &id) |
Decrement the number of pages for a given index with 1. More... | |
uint64_t | get (const index_id_t &id) |
Get the number of pages in the buffer pool for a given index. More... | |
Private Member Functions | |
bool | should_skip (const index_id_t &id) |
Assess if we should skip a page from accounting. More... | |
Private Attributes | |
ut_lock_free_hash_t * | m_store |
(key, value) storage. More... | |
Per index buffer pool statistics - contains how many pages for each index are cached in the buffer pool(s).
This is a key,value store where the key is the index id and the value is the number of pages in the buffer pool that belong to this index.
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
Decrement the number of pages for a given index with 1.
[in] | id | id of the index whose count to decrement |
|
inline |
Get the number of pages in the buffer pool for a given index.
[in] | id | id of the index whose pages to peek |
|
inline |
Increment the number of pages for a given index with 1.
[in] | id | id of the index whose count to increment |
|
inlineprivate |
Assess if we should skip a page from accounting.
[in] | id | index_id of the page |
|
private |
(key, value) storage.