New API Stats:GetTotalMemoryUsageMb

Hi everyone!
We shipped a new API Stats:GetTotalMemoryUsageMb yesterday(3/6/2018), then we get the client or the server’s current memory usage in MB

API:Class/Stats/GetTotalMemoryUsageMb

float GetTotalMemoryUsageMb()

Returns: float
Description: Return the client or the server’s current memory usage, the unit is MB

26 Likes

RCC is an internal term, FYI. Might want to clarify that it’s just the server’s memory.

thanks, modified.

Lol, I like how you stylized it like the wiki.
Here’s the actual wiki page for this btw:

What’s the reason behind naming the method GetTotalMemoryUsageMb() as opposed to GetTotalMemoryUsageMB() if the return type is indeed megabytes and not megabits?

While I imagine many of us are capable of making that distinction, it’s not implied by the method name at a glance. I’d really like to see this method deprecated/renamed in favor of a correctly named method before it’s too well established.

13 Likes

Thank you for advising. It’s megabyte. We need to keep consistent with “GetMemoryUsageMbForTag”.

2 Likes