Skip to content

Home > @esengine/ecs-framework-monorepo > ComponentDataCollector > calculateDetailedComponentMemory

ComponentDataCollector.calculateDetailedComponentMemory() method

为内存快照功能提供的详细内存计算 只在用户主动请求内存快照时调用

Signature:

typescript
calculateDetailedComponentMemory(typeName: string, scene?: IScene | null): number;

Parameters

Parameter

Type

Description

typeName

string

scene

IScene | null

(Optional)

Returns:

number

基于 MIT 许可证发布