update: profiler库补齐toHex函数
[LuatOS.git] / demo / meminfo / main.lua
blobe6e23c73d82ea656bb88bcaa84ac353004cb1d49
2 PROJECT = "memdemo"
3 VERSION = "1.0.0"
5 sys = require("sys")
8 -- Air780E的AT固件默认会为开机键防抖, 导致部分用户刷机很麻烦
9 if rtos.bsp() == "EC618" and pm and pm.PWK_MODE then
10 pm.power(pm.PWK_MODE, false)
11 end
13 sys.taskInit(function()
14 local count = 1
15 while 1 do
16 sys.wait(1000)
17 log.info("luatos", "hi", count, os.date())
18 -- lua内存
19 log.info("lua", rtos.meminfo())
20 -- sys内存
21 log.info("sys", rtos.meminfo("sys"))
22 count = count + 1
23 end
24 end)
27 -- 用户代码已结束---------------------------------------------
28 -- 结尾总是这一句
29 sys.run()
30 -- sys.run()之后后面不要加任何语句!!!!!