#include <context.h>
|
void | init () |
| Allocates this probe's internal structures. More...
|
|
void | destroy () |
| Claims this probe's internal resources. More...
|
|
◆ Transaction_compression()
binlog::monitoring::Transaction_compression::Transaction_compression |
( |
| ) |
|
Constructor.
Transaction_compression -----------------------------------------—.
The constructed object is reset after this returns.
◆ ~Transaction_compression()
binlog::monitoring::Transaction_compression::~Transaction_compression |
( |
| ) |
|
|
virtual |
Destructor.
Once the destructor returns the internal data structures have been destroyed.
◆ destroy()
void binlog::monitoring::Transaction_compression::destroy |
( |
| ) |
|
|
protected |
Claims this probe's internal resources.
◆ get_stats()
void binlog::monitoring::Transaction_compression::get_stats |
( |
std::vector< Compression_stats * > & |
stats | ) |
|
Gets the contents of the probe.
The contents are a copy of the internal stats and as such, the caller must free the resources in stats once they are no longer needed.
- Parameters
-
stats | the container to fill in with copies of the stats in the probe. |
◆ init()
void binlog::monitoring::Transaction_compression::init |
( |
| ) |
|
|
protected |
Allocates this probe's internal structures.
◆ number_stats_rows()
int binlog::monitoring::Transaction_compression::number_stats_rows |
( |
| ) |
|
Gets the number of stats in the probe.
Each combination of log_type and comp_type creates a row. Only those rows that have stats collected are considered.
- Returns
- the number of combinations between log_type and comp_type that have stats collected.
◆ reset()
void binlog::monitoring::Transaction_compression::reset |
( |
| ) |
|
Resets the stats of this probe to zero.
◆ update()
Update this probe's stats.
- Parameters
-
log_type | the type of the log that this invocation refers to. |
comp_type | the compression type for this invocation. |
gtid | the transaction identifier for this invocation. |
transaction_timestamp | the transaction commit timestamp in seconds since the UNIX epoch. |
comp_bytes | the bytes compressed by this transaction. |
uncomp_bytes | the bytes uncompressed by this transaction. |
tsid_map | the Tsid_map to use to create a string representation from the transaction identifier provided. |
◆ m_stats
The map that contains rows of stats in the probe.
A stats row is a combination of log type and compression type.
The documentation for this class was generated from the following files: