← Back to LayerTree domain
LayerTree.profileSnapshot
No description available.
Domain: LayerTree
experimental
Parameters
| Name | Type | Description |
snapshotId | SnapshotId | The id of the layer snapshot. |
minRepeatCount (optional) | integer | The maximum number of times to replay the snapshot (1, if not specified). |
minDuration (optional) | number | The minimum duration (in seconds) to replay the snapshot. |
clipRect (optional) | DOM.Rect | The clip rectangle to apply when replaying the snapshot. |
Returns
| Name | Type | Description |
timings | array | The array of paint profiles, one per run. |
Example Request
{
"id": 1,
"method": "LayerTree.profileSnapshot",
"params": {
"snapshotId": "snapshotId-value"
}
}
Example Response
{
"id": 1,
"result": {
"timings": []
}
}
Usage in Node.js
const result = await send('LayerTree.profileSnapshot', {"snapshotId": "snapshotId-value"});
console.log(result);
// {"timings": []}