|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
9 #include "opentelemetry/nostd/variant.h"
10 #include "opentelemetry/version.h"
45 void Increment(
size_t index, uint64_t count);
53 uint64_t
Get(
size_t index)
const;
68 void EnlargeToFit(uint64_t value);
71 std::vector<uint16_t>,
72 std::vector<uint32_t>,
73 std::vector<uint64_t>>
116 bool Empty()
const {
return base_index_ == kNullIndex; }
133 bool Increment(int32_t index, uint64_t delta);
140 uint64_t
Get(int32_t index)
const;
143 size_t ToBufferIndex(int32_t index)
const;
148 int32_t start_index_ = kNullIndex;
150 int32_t end_index_ = kNullIndex;
153 int32_t base_index_ = kNullIndex;
void Clear()
Clears the array, resetting all values to zero.
A circle-buffer-backed exponential counter.
An integer array that automatically expands its memory consumption (via copy/allocation) when reachin...
#define OPENTELEMETRY_BEGIN_NAMESPACE
size_t Size() const
Returns the size of the array.
bool Empty() const
Returns true if no recordings, false if at least one recording.
AdaptingIntegerArray(size_t size)
#define OPENTELEMETRY_END_NAMESPACE
AdaptingCircularBufferCounter & operator=(const AdaptingCircularBufferCounter &other)=default
constexpr const char * size
int32_t EndIndex() const
The last index with a recording.
AdaptingIntegerArray & operator=(const AdaptingIntegerArray &other)=default
int min(int a, int b)
Compute the component-wise minimum.
Extensions to the C++ standard library.
void Clear()
Resets all bucket counts to zero and resets index start/end tracking.
bool Increment(int32_t index, uint64_t delta)
Persist new data at index, incrementing by delta amount.
AdaptingCircularBufferCounter(size_t max_size)
void Increment(size_t index, uint64_t count)
Increments the value at the specified index by the given count in the array.
size_t MaxSize() const
Returns the maximum number of buckets allowed in this counter.
int32_t StartIndex() const
The first index with a recording.
uint64_t Get(int32_t index) const
Get the number of recordings for the given index.
uint64_t Get(size_t index) const
Returns the value at the specified index from the array.