13 #ifndef STXXL_COMMON_CUSTOM_STATS_HEADER
14 #define STXXL_COMMON_CUSTOM_STATS_HEADER
31 template <
typename ValueType>
113 template <
typename ValueType>
150 #endif // !STXXL_COMMON_CUSTOM_STATS_HEADER
Dummy class for custom_stats_counter.
custom_stats_counter()
The constructor. Initializes the counter to 0.
std::string as_memory_amount(const value_type &byte_per_element) const
Return the counter value interpreted as a memory amount in IEC units as a string. ...
dummy_custom_stats_counter()
This class provides a statistical counter that can easily be deactivated using a typedef to dummy_cus...
value_type m_value
The counter's value.
uint_pair & operator++()
prefix increment operator (directly manipulates the integer parts)
uint_pair & operator+=(const uint_pair &b)
addition operator (uses 64-bit arithmetic)
std::string as_memory_amount(const value_type &) const
#define STXXL_BEGIN_NAMESPACE
ValueType value_type
The counter's value type.
void set_max(const value_type &other)
Set the counter to other if other is larger than the current counter value.
static uint_pair max()
return an uint_pair instance containing the largest value possible
std::string format_IEC_size(uint64 number)
Format a byte size using IEC (Ki, Mi, Gi, Ti) suffixes (powers of two). Returns "123 Ki" or similar...
#define STXXL_END_NAMESPACE