distriqt / ANE-Memory

Low Memory Warning ANE for Adobe AIR applications on iOS
https://airnativeextensions.com
MIT License
6 stars 1 forks source link

Extra data in MemoryEvent #1

Closed mspdevelopers closed 6 years ago

mspdevelopers commented 7 years ago

Is it possible to attach the current memory usage in the MemoryEvent?

marchbold commented 7 years ago

Do you have any reference to exactly what memory values you want returned?

mspdevelopers commented 7 years ago

The current RAM value that provoked the event, can you get it from the device directly instead of from adobe air? Because you can't relay on System.privateMemory, System.usedMemory, etc.

marchbold commented 7 years ago

I'll have to do some research. I don't know of any easy API to access memory values. I think there are some on the NSProcessInfo class but I think the rest might require some c calls.