← Back to PerformanceTimeline domain

PerformanceTimeline.enable

Previously buffered events would be reported before method returns. See also: timelineEventAdded

Domain: PerformanceTimeline experimental

Parameters

NameTypeDescription
eventTypesarrayThe types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.

Example Request

{
  "id": 1,
  "method": "PerformanceTimeline.enable",
  "params": {
    "eventTypes": []
  }
}

Example Response

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

Usage in Node.js

const result = await send('PerformanceTimeline.enable', {"eventTypes": []});
console.log(result);