Profiler.takePreciseCoverageCollect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
| Name | Type | Description |
|---|---|---|
result | array | Coverage data for the current isolate. |
timestamp | number | Monotonically increasing time (in seconds) when the coverage update was taken in the backend. |
{
"id": 1,
"method": "Profiler.takePreciseCoverage"
}
{
"id": 1,
"result": {
"result": {
"type": "string",
"value": "Example Domain"
},
"timestamp": 1.0
}
}
const result = await send('Profiler.takePreciseCoverage');
console.log(result);
// {"result": {"type": "string", "value": "Example Domain"}, "timestamp": 1.0}