Individual case of a problem identified in a given trace (from a specific iteration).

Benchmark output will summarize multiple insights, for example:

[JIT Activity](https://d.android.com/test#JIT_ACTIVITY) (expected: < 100000000ns)
seen in iterations: [6](file:///path/to/trace.perfetto-trace)(328462261ns),

Summary

Nested types

Category represents general expectations that have been violated by an insight - e.g. JIT shouldn't take longer than XX ms, or trampoline activities shouldn't be used.

Public constructors

Insight(
    category: Insight.Category,
    observedLabel: String,
    traceLink: PerfettoTrace.Link
)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Insight.Category

Category of the Insight, representing the type of problem.

Cmn
String

suffix after the deeplink to convey problem severity, e.g. "(100000000ns)"

Cmn
PerfettoTrace.Link

Link to content within a trace to highlight for the given problem.

Cmn

Public constructors

Insight

Insight(
    category: Insight.Category,
    observedLabel: String,
    traceLink: PerfettoTrace.Link
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

category

val categoryInsight.Category

Category of the Insight, representing the type of problem.

Every similar insight must identify equal Categorys to enable macrobenchmark to group them across iterations.

observedLabel

val observedLabelString

suffix after the deeplink to convey problem severity, e.g. "(100000000ns)"

traceLink

val traceLinkPerfettoTrace.Link

Link to content within a trace to highlight for the given problem.

Insights should specify PerfettoTrace.Link.urlParamsEncoded to pass context to ui.perfetto.dev.