OC-MultICE/modules/debug/debug.lua
2017-04-19 02:40:25 +10:00

11 lines
424 B
Lua

s("debug thread",function()
print(string.format("%." .. 2 .. "f", (computer.totalMemory()/1024)) .. "k memory total")
while true do
print(string.format("%." .. 2 .. "f", (computer.totalMemory()-computer.freeMemory())/1024).."k memory used; "..tostring(#tT).." running processes; "..tostring(p).." polling delay")
for k,v in pairs(tT) do
print(tostring(k).." - "..tostring(v[1]))
end
coroutine.yield()
end
end)