struct xpum_device_stats_data_t
Overview
Struct to store statistics data for different metric types. More…
#include <xpum_structs.h> struct xpum_device_stats_data_t { // fields xpum_stats_type_t metricsType; bool isCounter; uint64_t value; uint64_t accumulated; uint64_t min; uint64_t avg; uint64_t max; uint32_t scale; };
Detailed Documentation
Struct to store statistics data for different metric types.
Fields
xpum_stats_type_t metricsType
Metric type.
bool isCounter
If this metric is a counter.
uint64_t value
The value of this metric type.
uint64_t accumulated
The accumulated value of this metric type, only valid if isCounter is true.
uint64_t min
The min value since last call, only valid if isCounter is false.
uint64_t avg
The average value since last call, only valid if isCounter is false.
uint64_t max
The max value since last call, only valid if isCounter is false.
uint32_t scale
The magnification of the value, accumulated, min, avg, and max fields.