Struct MetricOption

Nested Relationships

Nested Types

Struct Documentation

struct MetricOption

Structure that contains information about an option for a prototype metric or instance of one.

Public Types

enum class Type

Types of prototype or instantiated metric options.

Values:

enumerator kDisaggregation

Option type used for enabling disaggregation.

enumerator kLatency

Option type used for enabling latency.

enumerator kNormalizationAverage

Option type used for enabling average normalization (raw metric / instance count).

enumerator kNormalizationByte

Option type used for enabling byte normalization (raw metric * N bytes). Changes metric units to bytes. Mutually exclusive with utilization normalization option.

enumerator kNormalizationRate

Option type used for enabling rate normalization (raw metric / timestamp). Changes metric units to per second. Mutually exclusive with utilization normalization option.

enumerator kNormalizationUtilization

Option type used for enabling utilization normalization (raw metric * 100% / cycles / instance count). Changes metric units to percent. Mutually exclusive with rate normalization option.

enumerator kCount

Number of possible option types.

enumerator kInvalid

Invalid option type.

enum StringLength

Values:

enumerator kSymbolicNameLength

Public Members

Type type

Type of the metric option.

char symbolicName[StringLength::kSymbolicNameLength]
uint32_t valueCount

Number of initialized elements in pValueArray.

Value *pValueArray

Array of Value structures for the option.

struct Value

Public Types

enum class Type

Types of metric option Values.

Values:

enumerator kRangeUint32
enumerator kRangeUint64
enumerator kUint32
enumerator kUint64
enumerator kCount

Number of possible Value types.

enumerator kInvalid

Invalid Value type.

Public Members

Type type

Type of data provided in the Value.

uint32_t min
uint32_t max
struct gpa::metrics::MetricOption::Value::[anonymous]::[anonymous] rangeUint32
uint64_t min
uint64_t max
struct gpa::metrics::MetricOption::Value::[anonymous]::[anonymous] rangeUint64
uint32_t uint32
uint64_t uint64
union gpa::metrics::MetricOption::Value::[anonymous] data

The actual Value data.