(
thresholdMB: number = 500,
onThresholdExceeded?: (usage: number) => void
)
| 864 | private onThresholdExceeded?: (usage: number) => void; |
| 865 | |
| 866 | constructor( |
| 867 | thresholdMB: number = 500, |
| 868 | onThresholdExceeded?: (usage: number) => void |
| 869 | ) { |
| 870 | this.threshold = thresholdMB * 1024 * 1024; |
| 871 | this.onThresholdExceeded = onThresholdExceeded; |
| 872 | } |
| 873 | |
| 874 | /** |
| 875 | * Start monitoring memory usage |
nothing calls this directly
no outgoing calls
no test coverage detected