MmarkResourceTiming
Bun

method

perf_hooks.Performance.markResourceTiming

timingInfo: object,
requestedUrl: string,
initiatorType: string,
global: object,
cacheMode: '' | 'local',
bodyInfo: object,
responseStatus: number,
deliveryType?: string

Creates a new PerformanceResourceTiming entry in the Resource Timeline. A PerformanceResourceTiming is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'resource'. Performance resources are used to mark moments in the Resource Timeline.

@param timingInfo
@param requestedUrl

The resource url

@param initiatorType

The initiator name, e.g: 'fetch'

@param cacheMode

The cache mode must be an empty string ('') or 'local'

@param responseStatus

The response's status code

@param deliveryType

The delivery type. Default: ''.