HeapProfileRequestBuilder


@RequiresApi
class HeapProfileRequestBuilder : ProfilingRequestBuilder


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

Summary

Public constructors

Public functions

HeapProfileRequestBuilder
setBufferSizeKb(bufferSizeKb: Int)

Set the buffer size in kilobytes for this profiling request.

HeapProfileRequestBuilder
setDurationMs(durationMs: Int)

Set the duration in milliseconds for this profiling request.

HeapProfileRequestBuilder
setSamplingIntervalBytes(samplingIntervalBytes: Long)

Set the sampling interval in bytes for this profiling request.

HeapProfileRequestBuilder
setTrackJavaAllocations(traceJavaAllocations: Boolean)

Set whether to track Java allocations rather than native ones.

Inherited functions

From androidx.core.os.ProfilingRequestBuilder
ProfilingRequest

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

HeapProfileRequestBuilder

Set a CancellationSignal to request cancellation of the requested trace.

HeapProfileRequestBuilder
setTag(tag: String)

Add data to help identify the output.

Public constructors

HeapProfileRequestBuilder

HeapProfileRequestBuilder()

Public functions

setBufferSizeKb

fun setBufferSizeKb(bufferSizeKb: Int): HeapProfileRequestBuilder

Set the buffer size in kilobytes for this profiling request.

setDurationMs

fun setDurationMs(durationMs: Int): HeapProfileRequestBuilder

Set the duration in milliseconds for this profiling request.

setSamplingIntervalBytes

fun setSamplingIntervalBytes(samplingIntervalBytes: Long): HeapProfileRequestBuilder

Set the sampling interval in bytes for this profiling request.

setTrackJavaAllocations

fun setTrackJavaAllocations(traceJavaAllocations: Boolean): HeapProfileRequestBuilder

Set whether to track Java allocations rather than native ones.