MCPcopy Create free account
hub / github.com/melonjs/melonJS / getTotalPoolSize

Function getTotalPoolSize

packages/melonjs/src/pool.ts:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61};
62
63export const getTotalPoolSize = (): number => {
64 const pools = getRegisteredPools();
65 let totalSize = 0;
66 for (const key in pools) {
67 totalSize += pools[key].size();
68 }
69 return totalSize;
70};
71
72export { createPool, registerPool } from "./system/pool";

Callers 1

getInstanceCountMethod · 0.90

Calls 2

getRegisteredPoolsFunction · 0.90
sizeMethod · 0.80

Tested by

no test coverage detected