PrivateWorkingSetBytes (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>LocalChum No edit summary |
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">" |
||
Line 14: | Line 14: | ||
'''Note: If you attempt to call settings() from a regular [[Script]] or [[LocalScript]], it will throw an error. It must be called from the [[Command Bar]] or a [[CoreScript]]'''. | '''Note: If you attempt to call settings() from a regular [[Script]] or [[LocalScript]], it will throw an error. It must be called from the [[Command Bar]] or a [[CoreScript]]'''. | ||
<br/> | <br/> | ||
<code lua> | <SyntaxHighlight code="lua"> | ||
print(settings().Diagnostics.PrivateWorkingSetBytes / 1024) -- Get the Private Working Set of Roblox in megabytes. | print(settings().Diagnostics.PrivateWorkingSetBytes / 1024) -- Get the Private Working Set of Roblox in megabytes. | ||
</code> | </code> |
Revision as of 03:51, 27 April 2023
![]() | |
Type | Integer |
Description | Retrieves the amount of Private Working Set memory currently allocated to Roblox, which is measured in bytes. |
Member of | DebugSettings |
Usage
Example
Note: If you attempt to call settings() from a regular Script or LocalScript, it will throw an error. It must be called from the Command Bar or a CoreScript.
<SyntaxHighlight code="lua">
print(settings().Diagnostics.PrivateWorkingSetBytes / 1024) -- Get the Private Working Set of Roblox in megabytes.