TraceSectionMetric

@ExperimentalMetricApi
class TraceSectionMetric : Metric


Captures the time taken by named trace section - a named begin / end pair matching the provided sectionName.

Select how matching sections are resolved into a duration metric with mode, and configure if sections outside the target process are included with targetPackageOnly.

Summary

Nested types

Public constructors

TraceSectionMetric(
    sectionName: String,
    label: String,
    mode: TraceSectionMetric.Mode,
    targetPackageOnly: Boolean
)

Public constructors

TraceSectionMetric

Added in 1.3.0-alpha01
TraceSectionMetric(
    sectionName: String,
    label: String = sectionName,
    mode: TraceSectionMetric.Mode = Mode.Sum,
    targetPackageOnly: Boolean = true
)