NativePerformanceFixture

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

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.