MCPcopy Create free account
hub / github.com/esengine/esengine / getAllPoolStats

Method getAllPoolStats

packages/core/src/Utils/Pool/Pool.ts:208–217  ·  view source on GitHub ↗

* 获取所有池的统计信息 * @returns 包含所有池统计信息的对象

()

Source from the content-addressed store, hash-verified

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 * 压缩所有池

Callers 2

getGlobalStatsStringMethod · 0.95

Calls 2

getStatsMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected