jtransc / gdx-backend-jtransc

GDX backend for JTransc: targeting every platform lime supports (html5, windows, linux, mac, android, ios...) (flash is wip) (consoles + unity likely to be supported in the future)
23 stars 6 forks source link

impl debug memory #72

Closed ghost closed 7 years ago

ghost commented 7 years ago

I am not understand how i can use it from backend, java does not have this functions. Maybe from annotations? Maybe simple example for me?

soywiz commented 7 years ago

https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html

Runtimge.getRuntime().freeMemory()
ghost commented 7 years ago

Added, but write 8G (default value)

soywiz commented 7 years ago

You can use those calls as fallback and use haxecpp functions when required. If it doesnt work properly we can update jtransc to fix it. Which fuction return 8g on haxe?