CatapultServer  v0.5.0.1 (Elephant)
catapult::sync::RollbackStats Class Reference

Container for rollback statistics. More...

Classes

struct  RollbackStatsEntry
 

Public Member Functions

 RollbackStats ()
 Creates rollback statistics container. More...
 
uint64_t total (RollbackCounterType rollbackCounterType) const
 Returns statistics for a type (rollbackCounterType). More...
 
void add (Timestamp timestamp, size_t rollbackSize)
 Adds info about rollbackSize at timestamp to current statistics. More...
 
void prune (Timestamp threshold)
 Prunes statistics below time threshold. More...
 

Private Attributes

uint64_t m_totalRollbacks
 
std::list< RollbackStatsEntrym_rollbackSizes
 
uint64_t m_longestRollback
 

Detailed Description

Container for rollback statistics.

Constructor & Destructor Documentation

◆ RollbackStats()

catapult::sync::RollbackStats::RollbackStats ( )

Creates rollback statistics container.

Member Function Documentation

◆ add()

void catapult::sync::RollbackStats::add ( Timestamp  timestamp,
size_t  rollbackSize 
)

Adds info about rollbackSize at timestamp to current statistics.

Here is the caller graph for this function:

◆ prune()

void catapult::sync::RollbackStats::prune ( Timestamp  threshold)

Prunes statistics below time threshold.

Here is the caller graph for this function:

◆ total()

uint64_t catapult::sync::RollbackStats::total ( RollbackCounterType  rollbackCounterType) const

Returns statistics for a type (rollbackCounterType).

Here is the caller graph for this function:

Member Data Documentation

◆ m_longestRollback

uint64_t catapult::sync::RollbackStats::m_longestRollback
private

◆ m_rollbackSizes

std::list<RollbackStatsEntry> catapult::sync::RollbackStats::m_rollbackSizes
private

◆ m_totalRollbacks

uint64_t catapult::sync::RollbackStats::m_totalRollbacks
private

The documentation for this class was generated from the following files: