Incorrect Memory Category Values (Android)

Hi,

When fetching memory categories on some Android devices, specific categories return 0 when it should not be 0

My low end testing android device has the issue:
Android version - 14

Impacted function
Stats#GetMemoryUsageMbForTag (HERE)

Impacted memory tags

  • Enum.DeveloperMemoryTag.HttpCache
  • Enum.DeveloperMemoryTag.LuaHeap
  • Enum.DeveloperMemoryTag.Script
  • Enum.DeveloperMemoryTag.Gui
  • Enum.DeveloperMemoryTag.Animation
  • Enum.DeveloperMemoryTag.Instances
  • Enum.DeveloperMemoryTag.Signals

Reproducing the issue
Run in a local script:

local Stats = game:GetService("Stats")
local RunService = game:GetService("RunService")

while RunService:IsRunning() do
  print("Luaheap =", Stats:GetMemoryUsageMbForTag(Enum.DeveloperMemoryTag.LuaHeap))
  print("Script =", Stats:GetMemoryUsageMbForTag(Enum.DeveloperMemoryTag.Script))
  print("Gui =", Stats:GetMemoryUsageMbForTag(Enum.DeveloperMemoryTag.Gui))

  task.wait(1)
end

Observe that all print 0 in client logs when they should not be

A private message is associated with this bug report

1 Like

This should be fixed right now, correct? We did an experiment that was involving disabling memory tracking on a lot of android devices to check the perf and stability impact.