UiRenderMonitor

Owner-thread, opt-in work monitor with a bounded node-record capacity per checkpoint interval (4,096 by default, up to 65,536 when explicitly requested) and no frame history. Existing nodes form a baseline rather than being reported as newly created. Snapshots are copied only on request. All methods reject operation reentry and foreign threads; close is idempotent and terminal host cleanup closes automatically.

Functions

Link copied to clipboard
abstract fun checkpoint()

Clears interval counters and retired-node records while preserving live identities.

Link copied to clipboard
abstract override fun close()

Releases all recorded references and disconnects monitoring without closing the screen.

Link copied to clipboard
abstract fun findNodes(key: ElementKey<*>): List<UiRenderNodeId>

Finds current component identities; the same sibling key may match several independent parents.

Link copied to clipboard
abstract fun snapshot(): UiRenderSnapshot

Copies detached, read-only interval evidence without evaluating or modifying the screen. Terminal failure releases runtime references but leaves a final detached snapshot readable until explicit close.