setEnabled

fun setEnabled(enabled: Boolean)

Enables or disables tracing.

Switching state clears any existing buffered entries.