docs.unity.cn
    Show / Hide Table of Contents

    Class MemoryStateChanged

    Inheritance
    Object
    MemoryStateChanged
    Namespace: Unity.Reflect.Actors
    Syntax
    public class MemoryStateChanged

    Constructors

    MemoryStateChanged(Int64, Int64, Int64, Int64, Int64, Boolean)

    Declaration
    public MemoryStateChanged(long criticalThreshold, long highThreshold, long mediumThreshold, long usedAppMemory, long totalAppMemory, bool isMemoryLevelTooHigh)
    Parameters
    Type Name Description
    Int64 criticalThreshold
    Int64 highThreshold
    Int64 mediumThreshold
    Int64 usedAppMemory
    Int64 totalAppMemory
    Boolean isMemoryLevelTooHigh

    Fields

    CriticalThreshold

    The amount of memory that is considered dangerous.

    Declaration
    public long CriticalThreshold
    Field Value
    Type Description
    Int64

    HighThreshold

    Threshold from which receivers should start reducing the total amount of memory.

    Declaration
    public long HighThreshold
    Field Value
    Type Description
    Int64

    IsMemoryLevelTooHigh

    Indicates if the receiver should try to remove all allocations to free up as much memory as it can.

    Declaration
    public bool IsMemoryLevelTooHigh
    Field Value
    Type Description
    Boolean

    MediumThreshold

    Threshold from which receivers should start cleaning up unused resources.

    Declaration
    public long MediumThreshold
    Field Value
    Type Description
    Int64

    TotalAppMemory

    The total amount of memory consumed by the application.

    Declaration
    public long TotalAppMemory
    Field Value
    Type Description
    Int64

    UsedAppMemory

    The amount of memory that is used by the application. The difference between this and TotalAppMemory is the reserved memory.

    Declaration
    public long UsedAppMemory
    Field Value
    Type Description
    Int64
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 03 February 2022
    Terms of use