← Back to Emulation domain

Emulation.setCPUThrottlingRate

Enables CPU throttling to emulate slow CPUs.

Domain: Emulation stable

Parameters

NameTypeDescription
ratenumberThrottling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).

Example Request

{
  "id": 1,
  "method": "Emulation.setCPUThrottlingRate",
  "params": {
    "rate": 1.0
  }
}

Example Response

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

Usage in Node.js

const result = await send('Emulation.setCPUThrottlingRate', {"rate": 1.0});
console.log(result);