-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use PerfCounters to replace counters & metrics (#129)
- Loading branch information
Showing
74 changed files
with
431 additions
and
2,757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
docker/monitor-compose/grafana/dashboards/my_dashboard.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
#ifndef LEANSTORE_PERF_COUNTERS_H | ||
#define LEANSTORE_PERF_COUNTERS_H | ||
|
||
#include <stdatomic.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
//! The counter type. | ||
typedef atomic_ullong CounterType; | ||
|
||
//! The performance counters for each worker. | ||
typedef struct PerfCounters { | ||
|
||
// --------------------------------------------------------------------------- | ||
// Transaction related counters | ||
// --------------------------------------------------------------------------- | ||
|
||
//! The number of transactions committed. | ||
CounterType mTxCommitted; | ||
|
||
//! The number of transactions commit wait. | ||
CounterType mTxCommitWait; | ||
|
||
//! The number of transactions aborted. | ||
CounterType mTxAborted; | ||
|
||
///! The number of transactions with remote dependencies. | ||
CounterType mTxWithRemoteDependencies; | ||
|
||
//! The number of transactions without remote dependencies. | ||
CounterType mTxWithoutRemoteDependencies; | ||
|
||
//! The number of short running transactions. | ||
CounterType mTxShortRunning; | ||
|
||
//! The number of long running transactions. | ||
CounterType mTxLongRunning; | ||
|
||
// --------------------------------------------------------------------------- | ||
// MVCC concurrency control related counters | ||
// --------------------------------------------------------------------------- | ||
|
||
//! The number of LCB query executed. | ||
CounterType mLcbExecuted; | ||
|
||
//! The total latency of LCB query in nanoseconds. | ||
CounterType mLcbTotalLatNs; | ||
|
||
// --------------------------------------------------------------------------- | ||
// MVCC garbage collection related counters | ||
// --------------------------------------------------------------------------- | ||
|
||
//! The number of MVCC garbage collection executed. | ||
CounterType mGcExecuted; | ||
|
||
//! The total latency of MVCC garbage collection in nanoseconds. | ||
CounterType mGcTotalLatNs; | ||
|
||
// --------------------------------------------------------------------------- | ||
// Contention split related counters | ||
// --------------------------------------------------------------------------- | ||
|
||
//! The number of contention split succeed. | ||
CounterType mContentionSplitSucceed; | ||
|
||
//! The number of contention split failed. | ||
CounterType mContentionSplitFailed; | ||
|
||
//! The number of normal split succeed. | ||
CounterType mSplitSucceed; | ||
|
||
//! The number of normal split failed. | ||
CounterType mSplitFailed; | ||
|
||
} PerfCounters; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.