mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
core: define more metrics (not yet used)
This commit is contained in:
parent
c5bffc5740
commit
5665e25f25
1 changed files with 9 additions and 2 deletions
|
|
@ -57,12 +57,19 @@ var (
|
|||
)
|
||||
|
||||
var (
|
||||
// Metrics
|
||||
pendingDiscardMeter = metrics.NewMeter("txpool/pending/discard")
|
||||
// Metrics for the pending pool
|
||||
pendingDiscardMeter = metrics.NewMeter("txpool/pending/discard")
|
||||
pendingReplaceMeter = metrics.NewMeter("txpool/pending/replace")
|
||||
pendingRLMeter = metrics.NewMeter("txpool/pending/ratelimit") // Dropped due to rate limiting
|
||||
pendingNofundsMeter = metrics.NewMeter("txpool/pending/nofunds") // Dropped due to out-of-funds
|
||||
// Metrics for the queued pool
|
||||
queuedDiscardMeter = metrics.NewMeter("txpool/queued/discard")
|
||||
queuedReplaceMeter = metrics.NewMeter("txpool/queued/replace")
|
||||
queuedRLMeter = metrics.NewMeter("txpool/queued/ratelimit") // Dropped due to rate limiting
|
||||
queuedNofundsMeter = metrics.NewMeter("txpool/queued/nofunds") // Dropped due to out-of-funds
|
||||
// General tx metrics
|
||||
invalidTxMeter = metrics.NewMeter("txpool/invalid")
|
||||
|
||||
)
|
||||
|
||||
type stateFn func() (*state.StateDB, error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue