* 获取所有池的统计信息 * @returns 统计信息映射
()
| 124 | * @returns 统计信息映射 |
| 125 | */ |
| 126 | public getAllStats(): Map<string, PoolStats> { |
| 127 | const stats = new Map<string, PoolStats>(); |
| 128 | |
| 129 | for (const [name, pool] of this.pools) { |
| 130 | stats.set(name, pool.getStats()); |
| 131 | } |
| 132 | |
| 133 | return stats; |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * 获取总体统计信息 |
no test coverage detected