()
| 58 | } |
| 59 | |
| 60 | function readUsedHeapBytes() { |
| 61 | const performanceWithMemory = window.performance as Performance & { |
| 62 | memory?: { |
| 63 | usedJSHeapSize: number |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | return performanceWithMemory.memory?.usedJSHeapSize ?? null |
| 68 | } |
| 69 | |
| 70 | function nextFrame() { |
| 71 | return new Promise<void>((resolve) => { |
no outgoing calls
no test coverage detected