Skip to main content
Performance.getEntriesByName - node__perf_hooks.d.ts - Node documentation
method Performance.getEntriesByName

Usage in Deno

```typescript import { type Performance } from "node:node__perf_hooks.d.ts"; ```
Performance.getEntriesByName(
name: string,
type?: EntryType,
): PerformanceEntry[]
Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`.

Parameters

name: string
optional
type: EntryType

Return Type