Project
Loading...
Searching...
No Matches
o2::its::CapacityEstimator Class Reference

#include <CapacityEstimator.h>

Classes

struct  Config
 
struct  Decoded
 
struct  Impl
 

Public Types

using KeyType = uint64_t
 

Public Member Functions

 CapacityEstimator ()
 
 CapacityEstimator (Config cfg)
 
 ~CapacityEstimator ()
 
 CapacityEstimator (const CapacityEstimator &)=delete
 
CapacityEstimatoroperator= (const CapacityEstimator &)=delete
 
void reset ()
 
size_t capacity (uint64_t key, double scale) const
 
size_t peakCapacity (uint64_t key) const
 
double expected (uint64_t key, double scale) const
 
void update (uint64_t key, double scale, size_t emitted, size_t capacityUsed, bool overflowed, bool memoryLimited)
 
void print () const
 

Static Public Member Functions

static constexpr KeyType makeKey (SlabSite site, int iteration, int variant, int slot) noexcept
 
static constexpr Decoded decodeKey (KeyType key) noexcept
 
static constexpr int makeVariant (int high, int low) noexcept
 
static constexpr int getVariantHigh (int variant) noexcept
 
static constexpr int getVariantLow (int variant) noexcept
 

Detailed Description

Definition at line 41 of file CapacityEstimator.h.

Member Typedef Documentation

◆ KeyType

Definition at line 57 of file CapacityEstimator.h.

Constructor & Destructor Documentation

◆ CapacityEstimator() [1/3]

o2::its::CapacityEstimator::CapacityEstimator ( )

Definition at line 44 of file CapacityEstimator.cxx.

◆ CapacityEstimator() [2/3]

o2::its::CapacityEstimator::CapacityEstimator ( Config  cfg)
explicit

Definition at line 46 of file CapacityEstimator.cxx.

◆ ~CapacityEstimator()

o2::its::CapacityEstimator::~CapacityEstimator ( )
default

◆ CapacityEstimator() [3/3]

o2::its::CapacityEstimator::CapacityEstimator ( const CapacityEstimator )
delete

Member Function Documentation

◆ capacity()

size_t o2::its::CapacityEstimator::capacity ( uint64_t  key,
double  scale 
) const

Definition at line 56 of file CapacityEstimator.cxx.

◆ decodeKey()

static constexpr Decoded o2::its::CapacityEstimator::decodeKey ( KeyType  key)
inlinestaticconstexprnoexcept

Definition at line 74 of file CapacityEstimator.h.

◆ expected()

double o2::its::CapacityEstimator::expected ( uint64_t  key,
double  scale 
) const

Definition at line 97 of file CapacityEstimator.cxx.

◆ getVariantHigh()

static constexpr int o2::its::CapacityEstimator::getVariantHigh ( int  variant)
inlinestaticconstexprnoexcept

Definition at line 88 of file CapacityEstimator.h.

◆ getVariantLow()

static constexpr int o2::its::CapacityEstimator::getVariantLow ( int  variant)
inlinestaticconstexprnoexcept

Definition at line 93 of file CapacityEstimator.h.

◆ makeKey()

static constexpr KeyType o2::its::CapacityEstimator::makeKey ( SlabSite  site,
int  iteration,
int  variant,
int  slot 
)
inlinestaticconstexprnoexcept

Definition at line 66 of file CapacityEstimator.h.

◆ makeVariant()

static constexpr int o2::its::CapacityEstimator::makeVariant ( int  high,
int  low 
)
inlinestaticconstexprnoexcept

Definition at line 83 of file CapacityEstimator.h.

◆ operator=()

CapacityEstimator & o2::its::CapacityEstimator::operator= ( const CapacityEstimator )
delete

◆ peakCapacity()

size_t o2::its::CapacityEstimator::peakCapacity ( uint64_t  key) const

Definition at line 82 of file CapacityEstimator.cxx.

◆ print()

void o2::its::CapacityEstimator::print ( ) const

Definition at line 154 of file CapacityEstimator.cxx.

◆ reset()

void o2::its::CapacityEstimator::reset ( )

Definition at line 50 of file CapacityEstimator.cxx.

◆ update()

void o2::its::CapacityEstimator::update ( uint64_t  key,
double  scale,
size_t  emitted,
size_t  capacityUsed,
bool  overflowed,
bool  memoryLimited 
)

Definition at line 111 of file CapacityEstimator.cxx.


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