ProfilingRequestBuilder


@RequiresApi(api = 35)
public abstract class ProfilingRequestBuilder<T extends ProfilingRequestBuilder<@NonNull T>>

Known direct subclasses
HeapProfileRequestBuilder

Request builder to create a request for a heap profile from ProfilingManager.

JavaHeapDumpRequestBuilder

Request builder to create a request for a java heap dump from ProfilingManager.

StackSamplingRequestBuilder

Request builder to create a request for stack sampling from ProfilingManager.

SystemTraceRequestBuilder

Request builder to create a request for a system trace from ProfilingManager.


Base class for request builders.

Summary

Public methods

final @NonNull ProfilingRequest

Build the ProfilingRequest object which can be used with requestProfiling to request profiling.

final @NonNull T

Set a CancellationSignal to request cancellation of the requested trace.

final @NonNull T

Add data to help identify the output.

Public methods

build

Added in 1.15.0-beta01
public final @NonNull ProfilingRequest build()

Build the ProfilingRequest object which can be used with requestProfiling to request profiling.

setCancellationSignal

Added in 1.15.0-beta01
public final @NonNullsetCancellationSignal(@NonNull CancellationSignal cancellationSignal)

Set a CancellationSignal to request cancellation of the requested trace. Results will be returned if available.

setTag

Added in 1.15.0-beta01
public final @NonNullsetTag(@NonNull String tag)

Add data to help identify the output. The first 20 alphanumeric characters, plus dashes, will be lowercased and included in the output filename.