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.

Every Insight that shares the same conceptual category must share an equal Category so that macrobenchmark can group them when summarizing observed patterns across multiple iterations.

In Studio versions supporting web links, will produce an output like the following:

[JIT compiled methods](https://d.android.com/test#JIT_COMPILED_METHODS) (expected: < 65 count)

In the above example:

  • title is "JIT compiled methods"

  • titleUrl is "https://d.android.com/test#JIT_COMPILED_METHODS"

  • postTitleLabel is " (expected: < 65 count)"

In Studio versions not supporting web links, titleUrl is ignored.

Summary

Public constructors

Category(title: String, titleUrl: String?, postTitleLabel: String)
Cmn

Public functions

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

Public properties

String

Suffix after the title, generally specifying expected values.

Cmn
String

Title of the Insight category, for example "JIT compiled methods"

Cmn
String?

Optional web URL to explain the category of problem.

Cmn

Public constructors

Category

Category(title: String, titleUrl: String?, postTitleLabel: String)

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

postTitleLabel

val postTitleLabelString

Suffix after the title, generally specifying expected values.

For example, " (expected: < 65 count)"

title

val titleString

Title of the Insight category, for example "JIT compiled methods"

titleUrl

val titleUrlString?

Optional web URL to explain the category of problem.

If non-null, generally title should be linked to this URL.