Skip to content

ScriptCost

Type

ScriptCost reports per-script callback timings from Profiler.Scripts.

Path

Field
Path: string

Path is the project script path without a leading @.

Average

Field
Average: number

Average is the smoothed per-frame run time in seconds across Update, PhysicsUpdate, and World.System.

Calls

Field
Calls: number

Calls is the number of Update, PhysicsUpdate, and World.System runs in the last frame.

Last

Field
Last: number

Last is the run time in seconds from the last frame.

Owner

Field
Owner: Entity?

Owner is the entity that owns the script, or nil for an autorun script or destroyed entity.