← Back to Profiler domain

Profiler.setSamplingInterval

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

Domain: Profiler stable

Parameters

NameTypeDescription
intervalintegerNew sampling interval in microseconds.

Example Request

{
  "id": 1,
  "method": "Profiler.setSamplingInterval",
  "params": {
    "interval": 1
  }
}

Example Response

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

Usage in Node.js

const result = await send('Profiler.setSamplingInterval', {"interval": 1});
console.log(result);