OpenSDN source code
|
#include <gendb_statistics.h>
Public Types | |
enum | TableOp { TABLE_OP_NONE, TABLE_OP_WRITE, TABLE_OP_WRITE_FAIL, TABLE_OP_WRITE_BACK_PRESSURE_FAIL, TABLE_OP_READ, TABLE_OP_READ_FAIL } |
Public Member Functions | |
GenDbIfStats () | |
void | IncrementErrors (IfErrors::Type type) |
void | IncrementTableStats (TableOp op, const std::string &table_name) |
void | IncrementTableWrite (const std::string &table_name) |
void | IncrementTableWrite (const std::string &table_name, uint64_t num_writes) |
void | IncrementTableWriteFail (const std::string &table_name) |
void | IncrementTableWriteBackPressureFail (const std::string &table_name) |
void | IncrementTableWriteFail (const std::string &table_name, uint64_t num_writes) |
void | IncrementTableRead (const std::string &table_name) |
void | IncrementTableRead (const std::string &table_name, uint64_t num_reads) |
void | IncrementTableReadFail (const std::string &table_name) |
void | IncrementTableReadFail (const std::string &table_name, uint64_t num_reads) |
void | IncrementTableReadBackPressureFail (const std::string &table_name) |
void | GetDiffs (std::vector< GenDb::DbTableInfo > *vdbti, GenDb::DbErrors *dbe) |
void | GetCumulative (std::vector< GenDb::DbTableInfo > *vdbti, GenDb::DbErrors *dbe) const |
Private Member Functions | |
void | IncrementTableStatsInternal (const std::string &table_name, bool write, bool fail, bool back_pressure, uint64_t num) |
Private Attributes | |
GenDb::DbTableStatistics | table_stats_ |
IfErrors | errors_ |
IfErrors | cumulative_errors_ |
Definition at line 87 of file gendb_statistics.h.
Enumerator | |
---|---|
TABLE_OP_NONE | |
TABLE_OP_WRITE | |
TABLE_OP_WRITE_FAIL | |
TABLE_OP_WRITE_BACK_PRESSURE_FAIL | |
TABLE_OP_READ | |
TABLE_OP_READ_FAIL |
Definition at line 91 of file gendb_statistics.h.
|
inline |
Definition at line 89 of file gendb_statistics.h.
void GenDb::GenDbIfStats::GetCumulative | ( | std::vector< GenDb::DbTableInfo > * | vdbti, |
GenDb::DbErrors * | dbe | ||
) | const |
Definition at line 232 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::GetDiffs | ( | std::vector< GenDb::DbTableInfo > * | vdbti, |
GenDb::DbErrors * | dbe | ||
) |
Definition at line 225 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementErrors | ( | IfErrors::Type | type | ) |
Definition at line 220 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableRead | ( | const std::string & | table_name | ) |
Definition at line 197 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableRead | ( | const std::string & | table_name, |
uint64_t | num_reads | ||
) |
Definition at line 201 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableReadBackPressureFail | ( | const std::string & | table_name | ) |
Definition at line 215 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableReadFail | ( | const std::string & | table_name | ) |
Definition at line 206 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableReadFail | ( | const std::string & | table_name, |
uint64_t | num_reads | ||
) |
Definition at line 210 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableStats | ( | GenDbIfStats::TableOp | op, |
const std::string & | table_name | ||
) |
Definition at line 149 of file gendb_statistics.cc.
|
private |
Definition at line 144 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableWrite | ( | const std::string & | table_name | ) |
Definition at line 174 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableWrite | ( | const std::string & | table_name, |
uint64_t | num_writes | ||
) |
Definition at line 178 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableWriteBackPressureFail | ( | const std::string & | table_name | ) |
Definition at line 192 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableWriteFail | ( | const std::string & | table_name | ) |
Definition at line 183 of file gendb_statistics.cc.
void GenDb::GenDbIfStats::IncrementTableWriteFail | ( | const std::string & | table_name, |
uint64_t | num_writes | ||
) |
Definition at line 187 of file gendb_statistics.cc.
|
private |
Definition at line 121 of file gendb_statistics.h.
|
private |
Definition at line 120 of file gendb_statistics.h.
|
private |
Definition at line 119 of file gendb_statistics.h.