GE Lua Documentation

Press F to search!

gcinfo

Definition


-- @/=[C]:-1
function gcinfo(...)

Callers

@/lua/ge/main.lua
  local s = debug.getinfo(2)
  local m, _ = gcinfo()
  if m > maxMemUsage then
  if geluaProfiler then geluaProfiler:start() end
  --local used_memory_bytes, _ = gcinfo()
  --log('D', "update", "Lua memory usage: " .. tostring(used_memory_bytes/1024) .. "kB")
@/lua/common/utils/perf.lua
local function _update()
  local used_mem, _ = gcinfo()
  M.data = {frameCount = frames, size = windowSize, memory = used_mem}