Skip to main content
PerformanceEntry - node__perf_hooks.d.ts - Node documentation
class PerformanceEntry

Usage in Deno

```typescript import { PerformanceEntry } from "node:node__perf_hooks.d.ts"; ```
The constructor of this class is not exposed to users directly.

Constructors

new
PerformanceEntry()

Properties

readonly
abstract
detail:
NodeGCPerformanceDetail
| unknown
| undefined
Additional detail specific to the `entryType`.
readonly
duration: number
The total number of milliseconds elapsed for this entry. This value will not be meaningful for all Performance Entry types.
The type of the performance entry. It 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)
readonly
name: string
The name of the performance entry.
readonly
startTime: number
The high resolution millisecond timestamp marking the starting time of the Performance Entry.

Methods

toJSON(): any
variable PerformanceEntry
`PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:perf_hooks'`

Type

globalThis extends { onmessage: any; PerformanceEntry: infer T; } ? T : _PerformanceEntry

See

  • https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceentry