Memory.prepareForLeakDetectionPrepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc.
{
"id": 1,
"method": "Memory.prepareForLeakDetection"
}
{
"id": 1,
"result": {}
}
const result = await send('Memory.prepareForLeakDetection');
console.log(result);