DebugTrace

object DebugTrace

Debug-only tracing hook: enables StrictMode detectAll().penaltyLog() for disk/network-on-main-thread detection, and a simple logcat tag for ad-hoc traces. Perfetto capture works via the profileable manifest attribute without any code here. No-op entirely in release builds.

Functions

Link copied to clipboard
fun d(msg: String)

Logs msg under the SFM logcat tag. No-op in release builds.

Link copied to clipboard
fun init(app: Application)

Enables StrictMode logging for app. Call once from Application.onCreate(). No-op in release.