2019-12-31 00:53:54 +01:00
|
|
|
-- luacheck: globals DEBUG
|
2017-10-28 23:22:34 +02:00
|
|
|
return {entry = function(msg)
|
|
|
|
package.loaded["luaOTA.default"]=nil
|
|
|
|
local gc=collectgarbage; gc(); gc()
|
2019-02-17 19:26:29 +01:00
|
|
|
if DEBUG then
|
|
|
|
for k,v in pairs(_G) do print(k,v) end
|
|
|
|
for k,v in pairs(debug.getregistry()) do print(k,v) end
|
2017-10-28 23:22:34 +02:00
|
|
|
end
|
2019-02-17 19:26:29 +01:00
|
|
|
gc(); gc()
|
2017-10-28 23:22:34 +02:00
|
|
|
print(msg, node.heap())
|
|
|
|
end}
|