aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/lua-scripts/demo1.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bruiser/lua-scripts/demo1.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/bruiser/lua-scripts/demo1.lua b/bruiser/lua-scripts/demo1.lua
index 6f02860..964fd81 100644
--- a/bruiser/lua-scripts/demo1.lua
+++ b/bruiser/lua-scripts/demo1.lua
@@ -121,7 +121,7 @@ function printFuncSizes()
end
end
-function main()
+function demo1()
pwd()
printObjNames()
printObjSizes()
@@ -209,8 +209,14 @@ local C_main_code = codeTableByName("'main'")
a = xobjlist()
print("the offset of quad and add2 is : ", a["quad"] - a["add2"])
+ mem_size = xmemusage()
+ print("memory used "..mem_size)
+ xclear()
+ mem_size = xmemusage()
+ print("memory used "..mem_size)
+
end
-main()
+demo1()
--------------------------------------------------------------------------------------------------------------