← Back to Profiler domain

Profiler.getBestEffortCoverage

Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

Domain: Profiler stable

Returns

NameTypeDescription
resultarrayCoverage data for the current isolate.

Example Request

{
  "id": 1,
  "method": "Profiler.getBestEffortCoverage"
}

Example Response

{
  "id": 1,
  "result": {
    "result": {
      "type": "string",
      "value": "Example Domain"
    }
  }
}

Usage in Node.js

const result = await send('Profiler.getBestEffortCoverage');
console.log(result);
// {"result": {"type": "string", "value": "Example Domain"}}