← Back to Performance domain

Performance.setTimeDomain

Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.

Domain: Performance deprecated

Parameters

NameTypeDescription
timeDomainstringTime domain

Example Request

{
  "id": 1,
  "method": "Performance.setTimeDomain",
  "params": {
    "timeDomain": "timeDomain-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('Performance.setTimeDomain', {"timeDomain": "timeDomain-value"});
console.log(result);