跳到主要内容

bn.getPerformance

getPerformance(): Performance

Gets the performance information

example

const performance = bn.getPerformance()
const entries = performance.getEntries()
console.log(entries)

Returns

Performance

performance

Interface: Performance

NameTypeDescription
getEntries(): Entry[]Get all current performance information.

getEntries

getEntries(): Entry[]

Get all current performance information.

Returns

Entry[]

Inherited from

EntryList.getEntries

Entry

Ƭ Entry: AppLaunchEntry | NavigationEntry | ScriptEntry | PackageEntry | RenderEntry | FPEntry | FCPEntry | LCPEntry | NativeCanvasRenderEntry


Interface: AppLaunchEntry

NameTypeDescription
entryType"navigation"
name"appLaunch"
navigationType"appLaunch"
pathstringentry page path
startTimenumberstart time of app launch
durationnumbertotal time of app launch

Interface: NavigationEntry

NameTypeDescription
entryType"navigation"
name"route"
navigationTypeRouteChangeTyperoute type
navigationStartnumberthe real time of navigation
pathstringnavigate path
startTimenumberstart time of navigation
durationnumbertotal time of navigation

Interface: ScriptEntry

NameTypeDescription
entryType"script"
name"evaluateScript"
startTimenumberstart time of evaluate script
durationnumbertotal time of evaluate script
moduleNamestring
fileListstring[]

Interface: PackageEntry

NameTypeDescription
entryType"loadPackage"
name"downloadPackage"
startTimenumberstart time of download package
durationnumbertotal time of download package
packageNamestring
packageSizenumber
isLocalCachebooleanis from local cache

Interface: RenderEntry

NameTypeDescription
entryType"render"
name"firstRender"
pathstringpage path
startTimenumberstart time of page render
durationnumbertotal time of first render
viewLayerReadyTimenumber
initDataSendTimenumber
initDataRecvTimenumber
viewLayerRenderStartTimenumber
viewLayerRenderEndTimenumber

Interface: FPEntry

NameTypeDescription
entryType"render"
name"firstPaint"
pathstringpage path
startTimenumberFP timestamp

Interface: FCPEntry

NameTypeDescription
entryType"render"
name"firstContentfulPaint"
pathstringpage path
startTimenumberFCP timestamp

Interface: LCPEntry

NameTypeDescription
entryType"render"
name"largestContentfulPaint"
pathstringpage path
startTimenumberLCP timestamp

Interface: NativeCanvasRenderEntry

NameTypeDescription
entryType"canvas"
name"canvasRender"
drawCommandsLengthnumber
callEnable?CanvasRenderApiPerformance
callEnableDebug?CanvasRenderApiPerformance
callEnableDisableCombo?CanvasRenderApiPerformance
callSetContextType?CanvasRenderApiPerformance
render?CanvasRenderApiPerformance
render2d?CanvasRenderApiPerformance
flushNative?CanvasRenderApiPerformance
callNative?CanvasRenderApiPerformance
texImage2D?CanvasRenderApiPerformance
texSubImage2D?CanvasRenderApiPerformance
bindImageTexture?CanvasRenderApiPerformance
bindCanvasTexture?CanvasRenderApiPerformance
createOffscreenCanvas?CanvasRenderApiPerformance
resizeOffscreenCanvas?CanvasRenderApiPerformance
destroyOffscreenCanvas?CanvasRenderApiPerformance
perloadImage?CanvasRenderApiPerformance
measureTextWidth?CanvasRenderApiPerformance

Interface: EntryList

NameTypeDescription
getEntries(): Entry[]Get all current performance information.

getEntries

getEntries(): Entry[]

Get all current performance information.

Returns

Entry[]

getEntries

getEntries(): Entry[]

Get all current performance information.

Returns

Entry[]