PrivateWorkingSetBytes (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m (Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">")
m (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
Tags: Mobile edit Mobile web edit
 
Line 16: Line 16:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="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.
</SyntaxHighlight>
</syntaxhighlight>
}}
}}


[[Category:Properties]]
[[Category:Properties]]

Latest revision as of 02:17, 27 April 2023

PrivateWorkingSetBytes
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.

print(settings().Diagnostics.PrivateWorkingSetBytes / 1024) -- Get the Private Working Set of Roblox in megabytes.