mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
feat: reduce the number of samples in lifetimeTimer (#777)
This commit is contained in:
parent
89ff451c77
commit
9f961ddc71
2 changed files with 6 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import (
|
||||||
const (
|
const (
|
||||||
VersionMajor = 5 // Major version component of the current release
|
VersionMajor = 5 // Major version component of the current release
|
||||||
VersionMinor = 3 // Minor version component of the current release
|
VersionMinor = 3 // Minor version component of the current release
|
||||||
VersionPatch = 25 // Patch version component of the current release
|
VersionPatch = 26 // Patch version component of the current release
|
||||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,11 @@ var (
|
||||||
ErrApplyStageDone = errors.New("apply stage is done")
|
ErrApplyStageDone = errors.New("apply stage is done")
|
||||||
ErrUnexpectedL1MessageIndex = errors.New("unexpected L1 message index")
|
ErrUnexpectedL1MessageIndex = errors.New("unexpected L1 message index")
|
||||||
|
|
||||||
lifetimeTimer = metrics.NewRegisteredTimer("pipeline/lifetime", nil)
|
lifetimeTimer = func() metrics.Timer {
|
||||||
|
t := metrics.NewCustomTimer(metrics.NewHistogram(metrics.NewExpDecaySample(128, 0.015)), metrics.NewMeter())
|
||||||
|
metrics.DefaultRegistry.Register("pipeline/lifetime", t)
|
||||||
|
return t
|
||||||
|
}()
|
||||||
applyTimer = metrics.NewRegisteredTimer("pipeline/apply", nil)
|
applyTimer = metrics.NewRegisteredTimer("pipeline/apply", nil)
|
||||||
applyIdleTimer = metrics.NewRegisteredTimer("pipeline/apply_idle", nil)
|
applyIdleTimer = metrics.NewRegisteredTimer("pipeline/apply_idle", nil)
|
||||||
applyStallTimer = metrics.NewRegisteredTimer("pipeline/apply_stall", nil)
|
applyStallTimer = metrics.NewRegisteredTimer("pipeline/apply_stall", nil)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue