NativePerformanceFixture

class NativePerformanceFixture(val ready: () -> Boolean = { true }, val captureAfterWarmup: () -> Unit = {}, val settleFrames: Int = 0, val beforeSamples: () -> Unit = {}, val afterSamples: (JsonObject) -> Unit = {}, val validateFrame: () -> Unit = {})(source)

Application data and evidence hooks outside native extraction samples. The kit owns invocation order, settling, deadlines, counters, and callback cleanup. Hooks execute on the screen's owner thread and failures invalidate the whole interval.

Parameters

ready

preparation predicate; false waits for another presented frame.

captureAfterWarmup

expensive fixture inventory capture before settling.

settleFrames

untimed presentations after capture, without application updates.

beforeSamples

snapshot application data after settling and before measured updates.

afterSamples

receive detached complete evidence outside the timed interval.

validateFrame

verify fixture/window ownership before every frame.

Constructors

Link copied to clipboard
constructor(ready: () -> Boolean = { true }, captureAfterWarmup: () -> Unit = {}, settleFrames: Int = 0, beforeSamples: () -> Unit = {}, afterSamples: (JsonObject) -> Unit = {}, validateFrame: () -> Unit = {})

Properties

Link copied to clipboard
val afterSamples: (JsonObject) -> Unit
Link copied to clipboard
val beforeSamples: () -> Unit
Link copied to clipboard
Link copied to clipboard
val ready: () -> Boolean
Link copied to clipboard
Link copied to clipboard
val validateFrame: () -> Unit