|
iceberg-cpp
|
MetricsContext backed by DefaultCounter and DefaultTimer instances. More...
#include <metrics_context.h>
Public Member Functions | |
| std::shared_ptr< Counter > | GetCounter (std::string_view name, CounterUnit unit) override |
| Get or create a named Counter with an explicit unit. | |
| std::shared_ptr< Timer > | GetTimer (std::string_view name, TimerUnit unit) override |
| Get or create a named Timer with an explicit unit. | |
| virtual std::shared_ptr< Counter > | GetCounter (std::string_view name, CounterUnit unit)=0 |
| Get or create a named Counter with an explicit unit. | |
| std::shared_ptr< Counter > | GetCounter (std::string_view name) |
| Get or create a count-unit Counter by name. | |
| virtual std::shared_ptr< Timer > | GetTimer (std::string_view name, TimerUnit unit)=0 |
| Get or create a named Timer with an explicit unit. | |
| std::shared_ptr< Timer > | GetTimer (std::string_view name) |
| Get or create a nanosecond-precision Timer by name. | |
Public Member Functions inherited from iceberg::MetricsContext | |
| std::shared_ptr< Counter > | GetCounter (std::string_view name) |
| Get or create a count-unit Counter by name. | |
| std::shared_ptr< Timer > | GetTimer (std::string_view name) |
| Get or create a nanosecond-precision Timer by name. | |
Additional Inherited Members | |
Static Public Member Functions inherited from iceberg::MetricsContext | |
| static const std::shared_ptr< MetricsContext > & | Noop () |
| Return the no-op MetricsContext singleton. | |
| static std::unique_ptr< MetricsContext > | Default () |
| Create a new DefaultMetricsContext. | |
MetricsContext backed by DefaultCounter and DefaultTimer instances.
|
inline |
Get or create a count-unit Counter by name.
Convenience overload defaulting to CounterUnit::kCount.
|
overridevirtual |
Get or create a named Counter with an explicit unit.
Implements iceberg::MetricsContext.
|
virtual |
Get or create a named Counter with an explicit unit.
Implements iceberg::MetricsContext.
|
inline |
Get or create a nanosecond-precision Timer by name.
Convenience overload defaulting to TimerUnit::kNanoseconds.
|
overridevirtual |
Get or create a named Timer with an explicit unit.
Implements iceberg::MetricsContext.
|
virtual |
Get or create a named Timer with an explicit unit.
Implements iceberg::MetricsContext.