Utility struct for counting the current, peak, and total value of a number.
More...
#include <statistics_resource_adaptor.hpp>
|
int64_t | value {0} |
| Current value.
|
|
int64_t | peak {0} |
| Max value of value
|
|
int64_t | total {0} |
| Sum of all added values.
|
|
template<typename Upstream>
struct rmm::mr::statistics_resource_adaptor< Upstream >::counter
Utility struct for counting the current, peak, and total value of a number.
◆ operator+=()
template<typename Upstream >
Add val
to the current value and update the peak value if necessary.
- Parameters
-
- Returns
- Reference to this object
◆ operator-=()
template<typename Upstream >
Subtract val
from the current value and update the peak value if necessary.
- Parameters
-
- Returns
- Reference to this object
The documentation for this struct was generated from the following file: