Bun

class

perf_hooks.PerformanceNodeEntry

class PerformanceNodeEntry

This class is an extension by Node.js. It is not available in Web browsers.

Provides detailed Node.js timing data.

The constructor of this class is not exposed to users directly.

  • readonly detail: any

    Additional detail specific to the entryType.

  • readonly duration: number
  • readonly entryType: 'function' | 'dns' | 'gc' | 'http2' | 'http' | 'net' | 'node'
  • readonly name: string
  • readonly startTime: number
  • toJSON(): any;