Skip to content

ECS Framework API v2.1.50


ECS Framework API / PoolStats

Interface: PoolStats

Defined in: Utils/Pool/IPoolable.ts:14

对象池统计信息

Properties

size

size: number

Defined in: Utils/Pool/IPoolable.ts:16

池中对象数量


maxSize

maxSize: number

Defined in: Utils/Pool/IPoolable.ts:18

池的最大大小


totalCreated

totalCreated: number

Defined in: Utils/Pool/IPoolable.ts:20

总共创建的对象数量


totalObtained

totalObtained: number

Defined in: Utils/Pool/IPoolable.ts:22

总共获取的次数


totalReleased

totalReleased: number

Defined in: Utils/Pool/IPoolable.ts:24

总共释放的次数


hitRate

hitRate: number

Defined in: Utils/Pool/IPoolable.ts:26

命中率(从池中获取的比例)


estimatedMemoryUsage

estimatedMemoryUsage: number

Defined in: Utils/Pool/IPoolable.ts:28

内存使用估算(字节)

Released under the MIT License.