ProfilingRequestBuilder


@RequiresApi(api = 35)
abstract class ProfilingRequestBuilder<T : ProfilingRequestBuilder<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 functions

ProfilingRequest

Build the ProfilingRequest object which can be used with 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

Added in 1.15.0
fun build(): ProfilingRequest

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

setCancellationSignal

Added in 1.15.0
fun setCancellationSignal(cancellationSignal: CancellationSignal): T

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

setTag

Added in 1.15.0
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.