debug print memory usage

This commit is contained in:
2023-08-21 10:12:27 -06:00
parent 8abbccbc77
commit 13012c476c
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#7a8bf5bc206d694451101915dc1776ff7c188280" into hollywoo/0.0.0/github/7a8bf5bc206d694451101915dc1776ff7c188280 # @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#f4b059297ad7cba4673909c455d19a328e345058" into hollywoo/0.0.0/github/f4b059297ad7cba4673909c455d19a328e345058
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/7a8bf5bc206d694451101915dc1776ff7c188280" # @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/f4b059297ad7cba4673909c455d19a328e345058"
-lib kiss -lib kiss
-lib kiss-tools -lib kiss-tools
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/7a8bf5bc206d694451101915dc1776ff7c188280/src/ -cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/f4b059297ad7cba4673909c455d19a328e345058/src/
-D hollywoo=0.0.0 -D hollywoo=0.0.0

View File

@@ -487,6 +487,7 @@
(pause)) (pause))
(set FlxG.autoPause true) (set FlxG.autoPause true)
(FlxG.state.remove bar true) (FlxG.state.remove bar true)
(print (/ (/ flash.system.System.totalMemory 1024) 1000) "Memory in use: ")
(cc) (cc)
}) 1)] }) 1)]
(haxe.Timer.delay ->:Void (loop.start) 1) (haxe.Timer.delay ->:Void (loop.start) 1)