* 获取所有池的统计信息 * @returns 包含所有池统计信息的对象
()
| 206 | * @returns 包含所有池统计信息的对象 |
| 207 | */ |
| 208 | public static getAllPoolStats(): Record<string, PoolStats> { |
| 209 | const stats: Record<string, PoolStats> = {}; |
| 210 | |
| 211 | for (const [type, pool] of this._pools) { |
| 212 | const typeName = type.name || type.toString(); |
| 213 | stats[typeName] = pool.getStats(); |
| 214 | } |
| 215 | |
| 216 | return stats; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * 压缩所有池 |
no test coverage detected