As most of you know, stats
is deprecated; but what was it used for in the early days of Roblox, and why was it deprecated?
I am just very curious. I never used it before.
If you have an answer, please let me know. Thanks! WE
As most of you know, stats
is deprecated; but what was it used for in the early days of Roblox, and why was it deprecated?
I am just very curious. I never used it before.
If you have an answer, please let me know. Thanks! WE
Based on its Developer Hub Page, it appears that it was primarily for in-game Performance Statistics.
Stats is a service that provides real-time performance information about the current running game instance. Its primary purpose is to provide developers with an end point to measure where resources are being consumed, as well as how much memory is being consumed overall.
Although it’s not labeled as deprecated on the Developer Hub, its usage may have decreased due to newer alternatives, such as the Microprofiler and Performance Stats menus.
Keep in mind that I’m not very knowledgeable about this subject, however, as I never knew the Stats Service existed.
InstanceCount
“InstanceCount is a read-only measurement of how many Instance are currently in memory. This includes the DataModel, its descendants, as well as any object created with Instance.new which is still present in memory.”
HeartbeatTimeMs
“The HeartbeatTimeMs property is a 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. If this value is high, then it means one of the tasks are hogging up a lot of resources.”
DataReceiveKbps
"In a networked game, DataReceiveKbps describes roughly how many kilobytes of data are being received by the current instance, per second.
If from the server’s perspective, this represents the total amount of data being received from the clients connected to the server. If from a client’s perspective, this represents the total amount of data being received from the server."
DataSendKbps
"In a networked game, DataSendKbps describes roughly how many kilobytes of data are being sent by the current instance, per second.
If from the server’s perspective, this represents the total amount of data being sent to the clients connected to the server. If from a client’s perspective, this represents the total amount of data being sent to the server."
:GetMemoryUsageMbForTag
“Returns the number of megabytes that are being consumed in the specified DeveloperMemoryTag category.”
:GetTotalMemoryUsageMb
“Returns the total amount of memory being consumed by the current game session, in megabytes.”