TraceSectionMetric.Mode

enum TraceSectionMetric.Mode : Enum


Summary

Enum Values

First

Captures the duration of the first instance of sectionName in the trace.

Max

Reports the maximum observed duration for a trace section matching sectionName in the trace.

Min

Reports the maximum observed duration for a trace section matching sectionName in the trace.

Sum

Captures the sum of all instances of sectionName in the trace.

Public functions

TraceSectionMetric.Mode
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<TraceSectionMetric.Mode>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

First

val TraceSectionMetric.Mode.FirstTraceSectionMetric.Mode

Captures the duration of the first instance of sectionName in the trace.

When this mode is used, no measurement will be reported if the named section does not appear in the trace.

Max

val TraceSectionMetric.Mode.MaxTraceSectionMetric.Mode

Reports the maximum observed duration for a trace section matching sectionName in the trace.

When this mode is used, no measurement will be reported if the named section does not appear in the trace.

Min

val TraceSectionMetric.Mode.MinTraceSectionMetric.Mode

Reports the maximum observed duration for a trace section matching sectionName in the trace.

When this mode is used, no measurement will be reported if the named section does not appear in the trace.

Sum

val TraceSectionMetric.Mode.SumTraceSectionMetric.Mode

Captures the sum of all instances of sectionName in the trace.

When this mode is used, a measurement of 0 will be reported if the named section does not appear in the trace

Public functions

valueOf

Added in 1.2.0
fun valueOf(value: String): TraceSectionMetric.Mode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.2.0
fun values(): Array<TraceSectionMetric.Mode>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.