Documentation ¶
Index ¶
Constants ¶
View Source
const ( FetchFastBlockTime ConsensusTime = iota VerifyFastBlockTime BroadcastConsensusTime PreVoteTime ConsensusTimes = iota PreCommitTime FetchFastBlockTC TimesCount = iota FetchFastBlockRoundTC )
Variables ¶
View Source
var ( //Traffic Statistics TbftPacketInMeter = metrics.NewRegisteredMeter("consensus/tbft/p2p/in/packets", nil) TbftBytesInMeter = metrics.NewRegisteredMeter("consensus/tbft/p2p/in/bytes", nil) TbftPacketOutMeter = metrics.NewRegisteredMeter("consensus/tbft/p2p/out/packets", nil) TbftBytesOutMeter = metrics.NewRegisteredMeter("consensus/tbft/p2p/out/bytes", nil) //Time-consuming statistics TBftFetchFastBlockTime = metrics.NewRegisteredTimer("consensus/tbft/time/FetchFastBlock", nil) TBftVerifyFastBlockTime = metrics.NewRegisteredTimer("consensus/tbft/time/VerifyFastBlock", nil) TBftBroadcastConsensusTime = metrics.NewRegisteredTimer("consensus/tbft/time/BroadcastConsensus", nil) TBftPreVoteTime = NewTimeMTimer("consensus/tbft/time/PreVote") TBftPreCommitTime = NewTimeMTimer("consensus/tbft/time/PreCommit") //FetchFastBlock count statistics TBftFetchFastBlockTimesTime = metrics.NewRegisteredTimer("consensus/tbft/count/FetchFastBlock", nil) //FetchFastBlock rounds count statistics TBftFetchFastBlockRoundTime = metrics.NewRegisteredTimer("consensus/tbft/count/FetchFastBlockRound", nil) )
Functions ¶
func MTime ¶
func MTime(t ConsensusTime, d time.Duration)
func MTimes ¶
func MTimes(t ConsensusTimes, end bool)
func MTimesCount ¶
func MTimesCount(t TimesCount, d time.Duration)
Types ¶
type ConsensusTime ¶
type ConsensusTime int
type ConsensusTimes ¶
type ConsensusTimes int
type TimeMTimer ¶
func NewTimeMTimer ¶
func NewTimeMTimer(name string) (T TimeMTimer)
func (*TimeMTimer) Update ¶
func (tmt *TimeMTimer) Update(end bool)
type TimesCount ¶
type TimesCount int
Click to show internal directories.
Click to hide internal directories.