OC-MultICE/modules/debug/ocemu-heartbeat.lua

12 lines
336 B
Lua

_G.DEBUG=true
s("heartbeat",function()
while true do
if _G.DEBUG then
component.invoke(component.list("ocemu")(),"log","heartbeat:"..tostring(computer.uptime()))
component.invoke(component.list("ocemu")(),"log",T.unpack(ev))
component.invoke(component.list("ocemu")(),"log","processes:\n"..ps())
end
C.yield()
end
end)