Skip to content

Interface: SsLeakCheckResult ​

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:20

The leak check. Ships rather than living in the example app, because the platform where a leaked handle actually costs anything is a device, and a check that only exists in this repo cannot be run there.

Properties ​

after ​

after: SsLiveHandles

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:23


before ​

before: SsLiveHandles

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:22


cycles ​

cycles: number

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:21


leaked ​

leaked: boolean

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:25

True if either count grew — see ssCheckForLeaks for why growth is exact.


registryLeaked ​

registryLeaked: boolean

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:31

True if the registry grew across the reloads — see the reload pass below.


texturesAfterFirstLoad ​

texturesAfterFirstLoad: number

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:27

Registry entries one player held after its first load of source.


texturesAfterReloads ​

texturesAfterReloads: number

Defined in: packages/react-native-spritestudio/src/player/leakCheck.ts:29

And after loading it cycles times over, which should be the same number.