ProfilingRequestBuilder
@RequiresApi(api = 35)
abstract class ProfilingRequestBuilder<T : ProfilingRequestBuilder<T>>
HeapProfileRequestBuilder |
Request builder to create a request for a heap profile from |
JavaHeapDumpRequestBuilder |
Request builder to create a request for a java heap dump from |
StackSamplingRequestBuilder |
Request builder to create a request for stack sampling from |
SystemTraceRequestBuilder |
Request builder to create a request for a system trace from |
Base class for request builders.
Summary
Public functions |
|
|---|---|
ProfilingRequest |
build()Build the |
T |
setCancellationSignal(cancellationSignal: CancellationSignal)Set a CancellationSignal to request cancellation of the requested trace. |
T |
Add data to help identify the output. |
Public functions
build
fun build(): ProfilingRequest
Build the ProfilingRequest object which can be used with 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.