ProfilingRequestBuilder


@RequiresApi
abstract class ProfilingRequestBuilder<T : ProfilingRequestBuilder<T>>

Known direct subclasses
HeapProfileRequestBuilder

Request builder to create a request for a heap profile from {@link ProfilingManager}.

JavaHeapDumpRequestBuilder

Request builder to create a request for a java heap dump from {@link ProfilingManager}.

StackSamplingRequestBuilder

Request builder to create a request for stack sampling from {@link ProfilingManager}.

SystemTraceRequestBuilder

Request builder to create a request for a system trace from {@link ProfilingManager}.


Base class for request builders.

Summary

Public functions

ProfilingRequest

Build the {@link ProfilingRequest} object which can be used with {@link requestProfiling} to request profiling.

T

Set a CancellationSignal to request cancellation of the requested trace.

T
setTag(tag: String)

Add data to help identify the output.

Public functions

build

fun build(): ProfilingRequest

Build the {@link ProfilingRequest} object which can be used with {@link requestProfiling} to request profiling.

setCancellationSignal

fun setCancellationSignal(cancellationSignal: CancellationSignal): T

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

setTag

fun setTag(tag: String): T

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