PerfettoTrace.Link


@ExperimentalInsightApi
public final class PerfettoTrace.Link


Represents a link to a given PerfettoTrace, including a URL parameter string.

As this link may be shared across environments (e.g. between an Android device and a host desktop machine), the paths are not guaranteed to be absolute.

Summary

Public constructors

Link(
    @NonNull String title,
    @NonNull String path,
    @NonNull Map<@NonNull String, @NonNull String> urlParamMap
)
Link(
    @NonNull String title,
    @NonNull String path,
    @NonNull String urlParamsEncoded
)

Public methods

boolean
equals(Object other)
final @NonNull String
final @NonNull String

Path to the trace.

final @NonNull String
final @NonNull String
final @NonNull String

Url params passed to ui.perfetto.dev, UTF-8 encoded

int
@NonNull String

Public constructors

Link

Added in 1.4.0
public Link(
    @NonNull String title,
    @NonNull String path,
    @NonNull Map<@NonNull String, @NonNull String> urlParamMap
)

Link

Added in 1.4.0
public Link(
    @NonNull String title,
    @NonNull String path,
    @NonNull String urlParamsEncoded
)

Public methods

equals

public boolean equals(Object other)

getMarkdownUriLink

Added in 1.4.0
public final @NonNull String getMarkdownUriLink()

getPath

Added in 1.4.0
public final @NonNull String getPath()

Path to the trace.

When used with Android Benchmark, this is the relative path to the trace in the test output directory.

getTitle

Added in 1.4.0
public final @NonNull String getTitle()

getUri

Added in 1.4.0
public final @NonNull String getUri()

getUrlParamsEncoded

Added in 1.4.0
public final @NonNull String getUrlParamsEncoded()

Url params passed to ui.perfetto.dev, UTF-8 encoded

hashCode

public int hashCode()

toString

public @NonNull String toString()