Skip to content

Home > @esengine/ecs-framework-monorepo > NetworkEventUtils > createPerformanceEventData

NetworkEventUtils.createPerformanceEventData() method

创建性能事件数据

Signature:

typescript
static createPerformanceEventData(metric: string, value: number, threshold?: number, duration?: number, clientId?: string): PerformanceEventData;

Parameters

Parameter

Type

Description

metric

string

value

number

threshold

number

(Optional)

duration

number

(Optional)

clientId

string

(Optional)

Returns:

PerformanceEventData

基于 MIT 许可证发布