prasanaworld/puppeteer-screen-recorder

what is the good way to destroy the recorder and release the resource it use?

FishBlanche opened this issue · 1 comments

question:
what is the good way to destroy the recorder? It seems that the memory usage keep rising during recording.

In beforeEach:
recorder = new PuppeteerScreenRecorder(pyBell.page);
await recorder.start(./report/video/a.mp4);
after finish executing test case:
await recorder.stop();

just repeat the above steps,After loads of tests,the memory usage rise to unacceptable level,and cause test to fail.

Also tried stream,it turns out the same.

Any update for this? This library is unusable due to memory usage not being released. Any alternatives?