TraceSectionMetric.Mode

public enum TraceSectionMetric.Mode extends 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 methods

final @NonNull TraceSectionMetric.Mode

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

final @NonNull TraceSectionMetric.Mode[]

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

Enum Values

First

TraceSectionMetric.Mode TraceSectionMetric.Mode.First

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

TraceSectionMetric.Mode TraceSectionMetric.Mode.Max

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

TraceSectionMetric.Mode TraceSectionMetric.Mode.Min

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

TraceSectionMetric.Mode TraceSectionMetric.Mode.Sum

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 methods

valueOf

Added in 1.2.0
public final @NonNull TraceSectionMetric.Mode valueOf(@NonNull String value)

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
public final @NonNull TraceSectionMetric.Mode[] values()

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.