Memory
Memory, Memory.SubscriptionHandler, MemoryData, and MemoryUseLevel.
Last updated
Memory, Memory.SubscriptionHandler, MemoryData, and MemoryUseLevel.
Last updated
The Memory class reports on script pool memory use.
Current memory activity level since start of last memory counting.
Syntaxpublic ActivityLevel { get; }
Value
uint
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The highest level of memory used by the script pool.
SyntaxValue
uint
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Current policy Critical level of used memory by the script pool
SyntaxValue
uint
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Current policy Limit level of used memory by the script pool
SyntaxValue
uint
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Current policy Warning level of used memory by the script pool
SyntaxValue
uint
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Subscribes to Memory Events.
SyntaxParameters
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Subscribes to Memory Events.
SyntaxSee Also
Parameters
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
A string representation of this object.
SyntaxReturns
A string representation of this object.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Total bytes used by this script pool as of last accounting.
SyntaxValue
uint
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Notifies scripts about memory events.
Parameters
TrackingId
The id of the animation component.L:\p\Sansar\SharedBranches\ServerScript\Code\Common\Libraries\LLScript/Apis/ScriptMemory.h(75)The id of the component generating the event.
UseLevel
The behavior name of the Animation.L:\p\Sansar\SharedBranches\ServerScript\Code\Common\Libraries\LLScript/Apis/ScriptMemory.h(75)This name will match the subscribed event.
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Notifies scripts about memory events.
A string representation of this object.
SyntaxReturns
A string representation of this object.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Internal Id of the memory tracker.D:\work\647144a9cd6c61be\Sansar\Code\Common\Libraries\LLScript/Apis/CsScriptMemory.h(84)Used for routing the event.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The level subscribed to.D:\work\647144a9cd6c61be\Sansar\Code\Common\Libraries\LLScript/Apis/CsScriptMemory.h(84)
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
public enum MemoryUseLevel
Critical
Critical memory use, nearing limit.
Limit
Memory limit hit, if nothing is done scripts in this pool may be disabled.
Low
Script memory use under Warning level.
Warning
First warning of high memory use.
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
public PeakUsedBytes { get; }
public PolicyCritical { get; }
public PolicyLimit { get; }
public PolicyWarning { get; }
[System.Obsolete("Use subscription callbacks of type Action<Sansar.Script.MemoryData>", false)] public Subscribe ( callback, persistent)
An that can be used to cancel the subscription.
public override ToString ()
public UsedBytes { get; }
[System.Obsolete("Use subscription callbacks of type Action<Sansar.Script.MemoryData>", false)] public delegate Memory.SubscriptionHandler ( TrackingId, UseLevel)
public override ToString ()
public TrackingId { get; }
Used by to report script memory use.