← Back to Memory domain

Memory.prepareForLeakDetection

Prepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc.

Domain: Memory experimental

Example Request

{
  "id": 1,
  "method": "Memory.prepareForLeakDetection"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Memory.prepareForLeakDetection');
console.log(result);