stop

fun stop()

Stops profiling.
You can call stop() in activity onDestroy()

class MyActivity : AppCompatActivity() {

private var sdk: DwnProfilingSDK? = null
override fun onCreate(savedInstanceState: Bundle?) {
val config = hashMapOf(
"profiling_debug": true
)
sdk = DwnProfilingSDK()
sdk.start(config, this)
...
}

override fun onDestroy(savedInstanceState: Bundle?) {
sdk.stop()
...
}
...
}

When you using the sdk instance across multiple activities, it's better to start()/stop() when activity onCreate/onDestroy