← Back to LayerTree domain

LayerTree.profileSnapshot

No description available.

Domain: LayerTree experimental

Parameters

NameTypeDescription
snapshotIdSnapshotIdThe id of the layer snapshot.
minRepeatCount (optional)integerThe maximum number of times to replay the snapshot (1, if not specified).
minDuration (optional)numberThe minimum duration (in seconds) to replay the snapshot.
clipRect (optional)DOM.RectThe clip rectangle to apply when replaying the snapshot.

Returns

NameTypeDescription
timingsarrayThe 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": []}