Kind: Function
Source: atloria-monorepo/apps/web-e2e/src/utils/performance.ts
Check for memory leaks by monitoring heap size
Signature
tsasync function checkMemoryLeaks(page: Page, action: () => Promise<void>, iterations): Promise<{
hasLeak: boolean;
heapGrowth: number;
initialHeap: number;
finalHeap: number;
}>
Parameters
| Name | Type |
|---|---|
page | Page |
action | () => Promise<void> |
iterations | any |
Returns: Promise<{ hasLeak: boolean; heapGrowth: number; initialHeap: number; finalHeap: number; }>
Was this page helpful?