Skip to content

PerformanceObserver.supportedEntryTypes does not match documented performanceEntry.entryType #54212

@Semigradsky

Description

@Semigradsky

Affected URL(s)

https://nodejs.org/docs/latest/api/perf_hooks.html#performanceentryentrytype

Description of the problem

By the doc the performance entry may be one of:

'node' (Node.js only)
'mark' (available on the Web)
'measure' (available on the Web)
'gc' (Node.js only)
'function' (Node.js only)
'http2' (Node.js only)
'http' (Node.js only)

But in code we have other supported entry types: https://github.com/nodejs/node/blob/ca2ed88f94ca537c21a631cfecf577aa96afca0b/lib/internal/perf/observe.js#L88C8-L98

> PerformanceObserver.supportedEntryTypes
[
  'dns',      'function',
  'gc',       'http',
  'http2',    'mark',
  'measure',  'net',
  'resource'
]

There are no documented dns, resource, net. And there is no node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.perf_hooksIssues and PRs related to the implementation of the Performance Timing API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions