| 
    CatapultServer
    v0.5.0.1 (Elephant)
    
   | 
 
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< RollbackStatsEntry > | m_rollbackSizes | 
| uint64_t | m_longestRollback | 
Container for rollback statistics.
| catapult::sync::RollbackStats::RollbackStats | ( | ) | 
Creates rollback statistics container.
| void catapult::sync::RollbackStats::add | ( | Timestamp | timestamp, | 
| size_t | rollbackSize | ||
| ) | 
Adds info about rollbackSize at timestamp to current statistics.

| void catapult::sync::RollbackStats::prune | ( | Timestamp | threshold | ) | 
Prunes statistics below time threshold.

| uint64_t catapult::sync::RollbackStats::total | ( | RollbackCounterType | rollbackCounterType | ) | const | 
Returns statistics for a type (rollbackCounterType).

      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |