(
thresholdMB: number = 500,
onThresholdExceeded?: (usage: number) => void
)
| 888 | private onThresholdExceeded?: (usage: number) => void; |
| 889 | |
| 890 | constructor( |
| 891 | thresholdMB: number = 500, |
| 892 | onThresholdExceeded?: (usage: number) => void |
| 893 | ) { |
| 894 | this.threshold = thresholdMB * 1024 * 1024; |
| 895 | this.onThresholdExceeded = onThresholdExceeded; |
| 896 | } |
| 897 | |
| 898 | /** |
| 899 | * Start monitoring memory usage |
nothing calls this directly
no outgoing calls
no test coverage detected