Skip to content

ScopeCost

Type

ScopeCost reports custom scope timings recorded through Profiler.Begin, Profiler.End, and Profiler.Scope, returned by Profiler.Scopes.

Label

Field
Label: string

Label is the string label passed to Profiler.Begin or Profiler.Scope.

Owner

Field
Owner: Entity?

Owner is the entity that owns the script that recorded the scope, or nil when none.

Average

Field
Average: number

Average is the smoothed per-frame run time in seconds.

Last

Field
Last: number

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

Calls

Field
Calls: number

Calls is the number of times the scope ran in the last frame.