heap-dumps
Heap Dumps
Connecting dependencies to your project
In your <project>/<app-m,odule>/build.gradle
.
dependencies {
implementation "ru.ok.tracer:tracer-heap-dumps:0.2.7"
}
For a detailed description of the dependencies see “Quickstart”.
HeapDumpConfiguration
description
In your Application.kt
.
class MyApplication : Application(), HasTracerConfiguration {
override val tracerConfiguration: List<TracerConfiguration>
get() = listOf(
HeapDumpConfiguration.build {
// your options
},
)
}
Below are the HeapDumpConfiguration.Builder
options.
setEnabled
— enables/disables OOM heap dumps gathering. By default: enabled.
Below are the HeapDumpConfiguration.Builder
options that are deprecated or dangerous.
setProbability
— deprecated and does nothing, will be removed in version 0.3.x;setInterestingSize
— deprecated and does nothing, will be removed in version 0.3.x;
info
Heap dumps are sent at night, when the user doesn't use their device.