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

12 lines
336 B
Lua
Raw Normal View History

2017-06-13 09:40:56 +10:00
_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())
2017-06-13 09:40:56 +10:00
end
C.yield()
end
end)