TraceSectionMetric

@ExperimentalMetricApi
public final class TraceSectionMetric extends 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 enum TraceSectionMetric.Mode extends Enum

Public constructors

TraceSectionMetric(
    @NonNull String sectionName,
    @NonNull String label,
    @NonNull TraceSectionMetric.Mode mode,
    boolean targetPackageOnly
)

Public constructors

TraceSectionMetric

Added in 1.3.0-alpha01
public TraceSectionMetric(
    @NonNull String sectionName,
    @NonNull String label,
    @NonNull TraceSectionMetric.Mode mode,
    boolean targetPackageOnly
)