Skip to content
Roblox API Reference

Stats

Performance metrics for a game.
  • Not creatable
  • Service
Memory category
Instances
Own members
35
Inherited members
75
Subclasses
0
Siblings
608

Properties47

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byStats24

Property categoryData

  • Stats.ContactsCount: number
    A measurement of how many parts are currently in contact with one another.
    • Read only
  • Stats.DataReceiveKbps: number
    In a networked game, this describes roughly how many kilobytes of data are being received by the current instance, per second.
    • Read only
  • Stats.DataSendKbps: number
    In a networked game, this describes roughly how many kilobytes of data are being sent by the current instance, per second.
    • Read only
  • Stats.FrameTime: number
    A measurement of how long it takes for the engine to process all tasks required to render a frame.
    • Read only
  • Stats.HeartbeatTime: number
    A measurement of the total amount of time it takes for the server to update its task scheduler jobs in seconds.
    • Read only
  • Stats.InstanceCount: number
    A measurement of how many Instance are currently in memory.
    • Read only
  • Stats.MemoryTrackingEnabled: boolean
    An indication of whether memory tracking is enabled. This is guaranteed to be unchanged until the next time the Client is started.
    • Read only
  • Stats.MovingPrimitivesCount: number
    A measurement of how many physically simulated components are currently moving in the game world.
    • Read only
  • Stats.PhysicsReceiveKbps: number
    In a networked game, this describes roughly how many kilobytes of physics data are being received by the current instance, per second.
    • Read only
  • Stats.PhysicsSendKbps: number
    In a networked game, this describes roughly how many kilobytes of physics data are being sent by the current instance, per second.
    • Read only
  • Stats.PhysicsStepTime: number
    A measurement of how long it takes for the physics engine to update its current state.
    • Read only
  • Stats.PrimitivesCount: number
    A measurement of how many physically simulated components currently exist in the game world.
    • Read only
  • Stats.RenderCPUFrameTime: number
    A measurement of how long it takes for the CPU to process all of its rendering tasks for a frame.
    • Read only
  • Stats.RenderGPUFrameTime: number
    A measurement of how long it takes for the GPU to process all of its tasks required to render a frame.
    • Read only
  • Stats.SceneDrawcallCount: number
    A measurement of the number of draw calls made by the game's current scene.
    • Read only
  • Stats.SceneTriangleCount: number
    A measurement of the number of triangles rendered by the game's current scene.
    • Read only
  • Stats.ShadowsDrawcallCount: number
    A measurement of the number of draw calls being made for shadows by the game's current scene.
    • Read only
  • Stats.ShadowsTriangleCount: number
    A measurement of the number of triangles rendered as shadows in the game's current scene.
    • Read only
  • Stats.UI2DDrawcallCount: number
    A measurement of the number of 2D draw calls made for UI elements in the game's current scene.
    • Read only
  • Stats.UI2DTriangleCount: number
    A measurement of the number of triangles that are being rendered for 2D UI elements in the game's current scene.
    • Read only
  • Stats.UI3DDrawcallCount: number
    A measurement of the number of 3D draw calls made for UI elements in the game's current scene.
    • Read only
  • Stats.UI3DTriangleCount: number
    A measurement of the number of triangles being rendered for 3D UI elements in the game's current scene.
    • Read only
  • Stats.HeartbeatTimeMs: number
    Deprecated: Use Stats.HeartbeatTime instead.
    A measurement of the total amount of time it takes long it takes for Roblox to update all of its task scheduler jobs, in milliseconds.
    • Deprecated
    • Read only
  • Stats.PhysicsStepTimeMs: number
    Deprecated: Use Stats.PhysicsStepTime instead.
    A measurement of how long it takes for the physics engine to update its current state, in milliseconds. If this value is high, then it means the game instance is under stress from the physics simulations taking place.
    • Deprecated
    • Read only

Methods53

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byStats11
  • Stats:GetBrowserTrackerId(): string
    • Roblox script security
    Returns
    Type
    string
  • Stats:GetHarmonyQualityLevel(): number
    Internal-only. Returns the engine's current dynamic-quality level as a score normalized from 0 to 100.
    • Capabilities: InternalTest
    Returns
    TypeDescription
    number
    The current dynamic-quality level, normalized from 0 (lowest quality) to 100 (highest quality).
  • Stats:GetMemoryCategoryNames(): { any }
    Internal-only. Returns an array of the names of every developer memory category the engine tracks.
    • Capabilities: InternalTest
    Returns
    TypeDescription
    { any }
    An array of strings, one per tracked memory category, ordered to match the values returned by Stats:GetMemoryUsageMbAllCategories().
  • Stats:GetMemoryUsageMbAllCategories(): { any }
    Returns the number of megabytes that are being consumed by all available categories, or an empty array if MemoryTrackingEnabled is false.
    • Capabilities: InternalTest
    Returns
    TypeDescription
    { any }
    An array of numbers in which each entry is the memory, in megabytes, consumed by one memory category, ordered to match the categories returned by Stats:GetMemoryCategoryNames(). Returns an empty array if MemoryTrackingEnabled is false.
  • Stats:GetMemoryUsageMbAllCategoriesFiltered(dmId: number,vmClass: number,): { any }
    • Capabilities: InternalTest
    Parameters
    Parameter
    dmId: number
    vmClass: number
    Returns
    Type
    { any }
  • Stats:GetMemoryUsageMbFiltered(dmId: number, vmClass: number): number
    • Capabilities: InternalTest
    Parameters
    Parameter
    dmId: number
    vmClass: number
    Returns
    Type
    number
  • Stats:GetMemoryUsageMbForTag(tag: Enum.DeveloperMemoryTag): number
    Returns the number of megabytes that are being consumed in the specified DeveloperMemoryTag category, or 0 if MemoryTrackingEnabled is false.
    Parameters
    ParameterDescription
    tag: Enum.DeveloperMemoryTag
    The DeveloperMemoryTag memory category to measure.
    Returns
    TypeDescription
    number
    The memory, in megabytes, consumed by the given DeveloperMemoryTag category, or 0 if MemoryTrackingEnabled is false.
  • Stats:GetPaginatedMemoryByTexture(queryType: Enum.TextureQueryType,pageIndex: number,pageSize: number,): { [string]: any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    queryType: Enum.TextureQueryType
    pageIndex: number
    pageSize: number
  • Stats:GetTotalMemoryUsageMb(): number
    Returns the total amount of memory being consumed by the current game session, in megabytes.
    Returns
    TypeDescription
    number
    The total memory, in megabytes, used by the current game session, as reported by the operating system.
  • Stats:ResetHarmonyMemoryTarget()
    Internal-only. Restores the performance-control system's memory budget to the values in effect before Stats:SetHarmonyMemoryTarget() was called.
    • Capabilities: InternalTest
  • Stats:SetHarmonyMemoryTarget(targetMB: number)
    Internal-only. Overrides the performance-control system's memory budget with a target value, in megabytes, for testing.
    • Capabilities: InternalTest
    Parameters
    ParameterDescription
    targetMB: number
    The memory budget to impose on the performance-control system, in megabytes.

Events10

Inherited fromObject1
Inherited fromInstance9