Performance.setTimeDomainSets 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.
| Name | Type | Description |
|---|---|---|
timeDomain | string | Time domain |
{
"id": 1,
"method": "Performance.setTimeDomain",
"params": {
"timeDomain": "timeDomain-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Performance.setTimeDomain', {"timeDomain": "timeDomain-value"});
console.log(result);